/* =========================================================
   CROWN AUTO PARTS
   PRODUCT DETAIL PAGE
========================================================= */

:root {
    --navy: #111c2e;
    --gold: #a86b00;
    --gold-hover: #8f5a00;
    --text: #101d30;
    --muted: #526b87;
    --background: #f5f8fc;
    --white: #ffffff;
    --border: #d5dee8;
    --green: #159447;
    --max-width: 1370px;
}


/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    background: var(--background);

    color: var(--text);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
    width: 100%;
    height: 76px;

    background: #f8fafc;

    border-bottom:
        1px solid #d9e0e8;
}

.header-inner {
    width: 100%;
    max-width: var(--max-width);

    height: 100%;

    margin: 0 auto;

    padding: 0 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* =========================================================
   LOGO
========================================================= */

.brand {
    display: flex;
    align-items: center;

    gap: 10px;
}

.crown-logo {
    width: 34px;
    height: 34px;

    color: var(--gold);
}

.crown-logo svg {
    width: 100%;
    height: 100%;
}

.brand-name {
    display: flex;
    align-items: center;

    gap: 4px;

    font-size: 22px;

    font-weight: 800;

    letter-spacing: -0.5px;
}

.brand-crown {
    color: var(--navy);
}

.brand-auto {
    color: var(--gold);
}


/* =========================================================
   NAV
========================================================= */

.main-nav {
    display: flex;
    align-items: center;

    gap: 42px;
}

.main-nav a {
    color: #5b6675;

    font-size: 16px;

    font-weight: 600;

    transition:
        color .2s ease;
}

.main-nav a:hover {
    color: var(--gold);
}


/* =========================================================
   CALL BUTTON
========================================================= */

.header-call {
    height: 42px;

    min-width: 127px;

    padding: 0 17px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    background: var(--gold);

    color: #fff;

    border-radius: 7px;

    font-size: 14px;

    font-weight: 700;
}

.header-call svg {
    width: 17px;
    height: 17px;
}


/* =========================================================
   PAGE CONTAINER
========================================================= */

.page-inner {
    width: 100%;

    max-width: var(--max-width);

    margin: 0 auto;

    padding:
        0 20px;
}


/* =========================================================
   PRODUCT DETAIL SECTION
========================================================= */

.product-detail-section {
    padding:
        35px 0 65px;

    background:
        var(--background);
}


/* =========================================================
   BACK LINK
========================================================= */

.back-link {
    display: inline-flex;

    align-items: center;

    margin-bottom: 25px;

    color: var(--muted);

    font-size: 14px;

    font-weight: 600;
}

.back-link:hover {
    color: var(--gold);
}


/* =========================================================
   PRODUCT DETAIL
========================================================= */

.product-detail {

    display: grid;

    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(0, .95fr);

    gap: 60px;

    align-items: start;
}


/* =========================================================
   IMAGE GALLERY
========================================================= */

.product-gallery {
    min-width: 0;
}


.main-product-image {
    width: 100%;

    height: 570px;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        #ffffff;

    border:
        1px solid var(--border);

    border-radius: 12px;

    overflow: hidden;
}

.main-product-image img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    object-position: center;
}


/* =========================================================
   THUMBNAILS
========================================================= */

.product-thumbnails {

    display: flex;

    gap: 10px;

    margin-top: 12px;

    overflow-x: auto;

    padding-bottom: 4px;
}

.product-thumbnail {

    width: 82px;

    height: 82px;

    flex: 0 0 82px;

    padding: 3px;

    background:
        #ffffff;

    border:
        1px solid var(--border);

    border-radius: 7px;

    cursor: pointer;

    overflow: hidden;
}

.product-thumbnail.active {
    border:
        2px solid var(--gold);
}

.product-thumbnail img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}


/* =========================================================
   PRODUCT INFORMATION
========================================================= */

.product-info {
    padding-top: 12px;
}


.product-brand {
    margin-bottom: 10px;

    color: var(--gold);

    font-size: 13px;

    font-weight: 700;

    letter-spacing: .8px;

    text-transform: uppercase;
}


.product-info h1 {
    margin: 0;

    color: var(--navy);

    font-size: 40px;

    line-height: 1.2;

    font-weight: 800;

    letter-spacing: -1px;
}


.product-category {
    margin-top: 15px;

    color: var(--muted);

    font-size: 14px;
}


/* =========================================================
   PART NUMBER
========================================================= */

.product-part-number {
    margin-top: 8px;

    color: var(--muted);

    font-size: 14px;
}


/* =========================================================
   PRICE
========================================================= */

.product-price-box {
    margin-top: 28px;
    padding: 18px 20px 19px;
    background: linear-gradient(135deg,#fffdf8 0%,#fff 100%);
    border: 1px solid #e2c98d;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(132,84,0,.08);
}

.selling-price {
    margin-top: 3px;
    color: var(--navy);
    font-size: 38px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -.7px;
}

.price-topline,.price-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.price-topline > span:first-child {
    color: #657187;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.price-discount-badge {
    padding: 4px 8px;
    border-radius: 999px;
    background: #e8f7ec;
    color: #16723a;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .03em;
}

.price-details {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0e7d3;
}

.mrp-price {
    color: #768195;
    font-size: 13px;
}

.mrp-price s { color: #59677a; }

.price-savings {
    color: #1d7a43;
    font-size: 12px;
    font-weight: 700;
}


/* =========================================================
   CONTACT FOR PRICE
========================================================= */

.contact-price {

    margin-top: 28px;

    padding: 19px 20px;

    background:
        #ffffff;

    border:
        1px solid #dfcda7;

    border-radius: 10px;

    color: var(--gold);

    font-size: 16px;

    font-weight: 700;
}


/* =========================================================
   DESCRIPTION
========================================================= */

.product-description {

    margin-top: 27px;

    color: var(--muted);

    font-size: 15px;

    line-height: 1.7;
}


/* =========================================================
   BUTTONS
========================================================= */

.product-actions {

    display: flex;

    gap: 12px;

    margin-top: 28px;
}

.call-enquire,
.whatsapp-enquire {

    min-height: 52px;

    padding:
        0 23px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    border-radius: 7px;

    font-size: 14px;

    font-weight: 700;
}


.call-enquire {

    background:
        var(--gold);

    color:
        #ffffff;
}


.whatsapp-enquire {

    background:
        var(--green);

    color:
        #ffffff;
}


/* =========================================================
   RECOMMENDED PRODUCTS
========================================================= */

.recommended-section {

    padding:
        55px 0 75px;

    background:
        #eef3f8;

    border-top:
        1px solid #dbe3eb;
}


.recommended-heading {
    margin-bottom: 28px;
}


.recommended-heading h2 {
    margin: 0;

    color: var(--navy);

    font-size: 30px;

    font-weight: 800;
}


.recommended-heading h2 span {
    color: var(--gold);
}


.recommended-heading p {
    margin:
        8px 0 0;

    color: var(--muted);

    font-size: 14px;
}


.recommended-grid {

    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: 18px;
}


/* =========================================================
   RECOMMENDED CARD
========================================================= */

.recommended-card {

    display: flex;

    flex-direction: column;

    overflow: hidden;

    background:
        #ffffff;

    border:
        1px solid var(--border);

    border-radius: 8px;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}


.recommended-card:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 7px 18px
        rgba(20, 35, 55, .09);
}


.recommended-image {

    width: 100%;

    aspect-ratio:
        1 / 1;

    background:
        #ffffff;

    overflow: hidden;
}


.recommended-image img {

    width: 100%;

    height: 100%;

    object-fit: contain;
}


.recommended-content {

    min-height: 125px;

    padding:
        13px 15px 15px;

    display:
        flex;

    flex-direction:
        column;
}


.recommended-brand {

    color:
        var(--gold);

    font-size:
        10px;

    font-weight:
        700;

    text-transform:
        uppercase;

    letter-spacing:
        .5px;
}


.recommended-content h3 {

    margin:
        6px 0 0;

    color:
        var(--navy);

    font-size:
        14px;

    line-height:
        1.35;

    font-weight:
        600;
}


.recommended-link {

    margin-top:
        auto;

    padding-top:
        10px;

    color:
        var(--gold);

    font-size:
        12px;

    font-weight:
        700;
}


/* =========================================================
   LOADING
========================================================= */

.product-loading {

    grid-column:
        1 / -1;

    padding:
        100px 20px;

    text-align:
        center;

    color:
        var(--muted);
}


/* =========================================================
   ERROR
========================================================= */

.product-error {

    grid-column:
        1 / -1;

    padding:
        100px 20px;

    text-align:
        center;

    color:
        var(--muted);
}


/* =========================================================
   FOOTER
========================================================= */

.footer {

    min-height:
        105px;

    background:
        #f8fafc;

    border-top:
        1px solid #d9e0e8;
}


.footer-inner {

    width:
        100%;

    max-width:
        var(--max-width);

    min-height:
        105px;

    margin:
        0 auto;

    padding:
        0 20px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;
}


.footer-brand {

    display:
        flex;

    align-items:
        center;

    gap:
        9px;
}


.footer-crown {

    width:
        30px;

    height:
        30px;

    color:
        var(--gold);
}


.footer-crown svg {

    width:
        100%;

    height:
        100%;
}


.footer-brand strong {

    color:
        var(--navy);

    font-size:
        18px;
}


.footer-inner > p {

    margin:
        0;

    color:
        var(--muted);

    font-size:
        14px;
}


.footer-links {

    display:
        flex;

    gap:
        27px;
}


.footer-links a {

    color:
        var(--muted);

    font-size:
        14px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1050px) {

    .main-nav {
        gap: 25px;
    }

    .product-detail {
        grid-template-columns:
            1fr 1fr;

        gap: 35px;
    }

    .main-product-image {
        height: 470px;
    }

    .recommended-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    /* HEADER */

    .site-header {
        height: 68px;
    }

    .header-inner {
        padding:
            0 15px;
    }

    .main-nav {
        display: none;
    }

    .crown-logo {
        width: 29px;
        height: 29px;
    }

    .brand-name {
        font-size: 16px;
    }

    .header-call {
        min-width: auto;

        height: 38px;

        padding:
            0 12px;

        font-size: 12px;
    }

    .header-call svg {
        width: 15px;
        height: 15px;
    }


    /* CONTAINER */

    .page-inner {
        padding:
            0 15px;
    }


    /* PRODUCT SECTION */

    .product-detail-section {
        padding:
            25px 0 45px;
    }


    .back-link {
        margin-bottom:
            18px;

        font-size:
            12px;
    }


    /* PRODUCT */

    .product-detail {

        display:
            flex;

        flex-direction:
            column;

        gap:
            25px;
    }


    /* IMAGE */

    .main-product-image {

        width:
            100%;

        height:
            auto;

        aspect-ratio:
            1 / 1;

        border-radius:
            9px;
    }


    /* THUMBNAILS */

    .product-thumbnails {
        gap:
            7px;

        margin-top:
            9px;
    }


    .product-thumbnail {

        width:
            65px;

        height:
            65px;

        flex-basis:
            65px;
    }


    /* INFO */

    .product-info {
        padding-top:
            0;
    }


    .product-brand {

        margin-bottom:
            7px;

        font-size:
            10px;
    }


    .product-info h1 {

        font-size:
            27px;

        letter-spacing:
            -.5px;
    }


    .product-category {

        margin-top:
            10px;

        font-size:
            12px;
    }


    .product-part-number {

        font-size:
            12px;
    }


    /* PRICE */

    .product-price-box {

        margin-top:
            20px;

        padding:
            15px;
    }


    .selling-price {

        font-size:
            25px;
    }


    .mrp-price {

        font-size:
            12px;
    }


    .contact-price {

        margin-top:
            20px;

        padding:
            15px;

        font-size:
            13px;
    }


    /* DESCRIPTION */

    .product-description {

        margin-top:
            20px;

        font-size:
            13px;

        line-height:
            1.6;
    }


    /* ACTIONS */

    .product-actions {

        width:
            100%;

        flex-direction:
            column;

        gap:
            9px;

        margin-top:
            21px;
    }


    .call-enquire,
    .whatsapp-enquire {

        width:
            100%;

        min-height:
            49px;

        font-size:
            13px;
    }


    /* RECOMMENDED */

    .recommended-section {

        padding:
            40px 0 55px;
    }


    .recommended-heading {

        margin-bottom:
            20px;
    }


    .recommended-heading h2 {

        font-size:
            24px;
    }


    .recommended-heading p {

        font-size:
            12px;
    }


    .recommended-grid {

        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        gap:
            10px;
    }


    .recommended-content {

        min-height:
            105px;

        padding:
            10px;
    }


    .recommended-brand {

        font-size:
            8px;
    }


    .recommended-content h3 {

        margin-top:
            5px;

        font-size:
            11px;
    }


    .recommended-link {

        padding-top:
            8px;

        font-size:
            9px;
    }


    /* FOOTER */

    .footer-inner {

        min-height:
            auto;

        padding:
            25px 15px;

        flex-direction:
            column;

        gap:
            13px;

        text-align:
            center;
    }


    .footer-brand strong {
        font-size:
            15px;
    }


    .footer-inner > p {
        font-size:
            11px;
    }


    .footer-links {
        gap:
            20px;
    }


    .footer-links a {
        font-size:
            12px;
    }

}


/* =========================================================
   PRODUCT DETAIL CONSISTENCY
========================================================= */
.product-detail{align-items:stretch}.product-gallery,.product-info{min-width:0}.product-info h1{min-height:2.4em;display:flex;align-items:flex-start}.product-price-box,.contact-price{min-height:116px}.product-description{min-height:105px}@media(max-width:700px){.product-info h1{min-height:0}.product-price-box,.contact-price{min-height:0}.product-description{min-height:0}}