/* =========================================
   PRODUCTS PAGE STYLES
   ========================================= */
@import url('base.css');


/* =========================================
   LAYOUT
   ========================================= */

/* =========================================
   HEADER
   ========================================= */


.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition-normal);
    backdrop-filter: blur(5px);
    text-decoration: none;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
}

.back-btn i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.back-btn:hover i {
    transform: translateX(-3px);
}

.page-titles {
    text-align: center;
    margin-bottom: 60px;
    /* Kartların resmi yukarı taşacağı için boşluğu arttırdık */
}

.page-titles h1 {
    font-size: 42px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    margin-bottom: 10px;
}

.page-titles p {
    color: var(--text-secondary);
    font-size: var(--font-lg);
}

/* Section Label */
.section-label {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 50px;
}

.section-label span {
    color: var(--text-secondary);
    font-weight: var(--font-extrabold);
    font-size: var(--font-xs);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-label .line {
    flex: 1;
    height: 1px;
    background: var(--border-primary);
}

/* =========================================
   PRODUCTS GRID
   ========================================= */
.products-section {
    margin-bottom: 60px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    row-gap: 70px;
    /* Kartlar yukarı taştığı için dikey boşluğu arttırdık */
    margin-top: 30px;
}

/* =========================================
   YENİ KART TASARIMI (Görseldeki Gibi)
   ========================================= */
.category-card {
    position: relative;
    /* Görseldeki gibi koyu siyah arka plan */
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 24px;
    /* Köşeleri iyice yuvarla */
    padding: 0 20px 20px 20px;
    /* Üst padding 0 çünkü resim taşacak */

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* HTML'de kalan background divini gizle */
.card-bg {
    display: none;
}

/* Resim Alanı - KUTUDAN DIŞARI TAŞIRMA */
.icon-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: -50px;
    /* Resmi yukarı çıkartıp kutudan taşırır */
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.icon-wrapper img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.5));
    /* Resme gölge ver */
    transition: transform 0.3s ease;
}

/* Yazı Alanı */
.card-info {
    width: 100%;
    margin-bottom: 5px;
}

.card-info h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 5px;
    text-transform: capitalize;
    /* Common vs gibi baş harf büyük */
}

.card-info span {
    display: none;
    /* Açıklamayı görseldeki gibi gizledik, sadelik için */
}


/* =========================================
   PRICE DISPLAY - Modern Clean Design
   ========================================= */
.product-price {
    text-align: center;
    margin-bottom: 25px;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.product-price .price-amount {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    line-height: 1.2;
}

.product-price .price-main-text {
    color: var(--text-primary);
}

.product-price .original-price {
    font-size: 14px;
    text-decoration: line-through;
    color: var(--text-muted);
    opacity: 0.7;
    font-weight: 500;
    margin: 0;
}

.product-price .currency {
    font-size: 0.8em;
    margin-right: 2px;
}

/* =========================================
   ADET SEÇİCİ (1x, 5x, 10x, 20x)
   ========================================= */
.qty-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    width: 100%;
    margin-bottom: 15px;
}

.qty-btn {
    background: var(--bg-card);
    /* Koyu gri */
    border: none;
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 700;
    padding: 10px 0;
    cursor: pointer;
    transition: all 0.2s;
}

.qty-btn:hover:not(:disabled) {
    background: var(--bg-primary);
}

.qty-btn:disabled {
    background: var(--bg-primary);
    color: var(--text-secondary);
    cursor: not-allowed;
    opacity: 0.5;
}

/* İlk buton seçili gibi görünsün */
.qty-btn.active {
    background: var(--accent-blue);
    /* Parlak Mavi */
    color: white;
}

/* =========================================
   ÖZEL ADET GİRİŞİ
   ========================================= */
.custom-qty-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-bottom: 15px;
    background: var(--bg-card);
    border-radius: 8px;
    padding: 8px 12px;
    position: relative;
}


.custom-qty-slider {
    width: 100px;
    height: 6px;
    background: var(--bg-primary);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.custom-qty-slider:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.custom-qty-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--accent-blue);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.custom-qty-slider::-webkit-slider-thumb:hover {
    background: var(--accent-blue-medium);
    transform: scale(1.2);
}

.custom-qty-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--accent-blue);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.custom-qty-slider::-moz-range-thumb:hover {
    background: var(--accent-blue-medium);
    transform: scale(1.2);
}

.qty-value-display {
    min-width: 30px;
    text-align: center;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 700;
}

.qty-decrement-btn,
.qty-increment-btn {
    width: 28px;
    height: 28px;
    background: var(--bg-primary);
    border: none;
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.qty-decrement-btn:hover:not(:disabled),
.qty-increment-btn:hover:not(:disabled) {
    background: var(--accent-blue);
    color: white;
}

.qty-decrement-btn:disabled,
.qty-increment-btn:disabled {
    background: var(--bg-primary);
    color: var(--text-secondary);
    cursor: not-allowed;
    opacity: 0.5;
}

.qty-decrement-btn:active,
.qty-increment-btn:active {
    transform: scale(0.95);
}

.custom-qty-label {
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.custom-qty-label.unlimited {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    color: var(--accent-green);
    font-weight: 800;
}

.custom-qty-label.out-of-stock {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
    font-weight: 800;
}

.custom-qty-label.onetime {
    background: rgba(255, 204, 0, 0.1);
    border-color: rgba(255, 204, 0, 0.3);
    color: #ffcc00;
    font-weight: 800;
}

.custom-qty-label .stock-icon {
    font-size: 12px;
    margin-right: 2px;
}

/* =========================================
   SATIN AL BUTONU
   ========================================= */
.buy-button {
    width: 100%;
    padding: 12px 0;

    /* Görseldeki Mavi */
    background-color: var(--accent-blue);
    color: var(--text-primary);

    font-size: 15px;
    font-weight: 700;

    border: none;
    border-radius: 12px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    cursor: pointer;
    transition: background 0.2s;
}

.buy-button:hover:not(:disabled) {
    background-color: var(--accent-blue-medium);
}

.buy-button:disabled {
    background-color: var(--bg-card);
    color: var(--text-secondary);
    cursor: not-allowed;
    opacity: 0.6;
}

.buy-button i {
    font-size: 14px;
}

/* Buton parlamalarını kapat */
.buy-button::before {
    display: none;
}

/* =========================================
   HOVER EFEKTLERİ
   ========================================= */


.category-card:hover .icon-wrapper img {
    transform: scale(1.1) translateY(-5px);
}

/* =========================================
   MOBILE
   ========================================= */
@media (max-width: 900px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .categories-grid {
        grid-template-columns: 1fr;
        row-gap: 60px;
    }

    .icon-wrapper img {
        width: 100px;
        height: 100px;
    }
}