/* ======= GENTECH MODERN SƏBƏT DİZAYNI (V11) ======= */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

/* Ümumi konteyner və fon */
.gentech-cart-wrapper {
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    padding: 30px 0;
    max-width: 1375px;

    box-sizing: border-box;
}

.gentech-cart-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.gentech-cart-main {
    flex: 1;
}

/* Məhsul Kartları */
.gentech-cart-items {
    margin-bottom: 24px;
}

.gentech-item-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gentech-item-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.gentech-item-header {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.gentech-item-thumb {
    width: 100px;
    height: 100px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gentech-item-thumb img {
    max-width: 80px;
    max-height: 80px;
    object-fit: contain;
}

.gentech-item-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gentech-item-brand {
    font-size: 13px;
    color: #999;
    font-weight: 500;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gentech-item-title {
    font-size: 16px;
    font-weight: 600;
    color: #0a0a0a;
    line-height: 1.4;
    text-decoration: none;
}

.gentech-item-title:hover {
    color: #007cba;
}

/* Aksiyalar: Miqdar və Qiymət */
.gentech-item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #f8f8f8;
}

.gentech-qty-box {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    background: white;
}

.gentech-qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: white;
    font-size: 18px;
    cursor: pointer;
    color: #0a0a0a;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.gentech-qty-btn:hover {
    background: #f5f5f5;
}

.gentech-qty-divider {
    width: 1px;
    height: 20px;
    background: #e0e0e0;
    display: block;
}

.gentech-qty-input {
    width: 50px;
    height: 40px;
    border: none !important;
    text-align: center !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #0a0a0a !important;
    padding: 0 !important;
    background: transparent !important;
    -moz-appearance: textfield;
}

.gentech-qty-input::-webkit-outer-spin-button,
.gentech-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Qiymət Bölməsi */
.gentech-price-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.gentech-item-price {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #0a0a0a;
}

.gentech-remove-link {
    font-size: 13px;
    color: #dc2626;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.gentech-remove-link:hover {
    text-decoration: underline;
}

/* Sifariş Xülasəsi (Sağ tərəf) */
.gentech-summary-card {
    background: white;
    border-radius: 16px;
    padding: 28px;
    border: 1px solid #f0f0f0;
    width: 380px;
    flex-shrink: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    position: sticky;
    top: 20px;
}

.gentech-summary-header {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #0a0a0a;
    margin-bottom: 24px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 12px;
}

.gentech-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.gentech-total-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: #666;
}

.gentech-total-price {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #0a0a0a;
}

.gentech-checkout-btn {
    width: 100%;
    padding: 18px;
    background: #0a0a0a;
    color: white !important;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0.5px;
    text-align: center;
    text-decoration: none;
    display: block;
    transition: background 0.2s, transform 0.2s;
}

.gentech-checkout-btn:hover {
    background: #262626;
    transform: translateY(-2px);
}

/* ======= DESKTOP DİZAYN (min-width: 992px) ======= */
@media (min-width: 992px) {

    /* KART - Elementlər ALT-ALTA düzülsün (row deyil, column!) */
    .gentech-item-card {
        display: flex !important;
        flex-direction: column !important;
        padding: 25px 30px !important;
    }

    /* 1-Cİ SƏTİR: Şəkil + Marka + Model (tam enli) */
    .gentech-item-header {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 20px !important;
        width: 100% !important;
        flex-shrink: 0 !important;
        margin-bottom: 20px !important;
    }

    /* Şəkil kutusu - AĞ FON */
    .gentech-item-thumb {
        width: 120px !important;
        height: 120px !important;
        flex-shrink: 0 !important;
        background: #ffffff !important;
        border: 1px solid #f0f0f0 !important;
    }

    /* Mətn hissəsi - qalan bütün sahəni tutsun */
    .gentech-item-text {
        flex: 1 !important;
        min-width: 0 !important;
        max-width: none !important;
        width: auto !important;
    }

    /* Marka */
    .gentech-item-brand {
        font-size: 12px !important;
        margin-bottom: 4px !important;
        display: block !important;
    }

    /* MODEL ADI - TƏK SƏTİRDƏ TAM AÇILSIN */
    .gentech-item-title {
        font-size: 17px !important;
        font-weight: 600 !important;
        line-height: 1.35 !important;
        color: #0a0a0a !important;
        display: block !important;
        width: 100% !important;
    }

    .gentech-item-title a {
        color: inherit !important;
        text-decoration: none !important;
    }

    /* 2-Cİ SƏTİR: Qty (sol) + Qiymət (sağ) - tam enli, ayrı sətir */
    .gentech-item-actions {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        padding-top: 15px !important;
        padding-left: 0 !important;
        /* Şəkil altından başlasın */
        border-top: none !important;
        margin-top: 0 !important;
    }

    /* Miqdar Qutusu */
    .gentech-qty-box {
        display: flex !important;
        align-items: center !important;
        border: 1px solid #e0e0e0 !important;
        border-radius: 8px !important;
        background: #fff !important;
        height: 38px !important;
        min-width: 120px !important;
    }

    .gentech-qty-btn {
        width: 36px !important;
        height: 36px !important;
        border: none !important;
        background: transparent !important;
        font-size: 16px !important;
        cursor: pointer !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .gentech-qty-divider {
        width: 1px !important;
        height: 20px !important;
        background: #e0e0e0 !important;
    }

    .gentech-qty-input,
    .gentech-qty-box input[type="number"] {
        width: 40px !important;
        height: 36px !important;
        border: none !important;
        text-align: center !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        background: transparent !important;
    }

    /* Qiymət Hissəsi - TAM SAĞDA */
    .gentech-price-section {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-end !important;
        text-align: right !important;
    }

    .gentech-item-price {
        font-family: 'Space Grotesk', sans-serif !important;
        font-size: 22px !important;
        font-weight: 700 !important;
        color: #0a0a0a !important;
    }

    .gentech-remove-link {
        font-size: 12px !important;
        color: #dc2626 !important;
        margin-top: 4px !important;
    }
}

/* MOBİL VERSİYA */
@media (max-width: 991px) {
    .gentech-cart-layout {
        flex-direction: column;
    }

    .gentech-summary-card {
        width: 100%;
        position: static;
        box-sizing: border-box;
    }
}

@media (max-width: 576px) {

    /* Horizontal scroll problemini həll et */
    .gentech-cart-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        padding: 15px !important;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .gentech-cart-layout {
        max-width: 100%;
        width: 100%;
    }

    .gentech-cart-main {
        width: 100% !important;
        flex: none !important;
    }

    .gentech-item-card {
        max-width: 100%;
        width: 100% !important;
        padding: 16px;
        box-sizing: border-box;
    }

    .gentech-item-header {
        gap: 12px;
    }

    .gentech-item-thumb {
        width: 80px;
        height: 80px;
    }

    .gentech-item-title {
        font-size: 14px;
        word-break: break-word;
    }

    .gentech-item-price {
        font-size: 18px;
    }

    .gentech-summary-card {
        padding: 20px 16px;
    }

    /* Boş səbət səhifəsini yuxarı çəkmək üçün */
    .cart-empty-wrapper {
        padding: 30px 15px !important;
        min-height: auto !important;
    }

    .empty-cart-container {
        padding: 30px 20px !important;
        margin-top: 10px !important;
    }
}

/* ======= BOŞ SƏBƏT SƏHİFƏSİ (Dəyişməz Qalır) ======= */
.cart-empty-wrapper {
    background-color: #ffffff;
    padding: 60px 20px;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.empty-cart-container {
    background-color: white;
    border-radius: 16px;
    padding: 40px 50px;
    text-align: center;
    max-width: 650px;
    width: 100%;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

.empty-cart-icon img {
    max-width: 160px;
    height: auto;
    margin-bottom: 20px;
}

.empty-cart-title {
    font-size: 26px;
    font-weight: 700;
    color: #0a0a0a;
    margin-bottom: 12px;
}

.empty-cart-text {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.empty-cart-button {
    background-color: #0a0a0a !important;
    color: white !important;
    border-radius: 8px !important;
    padding: 14px 35px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-block !important;
}

.woocommerce-info,
p.cart-empty,
.return-to-shop {
    display: none !important;
}

/* Səbət Qty Box - Tam Override */
.woocommerce-cart .quantity,
.gentech-qty-box .quantity {
    display: flex !important;
    align-items: center !important;
    border: none !important;
    background: transparent !important;
}

.woocommerce-cart .quantity input[type="number"],
.gentech-qty-box input[type="number"] {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    width: 40px !important;
    text-align: center !important;
    font-weight: 600 !important;
    -moz-appearance: textfield !important;
    -webkit-appearance: none !important;
}

.woocommerce-cart .quantity input::-webkit-outer-spin-button,
.woocommerce-cart .quantity input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

/* Boş səbət şəklini desktopda kiçilt */
@media (min-width: 1024px) {

    .empty-cart-icon img,
    .cart-empty-wrapper img,
    .empty-cart-container img {
        max-width: 250px !important;
        height: auto !important;
        margin: 0 auto !important;
        display: block !important;
    }

    .empty-cart-icon {
        text-align: center !important;
        width: 100% !important;
    }
}

/* Mobil horizontal scroll düzəliş (576px və aşağı) */
@media (max-width: 576px) {

    /* Horizontal scroll problemini həll et */
    .gentech-cart-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        padding: 15px !important;
        overflow-x: hidden;
    }

    .gentech-cart-layout {
        max-width: 100%;
        width: 100%;
    }

    .gentech-item-card {
        max-width: 100%;
        padding: 16px;
    }

    .gentech-item-title {
        word-break: break-word;
        /* Uzun adlar düzgün wrap olsun */
    }

    .gentech-summary-card {
        padding: 20px 16px;
    }
}

/* Yeni Cart Item Layout v12 
-------------------------------------------------------- */
.cart-item-wrap { display:flex; align-items:center; gap:18px; padding:20px; background:#fff; border-radius:12px; box-shadow:0 1px 6px rgba(0,0,0,0.08); margin-bottom:15px; }
.cart-img-box { width:120px; height:120px; border:1px solid #eee; border-radius:8px; background:#fafafa; display:flex; align-items:center; justify-content:center; overflow:hidden; flex-shrink:0; }
.cart-img-box img { max-width:100%; max-height:100%; object-fit:contain; }
.cart-info { flex:1; min-width:0; display:flex; flex-direction:column; gap:8px; }
.cart-brand { font-size:14px; color:#666; font-weight:600; text-transform:uppercase; letter-spacing:0.5px; }
.cart-name { font-size:15px; font-weight:500; color:#222; line-height:1.35; }
.cart-unit-badge { display:inline-block; background:#f5f5f5; border-radius:20px; padding:3px 10px; font-size:10.5px; color:#666; white-space:nowrap; align-self:flex-start; }
.gentech-cart-wrapper .cart-unit-badge strong { color:#666 !important; font-weight:700 !important; font-size:10.5px !important; }
.gentech-cart-wrapper .cart-unit-badge .woocommerce-Price-amount,
.gentech-cart-wrapper .cart-unit-badge .woocommerce-Price-currencySymbol,
.gentech-cart-wrapper .cart-unit-badge .woocommerce-Price-amount bdi { font-family:inherit !important; font-size:10.5px !important; color:#666 !important; font-weight:700 !important; }
.cart-right { flex-shrink:0; display:flex; flex-direction:column; align-items:flex-end; justify-content:space-between; align-self:stretch; }
.cart-total-price { font-size:16px; font-weight:700; color:#111; white-space:nowrap; }
.cart-remove { background:none; border:none; color:#cc0000; font-size:14px; font-weight:700; cursor:pointer; -webkit-font-smoothing:antialiased; text-decoration: none; }
.cart-remove:hover { text-decoration: underline; }