/* --------------------------------------------------
   Cem Elektrik - Ürün Kataloğu & Detay Stilleri
-------------------------------------------------- */

:root {
    --bg-dark: #09090b;
    --bg-panel: rgba(255, 255, 255, 0.02);
    --bg-panel-hover: rgba(255, 255, 255, 0.05);
    --border-subtle: rgba(255, 255, 255, 0.07);
    --border-strong: rgba(255, 255, 255, 0.15);
    --brand-orange: #FF4F00;
    --brand-orange-hover: #FF6B2B;
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --max-width: 1200px;
}

/* Base resets for Catalog Subpages */
.catalog-body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    padding-top: 8rem;
    padding-bottom: 5rem;
}

/* Breadcrumbs (Ekmek Kırıntıları) */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.breadcrumbs a {
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    color: #ffffff;
}

.breadcrumbs i {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
}

.breadcrumbs span {
    color: var(--brand-orange);
    font-weight: 600;
}

/* Page Header */
.catalog-header {
    margin-bottom: 4rem;
}

.catalog-header h1 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #ffffff, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.catalog-header p {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 600px;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.category-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.005) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: 28px;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02), 0 15px 35px rgba(0, 0, 0, 0.4);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 79, 0, 0.08) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

.category-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 79, 0, 0.4);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 79, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.category-card:hover::before {
    opacity: 1;
}

.category-card-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 79, 0, 0.08);
    border: 1px solid rgba(255, 79, 0, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--brand-orange);
    transition: all 0.4s ease;
    z-index: 1;
}

.category-card:hover .category-card-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--brand-orange);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 79, 0, 0.4);
}

.category-card h2 {
    font-size: 1.6rem;
    font-weight: 700;
    z-index: 1;
}

.category-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    z-index: 1;
}

/* Brands Grid */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.brand-list-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.005) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    min-height: 160px;
    text-align: center;
}

.brand-list-card img {
    height: 50px;
    width: auto;
    max-width: 85%;
    object-fit: contain;
    opacity: 0.65;
    filter: grayscale(1) brightness(1.6);
    transition: all 0.4s ease;
}

.brand-list-card h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: color 0.3s ease;
    text-transform: uppercase;
}

.brand-list-card:hover {
    transform: translateY(-6px);
    border-color: var(--brand-orange);
    box-shadow: 0 20px 40px rgba(255, 79, 0, 0.15);
}

.brand-list-card:hover img {
    opacity: 1;
    filter: grayscale(0) brightness(1);
    transform: scale(1.05);
}

.brand-list-card:hover h2 {
    color: #ffffff;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.product-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.005) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.product-card-img-wrapper {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 18px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.product-card-img-wrapper img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 79, 0, 0.35);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 79, 0, 0.08);
}

.product-card:hover .product-card-img-wrapper img {
    transform: scale(1.06);
}

.product-card h2 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
}

.product-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-card-brand-badge {
    padding: 0.3rem 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

.product-card-btn {
    color: var(--brand-orange);
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.product-card:hover .product-card-btn {
    color: var(--brand-orange-hover);
    transform: translateX(3px);
}

/* Product Detail Container */
.product-detail-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: start;
}

/* Left: Images Column */
.product-detail-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image-wrapper {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-subtle);
    border-radius: 28px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.main-image-wrapper img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.thumbnails-row {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.thumbnail-box {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.thumbnail-box img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.thumbnail-box.active {
    border-color: var(--brand-orange);
    background: rgba(255, 79, 0, 0.05);
}

.thumbnail-box.active img,
.thumbnail-box:hover img {
    opacity: 1;
}

/* Right: Content Column */
.product-info-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-info-panel h1 {
    font-size: 2.8rem;
    line-height: 1.15;
    background: linear-gradient(to right, #ffffff, #d1d5db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.product-brand-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.product-brand-badge {
    padding: 0.35rem 1rem;
    background: rgba(255, 79, 0, 0.1);
    border: 1px solid rgba(255, 79, 0, 0.25);
    border-radius: 100px;
    color: var(--brand-orange);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.product-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* CTA Buttons */
.product-ctas {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-whatsapp {
    background: #25D366;
    color: #ffffff;
    padding: 0.85rem 1.8rem;
    border-radius: 100px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    background: #20ba59;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.55);
}

.btn-call-action {
    background: transparent;
    border: 1px solid var(--border-strong);
    color: #ffffff;
    padding: 0.85rem 1.8rem;
    border-radius: 100px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-call-action:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
    border-color: #ffffff;
}

/* Bottom: Specifications Table */
.specs-section {
    margin-top: 5rem;
    border-top: 1px solid var(--border-subtle);
    padding-top: 4rem;
}

.specs-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    overflow: hidden;
}

.specs-table tr {
    border-bottom: 1px solid var(--border-subtle);
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.015);
}

.specs-table td {
    padding: 1.2rem 2rem;
    font-size: 0.95rem;
}

.specs-label {
    font-weight: 600;
    color: var(--text-muted);
    width: 30%;
    border-right: 1px solid var(--border-subtle);
}

.specs-value {
    color: #ffffff;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.empty-state i {
    font-size: 4rem;
    color: var(--text-muted);
}

.empty-state h2 {
    font-size: 1.75rem;
}

.empty-state p {
    color: var(--text-muted);
    max-width: 400px;
    margin-bottom: 1rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .product-detail-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .main-image-wrapper {
        height: 320px;
    }
}

@media (max-width: 900px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .brands-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .catalog-body {
        padding-top: 6rem;
    }
    
    .catalog-header h1 {
        font-size: 2.2rem;
    }
    
    .product-info-panel h1 {
        font-size: 2.2rem;
    }
    
    .product-ctas {
        flex-direction: column;
    }
    
    .specs-table td {
        padding: 1rem;
    }
    
    .specs-label {
        width: 40%;
    }
}

/* Touch Device Experience Optimizations (Disable Sticky Hover & Add Active feedback) */
@media (hover: none) {
    /* Override hover states to prevent sticking on touch screens */
    .category-card:hover,
    .brand-list-card:hover,
    .product-card:hover,
    .btn-whatsapp:hover,
    .btn-call-action:hover {
        transform: none !important;
        border-color: var(--border-subtle) !important;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.005) 100%) !important;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4) !important;
    }
    
    .category-card:hover::before {
        opacity: 0 !important;
    }

    .category-card:hover .category-card-icon {
        transform: none !important;
        background: rgba(255, 79, 0, 0.08) !important;
        color: var(--brand-orange) !important;
        box-shadow: none !important;
    }

    .brand-list-card:hover img {
        opacity: 0.65 !important;
        filter: grayscale(1) brightness(1.6) !important;
        transform: none !important;
    }

    .brand-list-card:hover h2 {
        color: var(--text-muted) !important;
    }

    .product-card:hover .product-card-img-wrapper img {
        transform: none !important;
    }

    .product-card:hover .product-card-btn {
        color: var(--brand-orange) !important;
        transform: none !important;
    }

    /* Implement native active/touch states for immediate feedback */
    .category-card:active,
    .brand-list-card:active,
    .product-card:active {
        transform: scale(0.96) !important;
        border-color: var(--brand-orange) !important;
        background: rgba(255, 79, 0, 0.04) !important;
        box-shadow: 0 5px 15px rgba(255, 79, 0, 0.15) !important;
        transition: transform 0.1s ease, border-color 0.1s ease, background 0.1s ease !important;
    }

    .category-card:active::before {
        opacity: 0.5 !important;
    }

    .category-card:active .category-card-icon {
        transform: scale(1.05) !important;
        background: var(--brand-orange) !important;
        color: #ffffff !important;
        box-shadow: 0 0 15px rgba(255, 79, 0, 0.4) !important;
    }

    .brand-list-card:active img {
        opacity: 1 !important;
        filter: grayscale(0) brightness(1) !important;
    }

    .product-card:active .product-card-btn {
        color: var(--brand-orange-hover) !important;
    }

    .btn-whatsapp:active {
        transform: scale(0.95) !important;
        background: var(--brand-orange-hover) !important;
        box-shadow: 0 5px 15px rgba(255, 79, 0, 0.3) !important;
        transition: transform 0.1s ease !important;
    }

    .btn-call-action:active {
        transform: scale(0.95) !important;
        background: rgba(255, 255, 255, 0.08) !important;
        transition: transform 0.1s ease !important;
    }
}

/* =============================================
   CTA Bölümü — Ürün Listesinin Altında
============================================= */
.catalog-cta-section {
    margin-top: 4rem;
    padding: 3.5rem 2.5rem;
    background: linear-gradient(135deg, rgba(255, 79, 0, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 79, 0, 0.15);
    border-radius: 28px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    position: relative;
    overflow: hidden;
}

.catalog-cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 79, 0, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.catalog-cta-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 79, 0, 0.1);
    border: 1px solid rgba(255, 79, 0, 0.25);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--brand-orange);
    z-index: 1;
}

.catalog-cta-section h3 {
    font-size: 1.6rem;
    font-weight: 700;
    z-index: 1;
}

.catalog-cta-section p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 500px;
    z-index: 1;
}

/* CTA Buton Grubu */
.catalog-cta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
    z-index: 1;
    flex-wrap: wrap;
    justify-content: center;
}

/* Üretici Katalog Linki */
.catalog-manufacturer-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    z-index: 1;
}

.catalog-manufacturer-link:hover {
    color: var(--brand-orange);
    border-color: rgba(255, 79, 0, 0.4);
    background: rgba(255, 79, 0, 0.05);
    transform: translateY(-2px);
}

.catalog-manufacturer-link i {
    font-size: 1.1rem;
}

/* Markalara Dön Linki */
.catalog-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 1rem;
    transition: color 0.2s ease, transform 0.2s ease;
    z-index: 1;
}

.catalog-back-link:hover {
    color: #ffffff;
    transform: translateX(-3px);
}

/* =============================================
   Geliştirilmiş Boş Durum Kartı
============================================= */
.empty-state-enhanced {
    text-align: center;
    padding: 5rem 2.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 79, 0, 0.02) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    position: relative;
    overflow: hidden;
}

.empty-state-enhanced::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 79, 0, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.empty-state-icon-ring {
    width: 80px;
    height: 80px;
    background: rgba(255, 79, 0, 0.08);
    border: 2px solid rgba(255, 79, 0, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--brand-orange);
    z-index: 1;
    animation: pulse-ring 3s ease-in-out infinite;
}

@keyframes pulse-ring {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 79, 0, 0.15); }
    50% { box-shadow: 0 0 0 12px rgba(255, 79, 0, 0); }
}

.empty-state-enhanced h2 {
    font-size: 1.75rem;
    font-weight: 700;
    z-index: 1;
}

.empty-state-enhanced p {
    color: var(--text-muted);
    max-width: 450px;
    line-height: 1.6;
    font-size: 1rem;
    z-index: 1;
}

/* =============================================
   Responsive — Yeni Bileşenler
============================================= */
@media (max-width: 600px) {
    .catalog-cta-section {
        padding: 2.5rem 1.5rem;
    }

    .catalog-cta-section h3 {
        font-size: 1.3rem;
    }

    .catalog-cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .catalog-cta-buttons .btn-whatsapp,
    .catalog-cta-buttons .btn-call-action {
        width: 100%;
        justify-content: center;
    }

    .empty-state-enhanced {
        padding: 3rem 1.5rem;
    }

    .empty-state-enhanced h2 {
        font-size: 1.4rem;
    }
}

/* Touch — Yeni Bileşenler */
@media (hover: none) {
    .catalog-manufacturer-link:hover {
        color: var(--text-muted) !important;
        border-color: var(--border-subtle) !important;
        background: transparent !important;
        transform: none !important;
    }

    .catalog-manufacturer-link:active {
        color: var(--brand-orange) !important;
        border-color: rgba(255, 79, 0, 0.4) !important;
        background: rgba(255, 79, 0, 0.05) !important;
        transform: scale(0.97) !important;
        transition: all 0.1s ease !important;
    }

    .catalog-back-link:hover {
        color: var(--text-muted) !important;
        transform: none !important;
    }

    .catalog-back-link:active {
        color: #ffffff !important;
        transform: translateX(-3px) !important;
        transition: all 0.1s ease !important;
    }
}
