/* product_detail.css - FIXED LAYOUT: Image left, Info right */

/* HERO area - Fits on screen */
.pd-hero {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 600px;
    overflow: visible;
    display: flex;
    align-items: flex-end;
    box-sizing: border-box;
}

/* background image */
.pd-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
}

/* content wrapper - FIXED TO ENSURE SIDE-BY-SIDE LAYOUT */
.pd-content {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 100%;
    margin: 0;
    display: flex;
    align-items: flex-end;
    box-sizing: border-box;
    padding: 0;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0;
}

/* LEFT: buttons + product image - REDUCED WIDTH TO FIT BETTER */
.pd-left {
    flex: 20 0 60%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 40px 0 0 0;
    position: relative;
    min-height: 650px;
}

/* Degree controls - AT THE TOP */
.pd-deg-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: transparent;
    padding: 20px 0 30px 0;
    width: 100%;
    flex-shrink: 0;
}

.view-in-text {
    color: #333;
    font-weight: 600;
    font-size: 16px;
    margin-right: 8px;
}

.pd-deg-controls {
    display: flex;
    gap: 10px;
}

.deg-btn {
    background: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 50%;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    transition: all .2s ease;
    min-width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.deg-btn.active {
    background: #fabe23;
    color: #000;
}

.deg-btn:hover {
    transform: scale(1.08);
}

/* Image container - AT THE BOTTOM */
.pd-image-container {
    position: relative;
    width: 100%;
    max-width: 700px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    margin: 0 auto;
    flex-shrink: 0;
    margin-left: -5%;
}

.pd-main-image-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.pd-main-image-wrap img {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: contain;
    display: block;
    transform: translateY(0);
}

/* RIGHT: HUGE yellow info panel - INCREASED WIDTH TO USE REMAINING SPACE */
.pd-right {
    flex: 0 0 45%;
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    padding: 0;
    min-height: 650px;
}

.pd-info {
    background: #fabe23;
    padding: 80px 70px 60px 70px;
    border-radius: 0;
    width: 100%;
    box-sizing: border-box;
    box-shadow: -10px 0 40px rgba(0,0,0,0.15);
    color: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pd-breadcrumb {
    font-weight: 700;
    opacity: 0.75;
    margin-bottom: 15px;
    margin-left: 0;
    font-size: 13px;
    letter-spacing: 1px;
}

.pd-title {
    font-size: 75px;
    font-weight: 900;
    margin: 0 0 20px 0;
    line-height: 0.85;
    letter-spacing: -3px;
}

.pd-subtitle {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 12px 0;
    color: #000;
}

.pd-desc {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    margin-left: 0;
    line-height: 1.4;
    color: #000;
    word-wrap: break-word;
}

/* Features list - BIGGER checkboxes and text */
.pd-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px;
}

.pd-features li {
    margin-bottom: 14px;
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: flex-start;
    line-height: 1.3;
    color: #000;
}

.pd-features li::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #000;
    background: rgba(0, 0, 0, 0.12);
    border: 2px solid rgba(0, 0, 0, 0.25);
    border-radius: 4px;
    min-width: 32px;
    width: 32px;
    height: 32px;
    font-size: 22px;
    font-weight: 900;
    margin-right: 16px;
    margin-top: 0;
    flex-shrink: 0;
}

/* Divider line */
.pd-divider {
    border: none;
    border-top: 2px solid rgba(0, 0, 0, 0.25);
    margin: 25px 0;
}

/* Suitable section */
.pd-suitable-section {
    margin-top: 20px;
}

.pd-suitable-label {
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 14px;
    color: #000;
}

.pd-suitable {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.pd-suitable img {
    max-width: 450px;
    height: auto;
    display: block;
}

/* CTA buttons */
.pd-cta {
    display: flex;
    gap: 20px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.pd-back {
    background: #000;
    color: #fff;
    padding: 14px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 800;
    font-size: 16px;
    transition: all 0.2s ease;
}

.pd-back:hover {
    background: #222;
    transform: translateY(-2px);
}

.pd-download {
    color: #000;
    text-decoration: underline;
    font-weight: 800;
    align-self: center;
    font-size: 16px;
}

/* CHARACTERISTICS section */
.pd-characteristics {
    padding: 80px 5% 120px;
    text-align: center;
    background: #fff;
}

.pd-char-title {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 40px;
    color: #000;
}

.pd-char-frame img {
    width: 100%;
    max-width: 1400px;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    display: inline-block;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .pd-title {
        font-size: 80px;
    }
    .pd-subtitle {
        font-size: 24px;
    }
    .pd-desc {
        font-size: 17px;
    }
    .pd-features li {
        font-size: 19px;
    }
    .pd-suitable img {
        max-width: 160px;
    }
}

@media (max-width: 1200px) {
    .pd-left {
        flex: 0 0 50%;
    }
    .pd-right {
        flex: 0 0 50%;
    }
    .pd-title {
        font-size: 70px;
    }
    .pd-info {
        padding: 50px 40px;
    }
}

@media (max-width: 992px) {
    .pd-hero {
        height: auto !important;
        min-height: auto !important;
        align-items: stretch !important;
        overflow: visible !important;
    }

    .pd-content {
        flex-direction: column !important;
        padding: 0 !important;
        align-items: stretch !important;
        height: auto !important; /* Change from 100vh to auto */
        min-height: auto !important;
    }

    .pd-left {
        min-height: 70vh !important; /* Increase height for tire */
        margin-bottom: 0 !important;
    }

    .pd-right {
        flex: none !important;
        width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        order: 2 !important;
        margin-bottom: 40px !important; /* Add space after yellow block */
    }

    /* Degree buttons at top */
    .pd-deg-overlay {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        background: rgba(255, 255, 255, 0.18);
        backdrop-filter: blur(16px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, 0.35);
        border-radius: 999px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
        width: auto;
        padding: 8px 10px;
        margin: 20px auto 40px auto;
        display: inline-flex;
    }

    /* Image positioning */
    .pd-image-wrap {
        position: absolute;
        bottom: 0;
        left: 45%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 400px;
    }

    #pd-main-img {
        max-height: 300px;
    }

    #pd-left.is-90 #pd-main-img {
        transform: translateY(8px) scale(0.95); /* Change translateY: -20px, 0px, 20px */
    }

    .pd-info {
        max-width: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important;
        padding: 30px 0px !important; /* Remove left/right padding for full width */
        position: relative !important;
        width: 100vw !important; /* Full viewport width */
        margin-left: calc(-50vw + 50%) !important; /* Center it but make full width */
    }

    .pd-info > * {
        padding-left: 20px !important; /* Add padding back to content */
        padding-right: 20px !important;
    }

    .pd-title {
        font-size: 48px;
        text-align: left;
    }

    .pd-suitable-section {
        margin-top: 20px !important;
        margin-bottom: 15px !important;
        padding: 10px 0 !important;
    }

    .pd-suitable-label {
        font-weight: 800 !important;
        font-size: 18px !important;
        margin-bottom: 15px !important;
        color: #000 !important;
        text-align: center !important;
    }

    .pd-suitable {
        display: flex !important;
        gap: 5px !important; /* Even smaller gap */
        align-items: center !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        padding: 5px 0 !important;
    }

    /* Much bigger images with transform scaling */
    .pd-suitable img {
        width: 300px !important; /* Bigger base size */
        height: 120px !important; /* Taller */
        max-width: none !important; /* Remove constraints */
        min-width: 150px !important;
        object-fit: contain !important;
        display: block !important;
        transform: scale(2) !important; /* Scale up by 30% */
    }

    .pd-features {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .pd-characteristics {
        padding: 40px 20px 60px !important; /* Reduce top padding */
        margin-top: 0 !important;
        position: relative !important;
        z-index: 1 !important;
    }
}

@media (max-width: 768px) {

    .pd-left {
        min-height: 50vh;
        padding: 20px 15px 0 15px;
    }

    .pd-main-image-wrap img {
        max-height: 250px;
    }

    .view-in-text {
        font-size: 14px;
    }

    .deg-btn {
        min-width: 38px;
        height: 38px;
        font-size: 12px;
    }

    .pd-info {
        padding: 25px 15px;
    }

    .pd-title {
        font-size: 42px;
    }

    .pd-subtitle {
        font-size: 22px;
    }

    .pd-desc {
        font-size: 16px;
    }

    .pd-features li {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .pd-features li::before {
        min-width: 32px;
        width: 32px;
        height: 32px;
        font-size: 22px;
    }

    .pd-suitable img {
        width: 180px !important;
        height: 70px !important;
        min-width: 130px !important;
        transform: scale(1.4) !important;
    }

}

@media (max-width: 576px) {
    .pd-content {
        padding: 30px 15px;
    }

    .pd-main-image-wrap img {
        max-height: 280px;
    }

    .pd-title {
        font-size: 42px;
    }

    .pd-subtitle {
        font-size: 20px;
    }

    .pd-info {
        padding: 28px 24px;
    }

    .pd-features li {
        font-size: 16px;
    }

    .pd-features li::before {
        min-width: 28px;
        width: 28px;
        height: 28px;
        font-size: 20px;
    }

    .pd-suitable img {
        max-width: 120px;
    }
}

/* === PRESERVE ALL EXISTING EFFECTS === */

/* Glass effect for degree buttons */
.pd-left {
    position: relative;
}

.pd-deg-overlay {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    width: auto;
}

.deg-btn {
    background: rgba(255,255,255,0.45);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-weight: 700;
    cursor: pointer;
    transition: all .25s ease;
}

.deg-btn.active {
    background: rgba(255,208,0,0.9);
    color: #000;
    box-shadow: 0 0 12px rgba(255,208,0,0.7);
}

/* Anchor product image to bottom */
.pd-image-wrap {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(700px, 90%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 5;
}

#pd-main-img {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: contain;
    display: block;
    transition: transform .4s ease, max-height .4s ease;
}

/* Shrink 90° image */
#pd-left.is-90 #pd-main-img {
    max-height: 520px;
    transform: translateY(8px) scale(0.95);
    transition: transform 0.4s ease, max-height 0.4s ease;
}

/* Fix horizontal overflow */
html, body {
    overflow-x: hidden;
}

.pd-right .pd-info {
    border-right: 8px solid #000;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}