/* ==========================================================================
   CRYSTAL DETAIL PAGE STYLES - FULL FIXED CSS
   (50/50 Hero + 50/50 Info Panel + Full Width Types & Related Sections)
   ========================================================================== */

/* Global Reset for this page to prevent padding issues */
.crystal-detail-page *,
.crystal-detail-page *::before,
.crystal-detail-page *::after {
    box-sizing: border-box;
}

.crystal-detail-page {
    background-color: #ffffff;
    padding-bottom: 0;
    font-family: var(--font-family, 'Inter', sans-serif);
    color: #333;
    overflow-x: hidden; /* Prevents horizontal scroll from full-width breakouts */
}

/* ---------- Shared Container (1280px max-width) ---------- */
/* Note: .detail-types-section and .detail-related-section were REMOVED 
   so they can be full-width with their own internal containers */
.crystal-detail-page .container,
.crystal-detail-page .breadcrumb-container,
.crystal-detail-page .detail-info-panel {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

/* Breadcrumb styling (if kept outside hero) */
.crystal-detail-page .breadcrumb-container {
    padding: 20px 30px;
    font-size: 0.85rem;
    color: #6b7280;
    background: #ffffff;
}

.crystal-detail-page .breadcrumb-container a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
}

.crystal-detail-page .breadcrumb-container a:hover {
    color: #cdae77;
}

.crystal-detail-page .breadcrumb-container span {
    color: #171c3e;
    font-weight: 500;
}

/* ==========================================================================
   1. HERO SECTION (50/50 Split Layout with 1280px Alignment)
   ========================================================================== */
.detail-hero {
    display: flex;
    width: 100%;
    background-color: #0b1628; /* Full-width dark blue background */
    min-height: 600px;
}

/* --- Left Half: Text --- */
.hero-text {
    width: 50%;
    display: flex;
    justify-content: flex-end;
    box-sizing: border-box;
}

.hero-text-inner {
    width: 100%;
    max-width: 640px; /* Exactly half of 1280px grid */
    padding: 80px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #ffffff;
    box-sizing: border-box;
}

/* Breadcrumb */
.hero-breadcrumb {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 40px;
    letter-spacing: 0.5px;
}

.hero-breadcrumb a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s;
}

.hero-breadcrumb a:hover {
    color: #cdae77;
}

.hero-breadcrumb span {
    color: #ffffff;
}

/* Title */
.hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #cdae77; /* Gold */
    margin: 0 0 30px 0;
    line-height: 1.2;
    display: flex;
    align-items: baseline;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-text h1 .en-title {
    font-size: 2rem;
    font-weight: 400;
    color: #cdae77;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Description */
.hero-desc {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #ffffff;
    margin-bottom: 50px;
    font-weight: 300;
}

/* Meta Data */
.hero-meta {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.meta-item {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.meta-item .label {
    color: #cdae77; /* Gold label */
    font-weight: 600;
    margin-right: 8px;
}

.meta-item .value {
    color: #ffffff; /* White value */
    font-weight: 400;
}

/* --- Right Half: Image --- */
.hero-image {
    width: 50%;
    max-width: 640px; /* Exactly half of 1280px grid */
    position: relative;
    min-height: 600px;
    overflow: hidden;
}

.hero-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   2. INFO PANEL SECTION (Facts & Details) - 50/50 Split
   ========================================================================== */
.detail-info-panel {
    padding: 40px 0;
    background: #ffffff;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 50/50 Split */
    gap: 60px;
    padding: 0 30px;
    align-items: start;
}

/* ---------- Left: Quick Facts Card (Dark Blue) ---------- */
.info-facts-card {
    background-color: #0d102f;
    padding: 50px 30px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 40px;
    text-align: center;
}

.fact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.fact-icon {
    width: 50px;
    height: 50px;
    background: #cdae77;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Great Vibes', cursive;
    font-weight: 700;
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.fact-title {
    font-size: 1.35rem;
    color: #ffedc9;
    font-weight: 600;
    margin: 0;
}

.fact-content {
    width: 100%;
}

.fact-content p {
    width: 60%;
    font-size: 1.15rem;
    color: #d1d5db;
    line-height: 1.6;
    margin: 0 20%;
    text-align: center;
}

.fact-content p.highlight {
    font-style: italic;
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 5px;
}

/* ---------- Right: Text Blocks ---------- */
.info-text-blocks {
    display: flex;
    flex-direction: column;
    gap: 50px;
    padding-top: 10px;
}

.text-block h3 {
    font-size: 2.5rem;
    color: #171c3e;
    margin: 0 0 20px 0;
    font-weight: 500;
    position: relative;
    padding-left: 18px;
}

.text-block h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 5px;
    background: #cdae77;
    border-radius: 3px;
}

.text-block-content {
    margin-left: 20px;
}

.text-block-content p {
    font-size: 1.1rem;
    color: #4b5563;
    line-height: 1.8;
    margin: 0 0 15px 0;
}

.text-block-content p:last-child {
    margin-bottom: 0;
}

/* Subheadings inside the history text */
.text-block-content h4 {
    font-size: 1.5rem;
    color: #171c3e;
    margin: 25px 0 10px 0;
    font-weight: 500;
}
.text-block-content h4:first-child {
    margin-top: 0;
}

/* Bullet points for the Care section */
.care-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.care-list li {
    position: relative;
    padding-left: 25px;
    font-size: 1.1rem;
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 12px;
}

.care-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: -2px;
    color: #cdae77;
    font-size: 1.5rem;
    line-height: 1;
}

/* ==========================================================================
   3. TYPES SECTION (Forced Full Width Background + Single Line Layout)
   ========================================================================== */
.detail-types-section {
    /* Bulletproof full-width breakout */
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    
    background: #e6e6e6;
    padding: 80px 0;
    overflow: hidden;
}

/* Inner content wrapper (1280px max-width, centered) */
.detail-types-section .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 30px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.detail-types-section .section-title {
    text-align: center;
    font-size: 2rem;
    color: #171c3e;
    margin: 0 0 50px 0;
    font-weight: 700;
}

/* Single line, no wrapping */
.types-slider {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;                  /* Smaller gap */
    flex-wrap: nowrap;          /* Prevent wrapping */
    max-width: 100%;
    margin: 0 auto;
}

/* Auto width - just fits the image */
.type-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: auto;                /* Removed fixed width */
    flex-shrink: 0;             /* Prevent shrinking */
}

/* Circle stays big */
.type-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.type-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.type-item:hover .type-image {
    transform: scale(1.05);
}

.type-name {
    font-size: 1.05rem;
    color: #171c3e;
    font-weight: 600;
    text-align: center;
}

/* ==========================================================================
   4. RELATED PRODUCTS SECTION (Forced Full Width Background + Square Images)
   ========================================================================== */
.detail-related-section {
    /* Bulletproof full-width breakout */
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    
    background: #0d102f;
    color: #ffffff;
    padding: 80px 0;
    overflow: hidden;
}

/* Inner content wrapper (1280px max-width, centered) */
.detail-related-section .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 30px;
    width: 100%;
    position: relative;
    z-index: 2;
}

/* Header: Title Left, Navigation Right */
.related-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.detail-related-section .section-title {
    text-align: left;
    font-size: 2rem;
    color: #ffffff;
    margin: 0;
    font-weight: 700;
}

/* Navigation Arrows (Circular buttons) */
.related-nav {
    display: flex;
    gap: 10px;
}

.related-nav .swiper-button-prev,
.related-nav .swiper-button-next {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: #ffffff;
    margin: 0;
    top: auto;
    left: auto;
    right: auto;
    transition: all 0.2s ease;
    cursor: pointer;
}

.related-nav .swiper-button-prev:hover,
.related-nav .swiper-button-next:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #cdae77;
    color: #cdae77;
}

.related-nav .swiper-button-prev::after,
.related-nav .swiper-button-next::after {
    font-size: 16px;
    font-weight: 700;
    font-family: swiper-icons;
}

/* Swiper Slider */
.related-swiper {
    width: 100%;
    padding-bottom: 20px;
}

/* Card Styling */
.related-card {
    background: #ffffff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    height: auto;
}

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

/* Square Image */
.related-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #f9f9f9;
}

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

.related-info {
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
    justify-content: space-between;
}

.related-info h4 {
    font-size: 1.1rem;
    color: #171c3e;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

.btn-related {
    display: inline-block;
    padding: 10px 30px;
    border: 1px solid #cdae77;
    color: #cdae77;
    font-size: 0.9rem;
    font-weight: 400;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s;
    align-self: center;
}

.btn-related:hover {
    background: #cdae77;
    color: #ffffff;
}

/* Progress Bar Pagination */
.detail-related-section .swiper-pagination-progressbar {
    position: relative;
    margin: 40px auto 0;
    width: 60%;
    max-width: 600px;
    height: 2px;
    background: rgba(255, 255, 255, 0.15);
}

.detail-related-section .swiper-pagination-progressbar-fill {
    background: #cdae77;
}

/* ==========================================================================
   5. RESPONSIVE STYLES
   ========================================================================== */
@media (max-width: 992px) {
    .detail-hero {
        flex-direction: column;
    }
    .hero-text {
        width: 100%;
        justify-content: center;
    }
    .hero-text-inner {
        max-width: 100%;
        padding: 50px 20px;
    }
    .hero-text h1 {
        font-size: 2.2rem;
    }
    .hero-text h1 .en-title {
        font-size: 1.5rem;
    }
    .hero-image {
        width: 100%;
        min-height: 400px;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 20px;
    }
    .info-facts-card {
        padding: 40px 20px;
    }
}

@media (max-width: 768px) {
    .crystal-detail-page .breadcrumb-container {
        padding: 15px 20px;
        font-size: 0.8rem;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }
    .hero-text h1 .en-title {
        font-size: 1.2rem;
    }
    .hero-desc {
        font-size: 1rem;
        max-width: 100%;
        margin-bottom: 30px;
    }

    .detail-info-panel {
        padding: 40px 0;
    }

    /* Types Section mobile - horizontal scroll to keep one line */
    .detail-types-section .container {
        padding: 0 20px;
    }
    .types-slider {
        justify-content: flex-start;
        gap: 15px;
        overflow-x: auto;
        padding-bottom: 15px;
        -webkit-overflow-scrolling: touch;
        /* Hide scrollbar */
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .types-slider::-webkit-scrollbar {
        display: none;
    }
    .type-item {
        width: auto;
        flex-shrink: 0;
    }
    .type-image {
        width: 130px;
        height: 130px;
    }
    .type-name {
        font-size: 0.9rem;
    }

    /* Related Section mobile adjustments */
    .related-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .related-nav {
        align-self: flex-end;
    }
    /* Square on mobile too */
    .related-img {
        aspect-ratio: 1 / 1;
    }
    .detail-related-section .swiper-pagination-progressbar {
        width: 80%;
    }
}