
/* =========================================================
   MASEK - VIEW DETAILS PAGE
   MATCH HOME PAGE: SILVER + GREEN + BLUE + WHITE
========================================================= */


/* =========================================================
   GENERAL
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    color: #111111;
    background: #FFFFFF;
    line-height: 1.6;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}


/* =========================================================
   NAVBAR - MATCH HOME PAGE
========================================================= */

.navbar {
    width: 100%;
    min-height: 90px;
    padding: 8px 7%;
    background: #C0C0C0;
    border-bottom: 3px solid #25D366;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.10);
}

/* Logo and company name */

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.navbar-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.navbar-logo img {
    width: 225px;
    height: 82px;
    object-fit: contain;
}

.navbar .logo {
    color: #111111;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

/* Navigation links */

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.nav-links a {
    color: #111111;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 700;
    padding: 10px 14px;
    border-radius: 5px;
    transition:
        background 0.25s ease,
        color 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
    background: #25D366;
    color: #111111;
}


/* =========================================================
   FLOATING CONTACT BUTTONS - REDUCED SIZE
========================================================= */

.floating-buttons {
    position: fixed;
    right: 15px;
    bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 1000;
}

.floating-buttons a {
    width: 115px;
    min-width: 115px;
    height: 31px;
    padding: 0 8px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #FFFFFF;
    white-space: nowrap;
    box-shadow: 0 3px 9px rgba(0, 0, 0, 0.15);
    transition: transform 0.25s ease, opacity 0.25s ease;
    animation: contactPulse 1.8s ease-in-out infinite;
}

.floating-buttons a:hover {
    transform: translateY(-2px);
    opacity: 0.92;
    animation-play-state: paused;
}

.floating-buttons .whatsapp {
    background: #25D366;
    color: #FFFFFF;
}

.floating-buttons .call {
    background: #2563EB;
    color: #FFFFFF;
}

.floating-buttons i {
    font-size: 12px;
}

/* Contact button animation */

@keyframes contactPulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 3px 9px rgba(0, 0, 0, 0.15);
    }

    50% {
        opacity: 0.88;
        box-shadow: 0 3px 13px rgba(37, 211, 102, 0.25);
    }
}

/* Respect reduced-motion settings */

@media (prefers-reduced-motion: reduce) {
    .floating-buttons a {
        animation: none;
    }

    html {
        scroll-behavior: auto;
    }
}


/* =========================================================
   MAIN PAGE
========================================================= */

.view-details-page {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
    padding: 35px 5% 60px;
    background: #FFFFFF;
}


/* =========================================================
   TOP AREA
========================================================= */

.details-top {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
}

.back-to-products {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #111111;
    font-size: 15px;
    font-weight: 700;
    transition: color 0.25s ease;
}

.back-to-products:hover {
    color: #25D366;
}

.details-heading {
    flex: 1;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 25px;
    font-weight: 700;
    color: #111111;
}

.details-heading span {
    position: relative;
}

.details-heading span::after {
    content: "";
    display: block;
    width: 55px;
    height: 3px;
    margin: 8px auto 0;
    background: #25D366;
    border-radius: 5px;
}


/* =========================================================
   PRODUCT DETAILS CARD
========================================================= */

.product-details-card {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 48%) minmax(0, 52%);
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.07);
}


/* =========================================================
   PRODUCT IMAGE SECTION
========================================================= */

.product-image-section {
    min-width: 0;
    padding: 20px;
    background: #F2FCF5;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
}


/* =========================================================
   PRODUCT IMAGE CONTAINER
========================================================= */

.product-image-container {
    width: 100%;
    height: 500px;
    min-height: 500px;
    padding: 0;
    margin: 0;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    overflow: hidden;
    position: relative;
}


/* =========================================================
   PRODUCT IMAGE
========================================================= */

.product-image-container img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    flex: 1 1 auto;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.product-image-container:hover img {
    transform: scale(1.02);
}


/* =========================================================
   IMAGE LOADED
========================================================= */

.product-image-container.image-loaded {
    background: #FFFFFF;
}


/* =========================================================
   IMAGE PLACEHOLDER
========================================================= */

.image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    color: #6B7280;
    background: #F2FCF5;
    text-align: center;
    font-size: 15px;
}

.image-placeholder i {
    font-size: 48px;
    color: #25D366;
}


/* =========================================================
   PRODUCT INFORMATION
========================================================= */

.product-information {
    min-width: 0;
    padding: 38px 40px;
    background: #FFFFFF;
}


/* =========================================================
   PRODUCT NAME
========================================================= */

.product-information h1 {
    margin-bottom: 22px;
    color: #111111;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 700;
    overflow-wrap: anywhere;
}


/* =========================================================
   PRODUCT INFO ROWS
========================================================= */

.product-info-row {
    display: grid;
    grid-template-columns: 125px minmax(0, 1fr);
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #E5E7EB;
}

.info-label {
    color: #555555;
    font-size: 14px;
    font-weight: 700;
}

.info-value {
    color: #111111;
    font-size: 15px;
    font-weight: 600;
    overflow-wrap: anywhere;
}


/* =========================================================
   AVAILABLE SIZES
========================================================= */

.available-sizes-section {
    margin-top: 25px;
    padding-bottom: 22px;
    border-bottom: 1px solid #E5E7EB;
}

.available-sizes-section h3 {
    margin-bottom: 12px;
    color: #111111;
    font-size: 18px;
    font-family: Arial, Helvetica, sans-serif;
}

.size-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.size-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 6px 15px;
    background: #25D366;
    color: #111111;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 700;
}


/* =========================================================
   DESCRIPTION
========================================================= */

.description-section {
    margin-top: 25px;
}

.description-section h2,
.full-details-section h2 {
    margin-bottom: 10px;
    color: #111111;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 19px;
    line-height: 1.3;
}

.description-section p {
    color: #333333;
    font-size: 15px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}


/* =========================================================
   FULL DETAILS
========================================================= */

.full-details-section {
    margin-top: 25px;
}

.full-details-text {
    color: #333333;
    font-size: 15px;
    line-height: 1.75;
    white-space: normal;
    overflow-wrap: anywhere;
}


/* =========================================================
   ACTION BUTTONS
========================================================= */

.details-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
}

.detail-quote-button,
.detail-back-button {
    min-height: 46px;
    padding: 11px 20px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 700;
    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease,
        border-color 0.25s ease;
}

/* Request a Quote */

.detail-quote-button {
    background: #2563EB;
    color: #FFFFFF;
    border: 1px solid #2563EB;
}

.detail-quote-button:hover {
    background: #1D4ED8;
    border-color: #1D4ED8;
    color: #FFFFFF;
    transform: translateY(-1px);
}

/* Back to Products */

.detail-back-button {
    background: #25D366;
    color: #111111;
    border: 1px solid #25D366;
}

.detail-back-button:hover {
    background: #20C463;
    border-color: #20C463;
    color: #111111;
    transform: translateY(-1px);
}


/* =========================================================
   PRODUCT NOT FOUND
========================================================= */

.product-not-found-page {
    width: 100%;
    max-width: 700px;
    margin: 60px auto;
    padding: 50px 35px;
    text-align: center;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
}

.not-found-icon {
    margin-bottom: 20px;
}

.not-found-icon i {
    font-size: 55px;
    color: #25D366;
}

.product-not-found-page h1 {
    margin-bottom: 12px;
    color: #111111;
    font-size: 28px;
}

.product-not-found-page p {
    margin-bottom: 25px;
    color: #555555;
    font-size: 15px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 950px) {

    .navbar {
        padding: 12px 5%;
        min-height: auto;
        flex-direction: column;
        justify-content: center;
        gap: 12px;
    }

    .navbar-brand {
        justify-content: center;
        flex-wrap: wrap;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .product-details-card {
        grid-template-columns: 1fr;
    }

    .product-image-section {
        padding: 20px;
    }

    .product-image-container {
        height: 430px;
        min-height: 430px;
    }

    .product-information {
        padding: 32px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

    .navbar {
        min-height: auto;
        padding: 12px 4%;
        gap: 10px;
    }

    .navbar-brand {
        flex-direction: column;
        gap: 5px;
    }

    .navbar-logo img {
        width: 190px;
        height: 68px;
    }

    .navbar .logo {
        font-size: 13px;
        text-align: center;
    }

    .nav-links {
        width: 100%;
        gap: 7px;
    }

    .nav-links a {
        font-size: 12px;
        padding: 8px 9px;
    }

    .view-details-page {
        padding: 25px 4% 45px;
    }

    .details-top {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .details-heading {
        width: 100%;
        order: -1;
        font-size: 23px;
        text-align: left;
    }

    .details-heading span::after {
        margin: 7px 0 0;
    }

    .product-image-section {
        padding: 12px;
    }

    .product-image-container {
        height: 350px;
        min-height: 350px;
        border-radius: 8px;
    }

    .product-information {
        padding: 25px 20px;
    }

    .product-information h1 {
        font-size: 26px;
        margin-bottom: 18px;
    }

    .product-info-row {
        grid-template-columns: 100px minmax(0, 1fr);
        gap: 10px;
    }

    .info-label,
    .info-value {
        font-size: 14px;
    }

    .description-section h2,
    .full-details-section h2 {
        font-size: 18px;
    }

    .description-section p,
    .full-details-text {
        font-size: 14px;
    }

    .details-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .detail-quote-button,
    .detail-back-button {
        width: 100%;
    }

    /* Smaller floating buttons on mobile */

    .floating-buttons {
        right: 10px;
        bottom: 12px;
        gap: 5px;
    }

    .floating-buttons a {
        width: 110px;
        min-width: 110px;
        height: 29px;
        padding: 0 7px;
        border-radius: 18px;
        font-size: 10px;
    }

    .floating-buttons a span {
        display: inline;
    }

    .floating-buttons i {
        font-size: 11px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 400px) {

    .navbar-logo img {
        width: 165px;
        height: 60px;
    }

    .product-image-container {
        height: 290px;
        min-height: 290px;
    }

    .product-information {
        padding: 22px 16px;
    }

    .product-information h1 {
        font-size: 23px;
    }

    .product-info-row {
        grid-template-columns: 90px minmax(0, 1fr);
    }

    .size-item {
        font-size: 13px;
        padding: 6px 12px;
    }

    .floating-buttons a {
        width: 105px;
        min-width: 105px;
        height: 28px;
        font-size: 10px;
    }
}
