/*
Theme Name: Hello Elementor Child
Template: hello-elementor
Version: 1.0

=========================================================
OVERSEAS TENSILE — PRODUCT CATALOGUE
=========================================================
All catalogue styling is isolated under .z-product-page.
It is safe to keep this file as the child theme style.css.
=========================================================
*/

/* =========================================================
   VARIABLES + COMPONENT RESET
   ========================================================= */

.z-product-page {
    --z-primary: #071952;
    --z-secondary: #141414;
    --z-accent: #d90429;
    --z-whatsapp: #25D366;
    --z-blue: #1769e8;
    --z-text: #333333;
    --z-muted: #666666;
    --z-border: #e5e7eb;
    --z-bg: #f7f8fa;
    --z-white: #ffffff;
    --z-radius: 10px;
    --z-shadow: 0 8px 30px rgba(0,0,0,.06);

    width: 100%;
    box-sizing: border-box;
    background: var(--z-bg);
    color: var(--z-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    padding: 24px 0 60px;
}

.z-product-page *,
.z-product-page *::before,
.z-product-page *::after {
    box-sizing: border-box;
}

/* =========================================================
   CONTAINER / HEADER
   ========================================================= */

.z-product-page .z-product-container {
    width: min(1400px, calc(100% - 32px));
    margin: 0 auto;
}

.z-product-page .z-product-header {
    background: var(--z-white);
    border: 1px solid var(--z-border);
    border-radius: var(--z-radius);
    margin-bottom: 18px;
}

.z-product-page .z-product-header-inner {
    padding: 22px 26px;
}

.z-product-page .z-product-eyebrow {
    display: block;
    margin-bottom: 6px;
    color: var(--z-accent);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.z-product-page .z-product-page-title {
    margin: 0;
    color: var(--z-primary);
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.2;
    font-weight: 700;
}

.z-product-page .z-product-header-line {
    width: 55px;
    height: 3px;
    margin-top: 12px;
    background: var(--z-accent);
}

/* =========================================================
   MAIN PRODUCT CARD / GRID
   ========================================================= */

.z-product-page .z-product-card {
    width: 100%;
    background: var(--z-white);
    border: 1px solid var(--z-border);
    border-radius: var(--z-radius);
    box-shadow: var(--z-shadow);
    overflow: hidden;
}

.z-product-page .z-product-grid {
    display: grid;
    grid-template-columns: minmax(0, 43%) minmax(0, 57%);
    gap: 28px;
    padding: 18px;
}

/* =========================================================
   GALLERY
   ========================================================= */

.z-product-page .z-product-gallery {
    min-width: 0;
}

.z-product-page .z-product-main-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid var(--z-border);
    border-radius: 7px;
    background: #f1f3f5;
}

.z-product-page .z-product-main-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform .35s ease;
}

.z-product-page .z-product-main-image:hover img {
    transform: scale(1.015);
}

.z-product-page .z-product-no-image {
    width: 100%;
    height: 100%;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--z-muted);
}

.z-product-page .z-product-thumbnails {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    margin-top: 12px;
    padding: 2px;
    scrollbar-width: thin;
}

.z-product-page .z-product-thumb {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    padding: 3px;
    background: var(--z-white);
    border: 1px solid var(--z-border);
    border-radius: 6px;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.z-product-page .z-product-thumb:hover {
    border-color: var(--z-primary);
    transform: translateY(-2px);
}

.z-product-page .z-product-thumb.is-active {
    border: 2px solid var(--z-primary);
    box-shadow: 0 0 0 2px rgba(7,25,82,.08);
}

.z-product-page .z-product-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 3px;
}

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

.z-product-page .z-product-info {
    min-width: 0;
    padding: 6px 4px;
}

.z-product-page .z-product-title {
    margin: 0 0 10px;
    color: var(--z-primary);
    font-size: clamp(24px, 3vw, 30px);
    line-height: 1.25;
    font-weight: 700;
}

.z-product-page .z-product-brand {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 15px;
}

.z-product-page .z-product-brand span {
    color: var(--z-muted);
}

.z-product-page .z-product-brand strong {
    color: var(--z-text);
}

.z-product-page .z-product-brand .z-model-label {
    margin-left: 10px;
}

/* =========================================================
   PRICE
   ========================================================= */

.z-product-page .z-product-price-area {
    margin: 8px 0 6px;
}

.z-product-page .z-product-price {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.z-product-page .z-product-price-current {
    color: var(--z-accent);
    font-size: 23px;
    font-weight: 700;
}

.z-product-page .z-product-price-old {
    color: #777;
    font-size: 15px;
    text-decoration: line-through;
}

.z-product-page .z-product-discount {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 5px;
    background: #eaf8ef;
    color: #18864b;
    font-size: 12px;
    font-weight: 700;
}

.z-product-page .z-product-price-unit {
    margin-top: 2px;
    color: var(--z-muted);
    font-size: 14px;
}

/* =========================================================
   LATEST PRICE
   ========================================================= */

.z-product-page .z-product-latest-price {
    display: inline-block;
    margin: 5px 0 15px;
    padding: 0;
    color: var(--z-blue);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.z-product-page .z-product-latest-price:hover {
    text-decoration: underline;
}

/* =========================================================
   SPECIFICATIONS
   ========================================================= */

.z-product-page .z-product-specs {
    border-top: 1px solid var(--z-border);
}

.z-product-page .z-product-spec-title {
    padding: 11px 0 8px;
    color: var(--z-secondary);
    font-size: 15px;
    font-weight: 700;
}

.z-product-page .z-product-spec-row {
    display: grid;
    grid-template-columns: minmax(130px, 32%) minmax(0, 1fr);
    min-height: 42px;
    border-top: 1px solid var(--z-border);
}

.z-product-page .z-product-spec-label,
.z-product-page .z-product-spec-value {
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 9px 10px;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.z-product-page .z-product-spec-label {
    color: var(--z-secondary);
    font-weight: 600;
    background: #fafafa;
}

.z-product-page .z-product-spec-value {
    color: var(--z-text);
}

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

.z-product-page .z-product-links {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
    gap: 8px;
    margin-top: 18px;
}

.z-product-page .z-product-btn {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 10px;
    border: 1px solid transparent;
    border-radius: 5px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.z-product-page .z-product-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(0,0,0,.10);
}

.z-product-page .z-product-btn:focus-visible,
.z-product-page .z-product-thumb:focus-visible,
.z-product-page .z-product-latest-price:focus-visible {
    outline: 2px solid var(--z-blue);
    outline-offset: 2px;
}

.z-product-page .z-btn-call {
    background: var(--z-blue);
    color: #fff !important;
}

.z-product-page .z-btn-whatsapp {
    background: var(--z-whatsapp);
    color: #fff !important;
}

.z-product-page .z-btn-callback {
    background: #ffb703;
    color: #111 !important;
}

.z-product-page .z-btn-info {
    background: #198754;
    color: #fff !important;
}

/* =========================================================
   MORE INFO / DETAILS
   ========================================================= */

.z-product-page .z-product-details {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows .35s ease, opacity .25s ease;
}

.z-product-page .z-product-details.is-open {
    grid-template-rows: 1fr;
    opacity: 1;
}

.z-product-page .z-product-details[hidden] {
    display: grid;
}

.z-product-page .z-product-details-inner {
    min-height: 0;
    overflow: hidden;
    border-top: 1px solid var(--z-border);
    padding: 0 22px;
}

.z-product-page .z-product-details.is-open .z-product-details-inner {
    padding-top: 24px;
    padding-bottom: 26px;
}

.z-product-page .z-product-details-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.z-product-page .z-product-details-heading h2 {
    margin: 0;
    color: var(--z-primary);
    font-size: 24px;
    line-height: 1.3;
}

.z-product-page .z-product-details-line {
    width: 4px;
    height: 25px;
    flex: 0 0 4px;
    background: var(--z-accent);
    border-radius: 4px;
}

.z-product-page .z-product-description {
    color: #555;
    font-size: 15px;
    line-height: 1.75;
}

.z-product-page .z-product-description p {
    margin: 0 0 14px;
}

.z-product-page .z-product-description p:last-child {
    margin-bottom: 0;
}

.z-product-page .z-product-description ul,
.z-product-page .z-product-description ol {
    margin: 0 0 16px;
    padding-left: 22px;
}

.z-product-page .z-product-description li {
    margin-bottom: 6px;
}

/* =========================================================
   CONTACT STRIP
   ========================================================= */

.z-product-page .z-product-contact {
    margin-top: 18px;
    background: var(--z-primary);
    border-radius: var(--z-radius);
    color: #fff;
}

.z-product-page .z-product-contact-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 26px;
}

.z-product-page .z-product-contact-label {
    display: block;
    margin-bottom: 5px;
    opacity: .7;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.z-product-page .z-product-contact h2 {
    margin: 0;
    color: #fff;
    font-size: 22px;
    line-height: 1.3;
}

.z-product-page .z-product-contact-actions {
    display: flex;
    flex-shrink: 0;
    gap: 10px;
}

.z-product-page .z-contact-call,
.z-product-page .z-contact-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 16px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
}

.z-product-page .z-contact-call {
    background: #fff;
    color: var(--z-primary) !important;
}

.z-product-page .z-contact-whatsapp {
    background: var(--z-whatsapp);
    color: #fff !important;
}

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

@media (max-width: 900px) {
    .z-product-page .z-product-grid {
        grid-template-columns: 1fr;
    }

    .z-product-page .z-product-main-image {
        aspect-ratio: 16 / 10;
    }
}

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

@media (max-width: 600px) {
    .z-product-page {
        padding: 12px 0 35px;
    }

    .z-product-page .z-product-container {
        width: calc(100% - 20px);
    }

    .z-product-page .z-product-header-inner {
        padding: 18px;
    }

    .z-product-page .z-product-page-title {
        font-size: 25px;
    }

    .z-product-page .z-product-grid {
        padding: 12px;
        gap: 18px;
    }

    .z-product-page .z-product-main-image {
        aspect-ratio: 4 / 3;
    }

    .z-product-page .z-product-thumb {
        flex-basis: 55px;
        width: 55px;
        height: 55px;
    }

    .z-product-page .z-product-title {
        font-size: 23px;
    }

    .z-product-page .z-product-brand {
        align-items: flex-start;
    }

    .z-product-page .z-product-brand .z-model-label {
        margin-left: 0;
    }

    .z-product-page .z-product-price-current {
        font-size: 21px;
    }

    .z-product-page .z-product-spec-row {
        grid-template-columns: 110px minmax(0, 1fr);
    }

    .z-product-page .z-product-spec-label,
    .z-product-page .z-product-spec-value {
        font-size: 13px;
        padding: 8px;
    }

    .z-product-page .z-product-links {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 8px;
    }

    .z-product-page .z-product-btn {
        width: 100%;
        min-height: 46px;
        padding: 10px 8px;
        font-size: 14px;
    }

    /* Current button order:
       1. Request Callback
       2. More Info
       3. Call Now
       4. WhatsApp
       5. Catalogue
    */
    .z-product-page .z-product-links > .z-product-btn:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
    }

    .z-product-page .z-product-links > .z-product-btn:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
    }

    .z-product-page .z-product-links > .z-product-btn:nth-child(3) {
        grid-column: 1;
        grid-row: 2;
    }

    .z-product-page .z-product-links > .z-product-btn:nth-child(5) {
        grid-column: 2;
        grid-row: 2;
    }

    .z-product-page .z-product-links > .z-product-btn:nth-child(4) {
        grid-column: 1 / -1;
        grid-row: 3;
    }

    .z-product-page .z-product-details-inner {
        padding-left: 16px;
        padding-right: 16px;
    }

    .z-product-page .z-product-details-heading h2 {
        font-size: 21px;
    }

    .z-product-page .z-product-description {
        font-size: 14px;
        line-height: 1.7;
    }

    .z-product-page .z-product-contact-content {
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
    }

    .z-product-page .z-product-contact h2 {
        font-size: 19px;
    }

    .z-product-page .z-product-contact-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .z-product-page .z-contact-call,
    .z-product-page .z-contact-whatsapp {
        width: 100%;
    }
}

/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 380px) {
    /* Keep the same organized 2-column action layout on small phones. */
    .z-product-page .z-product-links {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .z-product-page .z-product-spec-row {
        grid-template-columns: 95px minmax(0, 1fr);
    }

    .z-product-page .z-product-price {
        gap: 6px;
    }

    .z-product-page .z-product-contact-actions {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .z-product-page *,
    .z-product-page *::before,
    .z-product-page *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
/* =========================================================
   FINAL PRODUCT BUTTON LAYOUT
   Desktop / Laptop: 3 buttons + 2 buttons
   Mobile: 2 buttons + 2 buttons + WhatsApp full width
   ========================================================= */

.z-product-page .z-product-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    align-items: stretch;
}

/* All product buttons */
.z-product-page .z-product-links > .z-product-btn {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    margin: 0;
    padding: 10px 12px;

    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
    white-space: nowrap;
}

/* =========================================================
   DESKTOP / LAPTOP
   Row 1:
   Request Callback | More Info | Call Now

   Row 2:
   WhatsApp | Catalogue
   ========================================================= */

/* WhatsApp */
.z-product-page .z-product-links > .z-product-btn:nth-child(4) {
    grid-column: 1;
    grid-row: 2;
}

/* Catalogue */
.z-product-page .z-product-links > .z-product-btn:nth-child(5) {
    grid-column: 2;
    grid-row: 2;
}


/* =========================================================
   CATALOGUE DOWNLOAD ICON
   ========================================================= */

/* Proper download icon for Catalogue */
.z-product-page .z-product-links > .z-product-btn:nth-child(5)::before {
    content: "\f019";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    display: inline-block;
    margin-right: 7px;
    font-size: 14px;
    line-height: 1;
}

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

@media (max-width: 1024px) and (min-width: 768px) {

    .z-product-page .z-product-links {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .z-product-page .z-product-links > .z-product-btn {
        min-height: 44px;
        padding: 10px 8px;
        font-size: 14px;
    }
}


/* =========================================================
   MOBILE
   2 + 2 + WhatsApp full width
   ========================================================= */

@media (max-width: 767px) {

    .z-product-page .z-product-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    /* Request Callback */
    .z-product-page .z-product-links > .z-product-btn:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
    }

    /* More Info */
    .z-product-page .z-product-links > .z-product-btn:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
    }

    /* Call Now */
    .z-product-page .z-product-links > .z-product-btn:nth-child(3) {
        grid-column: 1;
        grid-row: 2;
    }

    /* Catalogue */
    .z-product-page .z-product-links > .z-product-btn:nth-child(5) {
        grid-column: 2;
        grid-row: 2;
    }

    /* WhatsApp - full width */
    .z-product-page .z-product-links > .z-product-btn:nth-child(4) {
        grid-column: 1 / -1;
        grid-row: 3;
    }

    .z-product-page .z-product-links > .z-product-btn {
        min-height: 48px;
        padding: 11px 8px;
        font-size: 14px;
    }
}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 380px) {

    .z-product-page .z-product-links {
        gap: 8px;
    }

    .z-product-page .z-product-links > .z-product-btn {
        min-height: 46px;
        padding: 10px 6px;
        font-size: 13px;
    }

    .z-product-page .z-product-links > .z-product-btn:nth-child(5)::before {
        margin-right: 5px;
        font-size: 15px;
    }
}