/* =====================================================
   NEXT TEKSTİL - ANA SAYFA KATEGORİ KARTLARI
===================================================== */

/* Mobil kategori kartları */
@media (max-width: 600px) {
    #nextteks-home .nt-cat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    #nextteks-home .nt-cat-card {
        height: 225px !important;
        min-height: 225px !important;
        border-radius: 10px !important;
    }

    #nextteks-home .nt-cat-overlay {
        padding: 11px !important;
    }

    #nextteks-home .nt-cat-card h3 {
        font-size: 14px;
        line-height: 1.3;
    }

    #nextteks-home .nt-cat-card p {
        font-size: 11px;
        line-height: 1.4;
    }
}

/* Çok küçük telefonlar */
@media (max-width: 380px) {
    #nextteks-home .nt-cat-card {
        height: 210px !important;
        min-height: 210px !important;
    }

    #nextteks-home .nt-cat-card h3 {
        font-size: 12px;
    }

    #nextteks-home .nt-cat-card p {
        font-size: 10px;
    }
}

/* =====================================================
   ANA SAYFA - ÖZELLİK ŞERİDİ
===================================================== */

#nextteks-home .nt-features {
    padding: 22px 0 !important;
    background: #111 !important;
}

#nextteks-home .nt-feat-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 15px !important;
}

#nextteks-home .nt-feat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 5px 10px !important;
    border-right: 0 !important;
}

#nextteks-home .nt-feat-icon {
    flex-shrink: 0;
    font-size: 25px;
}

#nextteks-home .nt-feat-item h4 {
    color: #fff;
    font-size: 13px;
    line-height: 1.35;
    margin: 0 0 5px;
}

#nextteks-home .nt-feat-item p {
    color: #bdbdbd;
    font-size: 11px;
    line-height: 1.4;
    margin: 0;
}

@media (max-width: 1000px) {
    #nextteks-home .nt-feat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 15px !important;
    }
}

@media (max-width: 600px) {
    #nextteks-home .nt-features {
        padding: 18px 0 !important;
    }

    #nextteks-home .nt-feat-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    #nextteks-home .nt-feat-item {
        padding: 3px 0 !important;
    }

    #nextteks-home .nt-feat-item h4 {
        font-size: 13px;
    }

    #nextteks-home .nt-feat-item p {
        font-size: 11px;
    }
}

/* =====================================================
   SEPET - ALICI ÖDEMELİ KARGO AÇIKLAMASI
===================================================== */

.next-kargo-aciklama .wc-block-components-totals-shipping
.wc-block-components-totals-item__value {
    font-size: 0 !important;
}

.next-kargo-aciklama .wc-block-components-totals-shipping
.wc-block-components-totals-item__value::after {
    content: "Anlaşmalı kargo ile avantajlı gönderim.";
    font-size: 12px !important;
    color: #777 !important;
    line-height: 1.5 !important;
}

/* =====================================================
   NEXT TEKSTİL - ÜRÜN LİSTELEME
===================================================== */

.next-shop-page {
    width: min(1200px, calc(100% - 36px));
    margin: 0 auto;
}

.next-shop-hero {
    border-radius: 12px;
    overflow: hidden;
}

.next-shop-hero-inner {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
    padding: 35px 20px;
}

.next-shop-hero h1 {
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.15;
    font-weight: 800;
}

.next-shop-hero h1 span {
    display: block;
    color: #d71920;
}

.next-shop-hero p {
    max-width: 650px;
    margin: 18px auto;
    line-height: 1.7;
}

.next-shop-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.next-shop-features span {
    font-size: 12px;
    padding: 9px 13px;
    border: 1px solid #ddd;
    border-radius: 30px;
}

.next-shop-content {
    max-width: 1150px;
    margin: 18px auto 40px;
}

.next-shop-heading {
    text-align: center;
    margin-bottom: 18px;
}

.next-shop-small-title {
    color: #d71920;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

.next-shop-heading h2 {
    font-size: clamp(23px, 3vw, 32px);
    font-weight: 700;
    margin-top: 8px;
}

.next-shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 22px;
}

.next-shop-page ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 24px !important;
    margin: 0 !important;
}

.next-shop-page ul.products::before,
.next-shop-page ul.products::after {
    display: none !important;
}

.next-shop-page ul.products li.product {
    width: auto !important;
    float: none !important;
    margin: 0 !important;
    padding: 15px !important;
    border: 1px solid #eee;
    border-radius: 12px;
    background: #fff;
    transition: box-shadow .2s ease, transform .2s ease;
}

.next-shop-page ul.products li.product:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,.07);
}

.next-shop-page ul.products li.product img {
    width: 100%;
    border-radius: 8px;
}

.next-shop-page ul.products li.product .woocommerce-loop-product__title {
    font-size: 15px;
    line-height: 1.5;
    font-weight: 700;
    color: #222;
}

.next-shop-page ul.products li.product .price {
    color: #d71920;
    font-weight: 700;
}

.next-shop-page ul.products li.product .button {
    display: inline-block;
    width: 100%;
    text-align: center;
    background: #d71920;
    color: #fff;
    border-radius: 7px;
    padding: 11px 14px;
    font-size: 13px;
    font-weight: 600;
}

.next-shop-page ul.products li.product .onsale {
    display: none !important;
}

@media (max-width: 700px) {
    .next-shop-page {
        width: calc(100% - 24px);
    }

    .next-shop-hero-inner {
        padding: 35px 15px;
    }

    .next-shop-content {
        margin: 28px auto;
    }

    .next-shop-page ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .next-shop-page ul.products li.product {
        padding: 9px !important;
    }

    .next-shop-page ul.products li.product .woocommerce-loop-product__title {
        font-size: 12px;
    }

    .next-shop-page ul.products li.product .button {
        font-size: 11px;
        padding: 9px 5px;
    }

    .next-shop-toolbar {
        flex-wrap: wrap;
        font-size: 12px;
    }
}

/* =====================================================
   ÜRÜN SAYFASI - LOGO VE WHATSAPP BUTONLARI
===================================================== */

body.single-product .nt-upload-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    align-items: stretch !important;
}

body.single-product .nt-upload-actions .nt-upload-button,
body.single-product .nt-upload-actions .nt-wp-product-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 38px !important;
    min-height: 38px !important;
    margin: 0 !important;
    padding: 5px 6px !important;
    box-sizing: border-box !important;
    border-radius: 6px !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
    text-align: center !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
}

body.single-product form.cart .single_add_to_cart_button {
    min-height: 42px;
    padding: 9px 18px;
    font-size: 13px;
    border-radius: 7px;
}

body.single-product div.product .summary .single_add_to_cart_button {
    width: auto !important;
    min-width: 160px;
    padding: 12px 24px !important;
    display: inline-block !important;
    border-radius: 8px;
}

/* =====================================================
   ÜRÜN SAYFASI - TAŞMA KONTROLÜ
===================================================== */

body.single-product,
body.single-product #page,
body.single-product .site,
body.single-product .site-content {
    max-width: 100%;
    overflow-x: clip;
}

body.single-product .woocommerce,
body.single-product .product,
body.single-product .summary,
body.single-product .woocommerce-product-details__short-description {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

body.single-product .summary * {
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: anywhere;
}

body.single-product img,
body.single-product input,
body.single-product select,
body.single-product textarea {
    max-width: 100% !important;
}

/* =====================================================
   ÜRÜN SAYFASI - KISA AÇIKLAMA
===================================================== */

body.single-product .woocommerce-product-details__short-description {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 12px !important;
    line-height: 1.55 !important;
    color: #555 !important;
    overflow-wrap: break-word !important;
    box-sizing: border-box !important;
}

body.single-product .woocommerce-product-details__short-description p {
    font-size: 12px !important;
    line-height: 1.55 !important;
    margin: 0 0 9px !important;
}

body.single-product .woocommerce-product-details__short-description strong {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #222 !important;
}

body.single-product .woocommerce-product-details__short-description h2,
body.single-product .woocommerce-product-details__short-description h3 {
    font-size: 15px !important;
    line-height: 1.4 !important;
    margin: 12px 0 7px !important;
}

body.single-product .summary {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
}

body.single-product .summary h1.product_title {
    font-size: 21px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
    overflow-wrap: break-word !important;
}

body.single-product .summary .price {
    font-size: 19px !important;
    line-height: 1.4 !important;
}

body.single-product .summary .price del {
    font-size: 13px !important;
}

body.single-product .summary .price ins {
    font-size: 19px !important;
    text-decoration: none !important;
}

/* =====================================================
   ÜRÜN SAYFASI - UZUN AÇIKLAMA
===================================================== */

body.single-product .woocommerce-Tabs-panel--description {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 13px !important;
    line-height: 1.65 !important;
    color: #555 !important;
    overflow-wrap: break-word !important;
}

body.single-product .woocommerce-Tabs-panel--description p {
    font-size: 13px !important;
    line-height: 1.65 !important;
    margin: 0 0 12px !important;
}

body.single-product .woocommerce-Tabs-panel--description h2 {
    font-size: 19px !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
    color: #222 !important;
    margin: 25px 0 12px !important;
}

body.single-product .woocommerce-Tabs-panel--description h3 {
    font-size: 16px !important;
    line-height: 1.4 !important;
    margin: 18px 0 9px !important;
}

body.single-product .woocommerce-Tabs-panel--description ul {
    padding-left: 20px !important;
    margin: 8px 0 15px !important;
}

body.single-product .woocommerce-Tabs-panel--description li {
    font-size: 13px !important;
    line-height: 1.6 !important;
    margin-bottom: 5px !important;
}

body.single-product .woocommerce-Tabs-panel--description table {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 12px !important;
    border-collapse: collapse !important;
    table-layout: fixed !important;
}

body.single-product .woocommerce-Tabs-panel--description th,
body.single-product .woocommerce-Tabs-panel--description td {
    padding: 9px !important;
    overflow-wrap: break-word !important;
}

body.single-product .woocommerce-Tabs-panel--description * {
    box-sizing: border-box !important;
    max-width: 100%;
}

/* =====================================================
   ÜRÜN SAYFASI - ALT ALAN TEMİZLİĞİ
===================================================== */

body.single-product .widget_pages,
body.single-product .widget_archive,
body.single-product .widget_categories,
body.single-product .widget_meta,
body.single-product .widget_recent_entries,
body.single-product .widget_recent_comments,
body.single-product .widget_nav_menu,
body.single-product footer .widget,
body.single-product footer .widget-area,
body.single-product footer .wp-block-pages-list,
body.single-product footer .wp-block-archives,
body.single-product footer .wp-block-categories,
body.single-product footer .wp-block-heading,
body.single-product footer .wp-block-latest-posts,
body.single-product footer .wp-block-page-list,
body.single-product footer .widget-title,
body.single-product #sidebar {
    display: none !important;
}

body.single-product footer ul,
body.single-product footer ol {
    display: none !important;
}

/* =====================================================
   ÜRÜN SAYFASI - FİYAT ALANI
===================================================== */

body.single-product div.product .summary p.price,
body.single-product div.product .summary span.price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 14px;
    width: 100%;
    box-sizing: border-box;
    margin: 20px 0 18px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    color: #222;
    font-size: 16px;
}

body.single-product div.product .summary p.price::before,
body.single-product div.product .summary span.price::before {
    content: "NAKIŞ DAHİL FİYAT";
    display: block;
    flex: 0 0 100%;
    order: -1;
    width: fit-content;
    box-sizing: border-box;
    margin-bottom: 5px;
    padding: 7px 12px;
    background: #d71920;
    border-radius: 5px;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.6px;
    line-height: 1.4;
}

body.single-product div.product .summary p.price del,
body.single-product div.product .summary span.price del {
    color: #999;
    font-size: 17px;
    font-weight: 500;
    opacity: 1;
}

body.single-product div.product .summary p.price del .amount,
body.single-product div.product .summary span.price del .amount {
    color: #999;
}

body.single-product div.product .summary p.price ins,
body.single-product div.product .summary span.price ins,
body.single-product div.product .summary p.price ins .amount,
body.single-product div.product .summary span.price ins .amount {
    color: #d71920;
    font-size: 32px;
    font-weight: 800;
    text-decoration: none;
    line-height: 1.2;
}

body.single-product div.product .summary p.price ins .woocommerce-Price-currencySymbol,
body.single-product div.product .summary span.price ins .woocommerce-Price-currencySymbol {
    font-size: 22px;
    font-weight: 700;
}

@media screen and (max-width: 600px) {
    body.single-product div.product .summary p.price,
    body.single-product div.product .summary span.price {
        gap: 8px 10px;
        padding: 15px;
        margin: 15px 0;
    }

    body.single-product div.product .summary p.price ins,
    body.single-product div.product .summary span.price ins,
    body.single-product div.product .summary p.price ins .amount,
    body.single-product div.product .summary span.price ins .amount {
        font-size: 27px;
    }

    body.single-product div.product .summary p.price del,
    body.single-product div.product .summary span.price del {
        font-size: 15px;
    }
}

/* =====================================================
   ÜRÜN SAYFASI - LOGO ALANI BİLGİ KARTI
===================================================== */

body.single-product .nt-logo-upload-box .nt-product-info-box {
    width: 100%;
    margin: 16px 0 !important;
    padding: 12px 14px !important;
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-left: 3px solid #d91e2a;
    border-radius: 9px;
    box-sizing: border-box;
}

body.single-product .nt-logo-upload-box .nt-info-row {
    padding: 7px 0;
    font-size: 12px;
    line-height: 1.5;
    color: #444;
    border-bottom: 1px solid #eee;
}

body.single-product .nt-logo-upload-box .nt-info-row:last-child {
    border-bottom: 0;
}

body.single-product .nt-logo-upload-box .nt-info-row strong {
    color: #d91e2a;
    font-weight: 800;
}

/* =====================================================
   SİPARİŞ ALANI - KDV DAHİL TOPLAM VE ÜRÜN ADEDİ
===================================================== */

body.single-product .nt-live-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    width: 100%;
    margin-top: 10px;
    padding: 14px 18px;
    box-sizing: border-box;
    border: 1px solid #17365d;
    border-radius: 10px;
    background: #17365d;
    color: #fff;
}

body.single-product .nt-live-price-total,
body.single-product .nt-live-product-count {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

body.single-product .nt-live-price-total span,
body.single-product .nt-live-product-count span {
    color: #cbd9ec;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .4px;
}

body.single-product #nt-live-price-amount,
body.single-product #nt-live-product-count-value {
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.3;
}

body.single-product .nt-live-product-count {
    display: none;
    align-items: flex-end;
    text-align: right;
}

@media (min-width: 701px) {
    body.single-product .nt-product-order-layout .nt-size-box .nt-live-price {
        grid-column: 1 / -1 !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
    }

    body.single-product .nt-product-order-layout .nt-live-product-count {
        display: flex !important;
    }
}

@media (max-width: 700px) {
    body.single-product .nt-live-price {
        display: block;
    }

    body.single-product .nt-live-product-count {
        display: none !important;
    }

    body.single-product .nt-live-price-total {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 7px;
    }

    body.single-product #nt-live-price-amount {
        font-size: 20px;
    }
}
/* =====================================================
   NEXT TEKSTİL - MASAÜSTÜ SİPARİŞ BUTONLARI EŞİTLEME
===================================================== */

@media (min-width: 701px) {

    body.single-product .nt-product-order-layout .nt-order-bottom {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 9px !important;
        width: 100% !important;
    }

    body.single-product .nt-product-order-layout .nt-order-bottom .single_add_to_cart_button,
    body.single-product .nt-product-order-layout .nt-order-bottom .nt-wp-order-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 96px !important;
        min-height: 96px !important;
        max-height: 96px !important;
        flex: 0 0 96px !important;
        margin: 0 !important;
        padding: 12px 15px !important;
        box-sizing: border-box !important;
        line-height: 1.2 !important;
    }

}
/* ==========================================
   NEXT TEKSTİL - KOMPAKT ÜRÜN SİPARİŞ ALANLARI
   Mevcut tasarım, renk ve işlevler korunur.
========================================== */

/* ANA KUTULAR */
body.single-product .nt-product-order-layout .nt-size-box,
body.single-product .nt-product-order-layout .nt-logo-upload-box,
body.single-product .nt-product-order-layout .nt-order-bottom {
    padding: 12px !important;
}

/* BEDEN ALANI */
body.single-product .nt-size-heading {
    gap: 4px !important;
    margin-bottom: 10px !important;
}

body.single-product .nt-size-heading strong,
body.single-product .nt-upload-title {
    font-size: 13px !important;
}

body.single-product .nt-size-heading span,
body.single-product .nt-upload-hint {
    font-size: 11px !important;
}

body.single-product .nt-size-grid {
    gap: 6px !important;
}

body.single-product .nt-size-item {
    padding: 7px 5px !important;
    gap: 5px !important;
}

body.single-product .nt-size-name {
    font-size: 12px !important;
}

body.single-product .nt-size-input {
    width: 48px !important;
    height: 32px !important;
    min-height: 32px !important;
    font-size: 13px !important;
}

/* NAKIŞLI / BASKILI ALANI */
body.single-product .nt-product-order-layout .nt-decor-box {
    padding: 12px !important;
    margin-top: 10px !important;
}

body.single-product .nt-decor-heading {
    margin-bottom: 10px !important;
}

body.single-product .nt-decor-heading strong {
    font-size: 16px !important;
}

body.single-product .nt-decor-options {
    gap: 7px !important;
}

body.single-product .nt-product-order-layout .nt-decor-card {
    min-height: 52px !important;
    padding: 7px 6px !important;
}

body.single-product .nt-product-order-layout .nt-decor-title {
    font-size: 13px !important;
}

body.single-product .nt-product-order-layout .nt-decor-desc {
    font-size: 10px !important;
}

/* LOGO YÜKLEME BUTONU */
body.single-product .nt-logo-upload-box label.nt-upload-button {
    min-height: 38px !important;
    padding: 8px 10px !important;
    font-size: 11px !important;
}

body.single-product .nt-logo-upload-box label.nt-upload-button .nt-upload-icon {
    font-size: 17px !important;
}

/* WHATSAPP BUTONLARI */
body.single-product .nt-wp-product-btn,
body.single-product .nt-wp-order-btn {
    min-height: 42px !important;
    padding: 9px 10px !important;
    font-size: 11px !important;
    gap: 6px !important;
}

body.single-product .nt-wp-product-btn svg,
body.single-product .nt-wp-order-btn svg {
    width: 17px !important;
    height: 17px !important;
    flex-basis: 17px !important;
}

/* SİPARİŞİ TAMAMLA */
body.single-product .nt-order-bottom .single_add_to_cart_button {
    min-height: 42px !important;
    padding: 9px 12px !important;
    font-size: 11px !important;
}

/* KUTULAR ARASI BOŞLUK */
body.single-product .nt-order-bottom {
    gap: 7px !important;
    padding-top: 10px !important;
}

/* MOBİL */
@media (max-width: 768px) {

    body.single-product .nt-product-order-layout .nt-size-box,
    body.single-product .nt-product-order-layout .nt-logo-upload-box,
    body.single-product .nt-product-order-layout .nt-order-bottom {
        padding: 10px !important;
    }

    body.single-product .nt-size-input {
        width: 44px !important;
        height: 30px !important;
        min-height: 30px !important;
    }

    body.single-product .nt-product-order-layout .nt-decor-card {
        min-height: 48px !important;
    }

    body.single-product .nt-wp-product-btn,
    body.single-product .nt-wp-order-btn,
    body.single-product .nt-order-bottom .single_add_to_cart_button {
        min-height: 38px !important;
        padding: 8px 10px !important;
    }
}
