/* ===========================================================================
   modules_style.css — Homepage modules
   Hero slider, brand strip, product tabs, product card, video block,
   banner carousel, blog module.
   =========================================================================== */

/* ---------------------------------------------------------------
   1. Section heading (rule-behind-text)
   --------------------------------------------------------------- */
.modules-head-text-main { margin-bottom: 26px; text-align: center; }

.modules-head-forbg-text-out {
    position: relative;
    max-width: 1050px;
    margin-inline: auto;
}
.modules-head-forbg-text-out::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0; right: 0;
    height: 1px;
    background: var(--line);
}
.modules-head-forbg-text {
    position: relative;
    display: inline-block;
    padding-inline: 15px;
    background: #fff;
    font-family: var(--font-ui);
    font-size: 24px;
    font-weight: 700;
    color: #000;
    letter-spacing: -.2px;
}

.modules-head-text-h {
    font-family: var(--font-ui);
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -.4px;
    color: var(--ink-strong);
}
.modules-head-text-s {
    margin-top: 6px;
    font-size: 14px;
    color: var(--ink-muted);
}

/* ---------------------------------------------------------------
   2. Hero slider
   --------------------------------------------------------------- */
/* Reference: full-bleed white band, 24px gutter, no caption overlay —
   just the artwork with a 6px radius. Arrows are deliberately hidden. */
.slider-main-div { width: 100%; background: #fff; }

.slider-main-div-in2 {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 var(--gutter);
    box-sizing: border-box;
}

.ustsliders { position: relative; }

.slide-top-desktop { position: relative; }
.slide-top-desktop > a {
    position: absolute;
    inset: 0;
    z-index: 9;             /* overlay link, as on the reference */
}
.slide-top-desktop img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.slider-main-div .ustsliders .pg-swiper-btn { display: none !important; }

/* swiper bullets — reference uses a black elongated active bullet */
.ustsliders .swiper-pagination { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; z-index: 5; }
.ustsliders .swiper-pagination-bullet {
    width: 15px; height: 5px;
    background: rgba(0, 0, 0, .35);
    border-radius: 1px;
    opacity: 1;
    cursor: pointer;
    border: 0; padding: 0;
    transition: width .25s var(--ease), background-color .25s var(--ease);
}
.ustsliders .swiper-pagination-bullet-active { width: 30px; background: #000; }

/* generic arrows */
.pg-swiper-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .94);
    border: 1px solid var(--line);
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    color: var(--ink-strong);
    z-index: 6;
    transition: background-color .18s var(--ease), color .18s var(--ease), opacity .18s var(--ease);
}
.pg-swiper-btn:hover { background: var(--navy-900); color: #fff; }
.pg-swiper-btn.is-disabled { opacity: .35; pointer-events: none; }
.pg-swiper-prev { left: 6px; }
.pg-swiper-next { right: 6px; }

/* ---------------------------------------------------------------
   3. Brand strip
   --------------------------------------------------------------- */
/* Reference: black hairline above and below, 188x85 bordered tiles. */
.marka-module-main-div { padding-block: 20px; background: #fff; border-block: 1px solid #000; }

.marka-module-inside-area {
    position: relative;
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.brand-track {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-block: 4px;
}
.brand-track::-webkit-scrollbar { display: none; }

.brand-slide {
    flex: 0 0 188px;
    scroll-snap-align: start;
    min-width: 0;
    height: 85px;
    padding: 5px 10px;
    background: #fff;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.brand-slide:hover { border-color: var(--navy-600); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.brand-slide a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.brand-slide img { max-height: 44px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .78; transition: filter .2s var(--ease), opacity .2s var(--ease); }
.brand-slide a:hover img { filter: grayscale(0); opacity: 1; }

/* ---------------------------------------------------------------
   4. Products module + tabs
   --------------------------------------------------------------- */
.urunler-module-main-div { margin-block: 20px; background: #fff; }

.urunler-module-inside-area-full {
    max-width: 1340px;
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.home-product-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 22px;
}

.home-product-tablinks {
    min-width: 147px;
    height: 40px;
    margin: 10px;
    padding-inline: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-alt);
    border: 0;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-family: var(--font-ui);
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
    white-space: nowrap;
    transition: color .18s var(--ease), border-color .18s var(--ease), background-color .18s var(--ease);
}
.home-product-tablinks:hover { color: var(--navy-600); }
.home-product-tablinks.active { border-bottom-color: var(--navy-600); color: var(--navy-600); font-weight: 600; }

.home-product-tabcontent { display: none; }
.home-product-tabcontent.active { display: block; }

.home-product-tabcontent-in,
.cat-detail-products {
    display: grid;
    gap: 28px 24px;
}

/* Full-width modules run 4-up; the category listing runs 3-up because the
   filter rail takes 304px of the row (reference: 3 x 329px inside 1043px). */
.home-product-tabcontent-in { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cat-detail-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* listings without a filter rail get the full-width treatment */
.search-page .cat-detail-products,
.related-products .cat-detail-products { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------------------------------------------------------------
   5. Product card
   --------------------------------------------------------------- */
.cat-detail-products-box {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color .22s var(--ease), box-shadow .22s var(--ease), transform .22s var(--ease);
}
.cat-detail-products-box:hover {
    border-color: #d8dce3;
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.cat-detail-products-box-img {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    background: #fff;
    overflow: hidden;
}
.cat-detail-products-box-img > a { display: block; width: 100%; height: 100%; }

/* --- ambient product clip -------------------------------------------------
   Matches the reference's `.videocontaner`: a silent looping clip layered
   over the product photo. The photo stays as the <video> poster, so the card
   never flashes empty while the clip loads (or if it fails). --------------- */
.videocontaner {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: #fff;
}
.videocontaner video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* badge and hover rail must stay above the clip */
.cat-detail-products-box .product-badge,
.cat-detail-products-box .product-actions { z-index: 2; }

/* subtle hint that the card carries a clip */
.cat-detail-products-box-img.has-video::after {
    content: "\f04b";                      /* fa-play */
    font-family: FontAwesome;
    position: absolute;
    left: 10px; bottom: 10px;
    z-index: 2;
    width: 24px; height: 24px;
    display: flex; align-items: center; justify-content: center;
    font-size: 9px;
    color: #fff;
    background: rgba(17, 24, 39, .55);
    border-radius: 50%;
    pointer-events: none;
}
.cat-detail-products-box-img img {
    width: 100%; height: 100%;
    object-fit: contain;
    padding: 10px;
    transition: transform .35s var(--ease);
}
.cat-detail-products-box:hover .cat-detail-products-box-img img { transform: scale(1.045); }

.product-badge {
    position: absolute;
    top: 10px; left: 10px;
    display: inline-flex; align-items: center;
    height: 22px; padding-inline: 9px;
    border-radius: var(--radius-sm);
    background: var(--red-grad);
    color: #fff;
    font-family: var(--font-ui);
    font-size: 10.5px; font-weight: 700; letter-spacing: .4px;
    text-transform: uppercase;
}
.product-badge.is-stock { background: #10b981; }
.product-badge.is-out { background: var(--ink-faint); }

/* hover action rail */
.product-actions {
    position: absolute;
    top: 10px; right: 10px;
    display: flex; flex-direction: column; gap: 7px;
    opacity: 0;
    transform: translateX(8px);
    transition: opacity .22s var(--ease), transform .22s var(--ease);
}
.cat-detail-products-box:hover .product-actions { opacity: 1; transform: translateX(0); }
.product-actions button {
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 50%;
    cursor: pointer;
    color: var(--ink-strong);
    font-size: 13px;
    box-shadow: var(--shadow-sm);
    transition: background-color .15s var(--ease), color .15s var(--ease);
}
.product-actions button:hover { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }

/* Info block is deliberately compact — the reference keeps it at 84px:
   a 16px brand/price line plus a 48px two-line title. Commerce affordances
   (add to cart, compare) live on the image hover rail instead. */
.cat-detail-products-box-info { padding: 12px 15px 15px; display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; }

.cat-detail-products-box-topline {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    min-height: 16px;
}

.cat-detail-products-box-marka {
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    line-height: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cat-detail-products-box-marka a:hover { color: var(--red-500); }

.cat-detail-products-box-h {
    font-family: var(--font-ui);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: var(--ink);
    /* two-line clamp — matches the reference's 48px title box */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 48px;
}
.cat-detail-products-box-h a:hover { color: var(--navy-600); }

/* SKU is shown only in list view, where there is room for it */
.cat-detail-products-box-sku { display: none; font-size: 11.5px; color: var(--ink-faint); font-family: var(--font-ui); letter-spacing: .2px; }

.cat-detail-products-box-price {
    font-family: var(--font-ui);
    font-size: 15px;
    font-weight: 800;
    color: var(--ink-strong);
    line-height: 16px;
    white-space: nowrap;
}
.cat-detail-products-box-price small { font-size: 11px; font-weight: 500; color: var(--ink-faint); text-decoration: line-through; margin-right: 5px; }
.cat-detail-products-box-price.is-quote { font-size: 12px; font-weight: 700; color: var(--navy-600); }

/* quick-add lives on the hover rail so the info block keeps its density */
.card-cart-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px;
    border: 1px solid var(--line); border-radius: 50%;
    background: #fff; color: var(--ink-strong);
    font-size: 13px; cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.card-cart-btn:hover { background: var(--red-500); color: #fff; border-color: var(--red-500); }

/* ---------------------------------------------------------------
   6. Video block
   --------------------------------------------------------------- */
.video-block {
    position: relative;
    max-width: calc(var(--container) - 87px);
    margin: 10px auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    isolation: isolate;
}
.video-block video, .video-block > img { display: block; width: 100%; height: auto; aspect-ratio: 1260 / 433; object-fit: cover; }
.videoblock_back { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,15,24,.78) 0%, rgba(12,15,24,.35) 55%, rgba(12,15,24,.1) 100%); }
.video-block-desc {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    z-index: 2;
    padding-inline: clamp(20px, 5vw, 64px);
    color: #fff;
}
.video-block-desc h2 { margin: 0 0 10px; font-family: var(--font-ui); font-size: clamp(22px, 3vw, 34px); font-weight: 800; letter-spacing: -.4px; }
.video-block-desc p { margin: 0; max-width: 560px; font-size: 15px; line-height: 1.7; color: rgba(255,255,255,.88); }
.video-block-desc .btn-base { margin-top: 20px; }

/* ---------------------------------------------------------------
   7. Banner carousel (square tiles)
   --------------------------------------------------------------- */
.kayan-banner-main { padding-block: 25px; background: #fff; }

.kayan-banner-main-inside-full {
    position: relative;
    max-width: 1411px;
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.kayan-banner-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}
.kayan-banner-track::-webkit-scrollbar { display: none; }

.kayan-banner-track > a {
    flex: 0 0 calc((100% - 3 * 16px) / 4);
    scroll-snap-align: start;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    min-width: 0;
}
.kayan-banner-track > a img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .4s var(--ease); }
.kayan-banner-track > a:hover img { transform: scale(1.05); }
.kayan-banner-cap {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 26px 16px 14px;
    background: linear-gradient(to top, rgba(12,15,24,.86), transparent);
    color: #fff;
    font-family: var(--font-ui); font-size: 14px; font-weight: 700;
}

/* ---------------------------------------------------------------
   8. Blog module
   --------------------------------------------------------------- */
/* Reference keeps this band transparent and the cards borderless — the
   artwork and the type carry the section, not a panel. */
.bloglar-module-main-div { padding-block: 34px 46px; background: transparent; }

.bloglar-module-inside-area {
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.bloglar-box-main-div {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    margin-top: 26px;
}

.blog-box {
    display: flex;
    flex-direction: column;
    background: transparent;
    border: 0;
}

.blog-box-img {
    display: block;
    aspect-ratio: 384 / 260;
    overflow: hidden;
    border-radius: var(--radius);
}
.blog-box-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.blog-box:hover .blog-box-img img { transform: scale(1.05); }

/* Text area is held near the reference's 174px: date, a two-line title,
   a single-line excerpt and the read-more row. */
.blog-box-text-area { display: flex; flex-direction: column; gap: 7px; padding: 18px 30px 22px 15px; flex: 1 1 auto; }

.blog-box-date { font-family: var(--font-ui); font-size: 12px; font-weight: 500; color: var(--ink-faint); letter-spacing: .3px; }

.blog-box-h {
    font-family: var(--font-ui);
    font-size: 25px;
    font-weight: 700;
    line-height: 1.28;
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-box-h a:hover { color: var(--red-500); }

.blog-box-excerpt {
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--ink-muted);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-box-button {
    margin-top: auto;
    padding-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2.6px;
    text-transform: uppercase;
    color: var(--ink);
    transition: gap .2s var(--ease), color .2s var(--ease);
}
.blog-box-button:hover { gap: 14px; color: var(--red-500); }

.pgallery-all-button-main { display: flex; justify-content: center; padding-top: 34px; }
