/*
 Theme Name:   QuikLok USA
 Theme URI:    https://quiklokusatest.algameko.com/
 Description:  Divi Child Theme for Quik Lok USA
 Author:       JAM USA LLC
 Author URI:   https://quiklokusatest.algameko.com/
 Template:     Divi
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  quiklokusa
*/

/* ==========================================================
   Quik Lok Brand Variables
   ========================================================== */
:root {
    --ql-gold:   #ecc640;
    --ql-teal:   #008783;
    --ql-black:  #000000;
    --ql-white:  #ffffff;
    --ql-gray:   #f3f3f3;
    --ql-text:   #333333;
}

/* ==========================================================
   Divi Button Style Override
   ========================================================== */
.et_pb_button {
    background-color: var(--ql-gold) !important;
    border-color:     var(--ql-gold) !important;
    color:            #000 !important;
    border-radius:    25px !important;
    font-weight:      700 !important;
}

.et_pb_button:hover {
    background-color: var(--ql-teal) !important;
    border-color:     var(--ql-teal) !important;
    color:            #fff !important;
}

/* ==========================================================
   Header: sticky white on scroll (Divi fullwidth menu)
   ========================================================== */
#main-header .et-fixed-header {
    background-color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(0,0,0,.12) !important;
}

#main-header .et-fixed-header .et_pb_menu__menu a,
#main-header .et-fixed-header .et_pb_menu__logo-wrap a {
    color: #000000 !important;
}

/* ==========================================================
   Footer typography
   ========================================================== */
#footer-bottom {
    background-color: var(--ql-black) !important;
    color: var(--ql-white) !important;
}

/* ==========================================================
   Popular Products WooCommerce grid (home page)
   ========================================================== */
.et_pb_code .products .product a:hover .woocommerce-loop-product__title {
    color: var(--ql-teal);
}

/* ==========================================================
   General content area
   ========================================================== */
.et_pb_text h2,
.et_pb_text h3 {
    color: var(--ql-text);
}

.et_pb_text a {
    color: var(--ql-teal);
}

.et_pb_text a:hover {
    color: var(--ql-gold);
}

/* ==========================================================
   Hero title band (dark full-width banner)
   ========================================================== */
.ql-series-hero {
    background: #0f1923;
    padding: 22px 0 26px;
    text-align: center;
}
.ql-series-hero .ql-breadcrumb {
    font-size: 12px;
    color: rgba(255,255,255,.5);
    margin-bottom: 10px;
    justify-content: center;
    display: flex;
    gap: 0;
}
.ql-series-hero .ql-breadcrumb a {
    color: rgba(255,255,255,.7);
    text-decoration: none;
}
.ql-series-hero .ql-breadcrumb a:hover { color: var(--ql-gold); }
.ql-series-hero .ql-breadcrumb span { color: rgba(255,255,255,.5); }
.ql-bc-sep { margin: 0 6px; }

.ql-series-hero--img {
    background-size: cover;
    background-position: center;
    position: relative;
}
.ql-series-hero--img::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 18, 28, 0.68);
}
.ql-series-hero--img .container {
    position: relative;
    z-index: 1;
}

.ql-series-title {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1.2;
}

/* ==========================================================
   Instrument-Series archive — content area
   ========================================================== */
.ql-series-content {
    padding: 36px 0 60px;
}
.ql-series-description {
    font-size: 16px;
    color: #555;
    margin-bottom: 28px;
}
.ql-no-products {
    color: #888;
    font-size: 16px;
}

/* Product grid – 4 columns */
.ql-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Card */
.ql-product-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: #fff;
    border: 1px solid #dde1e4;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}
.ql-product-card:hover {
    border-color: var(--ql-teal);
    box-shadow: 0 2px 12px rgba(0,135,131,.15);
}

/* Image area */
.ql-product-card__img {
    background: #ffffff;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #eaeaea;
}
.ql-product-card__img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    transition: transform .3s;
}
.ql-product-card:hover .ql-product-card__img img {
    transform: scale(1.04);
}

/* Bottom info strip */
.ql-product-card__body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px 12px;
    flex: 1;
}
.ql-product-card__info {
    flex: 1;
    min-width: 0;
}
.ql-product-card__cat {
    display: block;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .6px;
    color: #888;
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ql-product-card__title {
    font-size: 11px;
    font-weight: 700;
    color: var(--ql-text);
    text-transform: uppercase;
    letter-spacing: .3px;
    margin: 0;
    line-height: 1.3;
}

/* SEE IT button */
.ql-product-card__btn {
    flex-shrink: 0;
    background: var(--ql-teal);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 6px 11px;
    border-radius: 3px;
    white-space: nowrap;
    transition: background .2s;
}
.ql-product-card:hover .ql-product-card__btn {
    background: #006663;
}

/* ==========================================================
   Single product
   ========================================================== */

/* Two-column layout: image | summary */
.ql-single-wrap {
    background: #fff;
    padding: 40px 0 48px;
}
.ql-single-layout {
    display: grid;
    grid-template-columns: 55% 1fr;
    gap: 48px;
    align-items: start;
}

/* Gallery column */
.ql-single-main-img {
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 380px;
    padding: 24px;
}
.ql-single-main-img img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}
.ql-single-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.ql-single-thumb img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    background: #f8f8f8;
    border: 1px solid #dde1e4;
    padding: 4px;
    transition: border-color .2s;
}
.ql-single-thumb:hover img { border-color: var(--ql-teal); }

/* Summary column */
.ql-single-summary { padding-top: 8px; }

.ql-single-cat {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--ql-teal);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.ql-single-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--ql-text);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin: 0 0 22px;
    line-height: 1.2;
}
.ql-single-meta {
    margin: 0 0 28px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ql-single-meta__row {
    display: flex;
    gap: 10px;
    font-size: 13px;
    align-items: baseline;
}
.ql-single-meta__row dt {
    font-weight: 700;
    color: var(--ql-text);
    min-width: 52px;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: .5px;
}
.ql-single-meta__row dd {
    color: #444;
    margin: 0;
}

/* SEE SPECS button */
.ql-single-btn {
    display: inline-block;
    background: var(--ql-teal);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 26px;
    border-radius: 3px;
    text-decoration: none;
    transition: background .2s;
}
.ql-single-btn:hover {
    background: #006663;
    color: #fff;
    text-decoration: none;
}

/* Description band — full-width gray */
.ql-desc-band {
    background: #eef1f3;
    border-top: 1px solid #dde1e4;
    border-bottom: 1px solid #dde1e4;
    padding: 36px 0;
}
.ql-desc-content {
    font-size: 14px;
    line-height: 1.75;
    color: var(--ql-text);
}
.ql-desc-content ul {
    margin: 0;
    padding-left: 22px;
}
.ql-desc-content li { margin-bottom: 5px; }

/* Specifications */
.ql-specs-section {
    padding: 52px 0 44px;
}
.ql-specs-heading {
    font-size: 26px;
    font-weight: 700;
    color: var(--ql-text);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    margin: 0 0 32px;
}
.ql-specs-sub {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ql-text);
    margin: 0 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #dde1e4;
}
.ql-specs-table {
    width: 100%;
    max-width: 580px;
    border-collapse: collapse;
    font-size: 13px;
}
.ql-specs-table th,
.ql-specs-table td {
    padding: 9px 12px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
}
.ql-specs-table th {
    font-weight: 700;
    color: var(--ql-text);
    width: 210px;
    background: transparent;
}
.ql-specs-table td { color: #555; }
.ql-specs-table tr:last-child th,
.ql-specs-table tr:last-child td { border-bottom: none; }

/* Related products — horizontal scroll strip */
.ql-related-section {
    padding: 52px 0 64px;
    border-top: 1px solid #e8e8e8;
}
.ql-related-heading {
    font-size: 24px;
    font-weight: 700;
    color: var(--ql-text);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    margin: 0 0 28px;
}

/* Wrapper con frecce assolute */
.ql-related-scroll-wrap {
    position: relative;
    padding: 0 48px;
}

/* Arrow buttons — assolute, centrate sull'immagine (190px × 1:1) */
.ql-related-arrow {
    position: absolute;
    top: 95px; /* metà altezza immagine (190px / 2) */
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: #1a6bcc;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    z-index: 2;
    padding: 0;
}
.ql-related-arrow:hover { background: #0050aa; }
.ql-related-arrow--prev { left: 0; }
.ql-related-arrow--next { right: 0; }

/* Horizontal scroll container */
.ql-related-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
    scrollbar-width: none;
}
.ql-related-grid::-webkit-scrollbar { display: none; }

/* Each related card = same as archive card, fixed width */
.ql-related-grid .ql-product-card {
    flex: 0 0 190px;
    width: 190px;
    scroll-snap-align: start;
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 980px) {
    .ql-product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .ql-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .ql-product-card__btn { display: none; }
    .ql-product-card__title { font-size: 10px; }

    .ql-single-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .ql-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ql-series-title { font-size: 18px; letter-spacing: 1px; }
    .ql-single-title { font-size: 18px; }
}
