/*
Theme Name: Sasa Alloy Clone
Theme URI: https://www.sasaalloy.com/
Author: Sasa Alloy
Description: Full public-site migration theme for Sasa Alloy.
Version: 2.0.0
Text Domain: sasaalloy-clone
*/

html { margin-top: 0 !important; }

.sasaalloy-inquiry-wrap { padding: 24px; background: #f4f7f9; border: 1px solid #dfe6eb; }
.sasaalloy-inquiry-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.sasaalloy-inquiry-form p { margin: 0; }
.sasaalloy-inquiry-form p:nth-last-child(2),
.sasaalloy-inquiry-form p:last-child { grid-column: 1 / -1; }
.sasaalloy-inquiry-form label { display: grid; gap: 6px; font-weight: 600; }
.sasaalloy-inquiry-form .sasaalloy-optional { color: #66737c; font-size: 0.9em; font-weight: 400; }
.sasaalloy-inquiry-form input,
.sasaalloy-inquiry-form textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #bdc9d1; background: #fff; }
.sasaalloy-inquiry-form button,
.sasaalloy-email-button { display: inline-block; padding: 11px 22px; border: 0; background: #005baa; color: #fff !important; text-decoration: none; cursor: pointer; }
.sasaalloy-honeypot { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.sasaalloy-inquiry-success { color: #176b32; font-weight: 600; }
.sasaalloy-inquiry-error { color: #a12622; font-weight: 600; }

html.sasaalloy-modal-open { overflow: hidden; }
html.sasaalloy-modal-open #whatsapp { visibility: hidden; }
.inquiry-pop-bd.sasaalloy-quick-overlay {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: none;
    width: 100%;
    height: 100% !important;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    overflow: auto;
    padding: 24px;
    background: rgba(4, 25, 40, 0.78);
}
.inquiry-pop-bd .inquiry-pop.sasaalloy-quick-inquiry {
    position: relative;
    width: min(760px, 100%) !important;
    height: auto !important;
    max-height: calc(100vh - 48px);
    box-sizing: border-box;
    overflow: auto;
    margin: auto !important;
    padding: 54px 56px 58px !important;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
    color: #183247;
    font-family: Arial, Helvetica, sans-serif;
}
.sasaalloy-quick-close {
    position: absolute;
    top: 20px;
    right: 20px;
    display: grid;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    place-items: center;
    background: #eef4f7;
    color: #17374d;
    font-size: 36px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
}
.sasaalloy-quick-close:hover,
.sasaalloy-quick-close:focus-visible { background: #dfeaf0; }
.sasaalloy-quick-eyebrow {
    margin: 0 0 12px;
    color: #007fb5;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.inquiry-pop-bd .sasaalloy-quick-inquiry h2 {
    margin: 0;
    color: #142f43;
    font-size: clamp(34px, 5vw, 48px);
    font-weight: 800;
    line-height: 1.1;
}
.sasaalloy-quick-intro {
    max-width: 650px;
    margin: 18px 0 38px;
    color: #617386;
    font-size: 20px;
    line-height: 1.55;
}
.sasaalloy-quick-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 22px;
}
.sasaalloy-quick-field { min-width: 0; }
.sasaalloy-quick-field label {
    display: block;
    margin: 0 0 10px;
    color: #1a3a51;
    font-size: 17px;
    font-weight: 700;
}
.sasaalloy-quick-field input {
    width: 100%;
    height: 58px;
    box-sizing: border-box;
    padding: 0 18px;
    border: 1px solid #c6d5df;
    border-left: 4px solid #008bbb;
    border-radius: 6px;
    outline: 0;
    background: #fff;
    color: #183247;
    font-size: 18px;
}
.sasaalloy-quick-field input:focus {
    border-color: #008bbb;
    box-shadow: 0 0 0 4px rgba(0, 139, 187, 0.13);
}
.sasaalloy-quick-privacy {
    grid-column: 1 / -1;
    margin: -10px 0 8px;
    color: #6f8190;
    font-size: 15px;
}
.sasaalloy-quick-submit {
    grid-column: 1 / -1;
    min-height: 58px;
    padding: 14px 24px;
    border: 0;
    border-radius: 6px;
    background: #005baa;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
}
.sasaalloy-quick-submit:hover,
.sasaalloy-quick-submit:focus-visible { background: #004886; }
.sasaalloy-quick-notice {
    margin: -18px 0 28px;
    padding: 13px 16px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
}
.sasaalloy-quick-notice.is-success { background: #eaf7ee; color: #176b32; }
.sasaalloy-quick-notice.is-error { background: #fff0ef; color: #a12622; }

/* Product detail intro: three source images and four source attributes. */
.product-intro {
    display: grid;
    grid-template-columns: minmax(0, 46%) minmax(0, 1fr);
    column-gap: 7%;
    align-items: start;
}
.product-intro > .product-title { grid-column: 1 / -1; }
.product-intro > .product-view,
.product-intro > .product-summary {
    float: none;
    width: auto;
    min-width: 0;
}
.product-view .product-image.sasaalloy-product-main {
    display: flex;
    width: 100%;
    aspect-ratio: 5 / 4;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #e3e3e3;
    background: #fff;
}
.product-view .product-image.sasaalloy-product-main img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-view .sasaalloy-product-gallery {
    width: 100%;
    margin: 14px 0 0;
}
.product-view .sasaalloy-product-gallery ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}
.product-view .sasaalloy-product-gallery li {
    width: auto;
    margin: 0;
}
.product-view .sasaalloy-product-gallery .sasaalloy-product-thumb {
    display: flex;
    width: 100%;
    aspect-ratio: 5 / 4;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
    border: 1px solid #dedede;
    background: #fff;
    cursor: pointer;
}
.product-view .sasaalloy-product-gallery li.current .sasaalloy-product-thumb {
    border: 2px solid #0193de;
}
.product-view .sasaalloy-product-gallery li.is-empty .sasaalloy-product-thumb {
    cursor: default;
}
.product-view .sasaalloy-product-gallery .sasaalloy-product-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
}
.product-summary .product-meta { line-height: 1.65; }
.product-summary .product-meta h3 {
    margin: 0 0 12px;
    font-size: 20px;
    line-height: 1.35;
}
.product-summary .sasaalloy-product-description {
    margin: 0 0 16px;
    font-size: 17px;
    line-height: 1.65;
}
.sasaalloy-product-attributes {
    display: grid;
    gap: 10px;
    margin: 0;
    font-size: 17px;
}
.sasaalloy-product-attributes > div {
    display: grid;
    grid-template-columns: minmax(118px, 32%) minmax(0, 1fr);
    gap: 14px;
}
.sasaalloy-product-attributes dt { font-weight: 700; }
.sasaalloy-product-attributes dd { margin: 0; }
.product-summary .product-btn-wrap { margin-top: 22px; }

.sasaalloy-certificate-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px 24px;
    align-items: start;
    margin: 24px 0 40px;
}
.sasaalloy-certificate-card {
    min-width: 0;
    margin: 0;
    text-align: center;
}
.sasaalloy-certificate-card > a { display: block; }
.sasaalloy-certificate-card img {
    display: block;
    width: 100%;
    height: 420px;
    box-sizing: border-box;
    object-fit: contain;
    padding: 10px;
    border: 1px solid #d9e0e5;
    background: #f7f9fa;
}
.sasaalloy-certificate-card figcaption {
    margin-top: 12px;
    color: #333;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.sasaalloy-quality-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px 24px;
    align-items: start;
    margin: 30px 0 40px;
}
.sasaalloy-quality-card {
    min-width: 0;
    margin: 0;
    text-align: center;
}
.sasaalloy-quality-card > a { display: block; }
.sasaalloy-quality-card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 4;
    box-sizing: border-box;
    object-fit: cover;
    border: 1px solid #d9e0e5;
    background: #f7f9fa;
}
.sasaalloy-quality-card figcaption {
    margin-top: 12px;
    color: #333;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

@media (max-width: 900px) {
    .product-intro { column-gap: 4%; }
    .product-summary .sasaalloy-product-description,
    .sasaalloy-product-attributes { font-size: 15px; }
    .sasaalloy-certificate-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sasaalloy-certificate-card img { height: 380px; }
    .sasaalloy-quality-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
    .product-intro { grid-template-columns: 1fr; gap: 22px; }
    .product-intro > .product-title { grid-column: 1; margin-bottom: 0; }
    .product-view .product-image { display: flex; }
    .product-view .sasaalloy-product-gallery ul { gap: 9px; }
    .sasaalloy-product-attributes > div { grid-template-columns: 105px minmax(0, 1fr); }
    .sasaalloy-inquiry-form { grid-template-columns: 1fr; }
    .sasaalloy-inquiry-form p { grid-column: 1; }
    .sasaalloy-certificate-grid { grid-template-columns: 1fr; gap: 24px; }
    .sasaalloy-certificate-card img { height: auto; max-height: none; }
    .sasaalloy-quality-grid { grid-template-columns: 1fr; gap: 24px; }
    .inquiry-pop-bd.sasaalloy-quick-overlay { padding: 12px; }
    .inquiry-pop-bd .inquiry-pop.sasaalloy-quick-inquiry {
        max-height: calc(100vh - 24px);
        padding: 46px 22px 28px !important;
        border-radius: 12px;
    }
    .sasaalloy-quick-close { top: 12px; right: 12px; width: 40px; height: 40px; font-size: 30px; }
    .inquiry-pop-bd .sasaalloy-quick-inquiry h2 { font-size: 34px; }
    .sasaalloy-quick-intro { margin: 14px 0 26px; font-size: 17px; }
    .sasaalloy-quick-form { grid-template-columns: 1fr; gap: 18px; }
    .sasaalloy-quick-privacy,
    .sasaalloy-quick-submit { grid-column: 1; }
    .sasaalloy-quick-privacy { margin-top: -6px; }
}
