/**
 * Product Pages Styles
 * Kurumsal Renk: #253928
 * Tüm ürün listeleme, filtreleme ve kart stilleri
 */

:root {
    --brand-primary: #253928;
    --brand-primary-light: #3a5a3e;
    --brand-primary-dark: #1a2a1c;
    --brand-gradient: linear-gradient(135deg, #253928 0%, #3a5a3e 100%);
    --brand-bg-light: #e8f5e9;
    --brand-bg-soft: #f8fff9;
}

/* =====================================================
   PRODUCT PAGE HEADER
   ===================================================== */

.product-page-header {
    background: var(--brand-gradient);
    padding: 30px 40px;
    border-radius: 16px;
    margin-bottom: 30px;
    color: #fff;
}

.product-page-header h1 {
    font-size: 1.8rem;
    margin: 0;
    font-weight: 600;
}

.product-page-header .breadcrumb {
    margin: 0;
    padding: 0;
    background: transparent;
}

.product-page-header .breadcrumb-item a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.product-page-header .breadcrumb-item a:hover {
    color: #fff;
}

.product-page-header .breadcrumb-item.active {
    color: #fff;
}

.product-page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.5);
}

/* =====================================================
   PRODUCT TOOLBAR
   ===================================================== */

.product-toolbar {
    background: #fff;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.product-count {
    color: #666;
    font-size: 14px;
}

.product-count strong {
    color: var(--brand-primary);
}

.product-sort-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Hide native select & nice-select fallbacks — we use .bk-sort-select-wrap */
.product-sort-wrapper select.form-select,
.product-sort-wrapper .nice-select {
    display: none !important;
}

/* ── Custom Sort Select ─────────────────────────────────── */
.bk-sort-select-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    padding: 0 10px 0 10px;
    transition: border-color .2s ease;
    cursor: pointer;
}
.bk-sort-select-wrap:focus-within {
    border-color: #253928;
    box-shadow: 0 0 0 3px rgba(37,57,40,.08);
}
.bk-sort-icon {
    font-size: .85rem;
    color: #888;
    flex-shrink: 0;
    pointer-events: none;
    margin-right: 6px;
}
.bk-sort-select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    border: none !important;
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 9px 28px 9px 0 !important;
    font-size: .85rem !important;
    font-family: inherit;
    font-weight: 600;
    color: #333 !important;
    cursor: pointer;
    min-width: 140px;
}
.bk-sort-arrow {
    font-size: .7rem;
    color: #888;
    pointer-events: none;
    flex-shrink: 0;
    margin-left: -20px;
    transition: transform .2s ease;
}
.bk-sort-select-wrap:focus-within .bk-sort-arrow {
    transform: rotate(180deg);
    color: #253928;
}

.product-sort-wrapper select {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px 35px 8px 12px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-sort-wrapper select:focus {
    border-color: var(--brand-primary);
    outline: none;
}

.view-toggle {
    display: flex;
    gap: 8px;
}

.view-toggle a {
    width: 40px;
    height: 40px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.3s ease;
    text-decoration: none;
}

.view-toggle a:hover,
.view-toggle a.active {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff;
}

/* =====================================================
   FILTER SIDEBAR
   ===================================================== */

.filter-sidebar {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
}

.filter-section {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.filter-section:last-child {
    border-bottom: none;
}

.filter-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.filter-title i {
    color: var(--brand-primary);
}

/* Search Input */
.search-input-wrapper {
    position: relative;
}

.search-input-wrapper .form-control {
    padding: 12px 45px 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
}

.search-input-wrapper .form-control:focus {
    border-color: var(--brand-primary);
    box-shadow: none;
}

.search-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--brand-primary);
    cursor: pointer;
}

/* Category List */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list > li {
    margin-bottom: 8px;
}

.category-list > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 8px;
    color: #555;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
}

.category-list > li > a:hover,
.category-list > li.active > a {
    background: var(--brand-bg-light);
    color: var(--brand-primary);
}

.category-list > li.active > a {
    font-weight: 600;
}

.subcategory-list {
    list-style: none;
    padding: 8px 0 0 20px;
    margin: 0;
}

.subcategory-list li a {
    display: block;
    padding: 6px 12px;
    color: #666;
    font-size: 13px;
    text-decoration: none;
    border-left: 2px solid #e0e0e0;
    transition: all 0.2s ease;
}

.subcategory-list li a:hover {
    color: var(--brand-primary);
    border-left-color: var(--brand-primary);
}

/* Price Filter */
.price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.price-input-group {
    position: relative;
    flex: 1;
}

.price-input-group .currency {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 14px;
    pointer-events: none;
    z-index: 2;
}

.price-input-group .form-control {
    padding: 10px 12px 10px 30px !important;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
}

.price-input-group .form-control:focus {
    border-color: var(--brand-primary);
    box-shadow: none;
}

.price-separator {
    color: #888;
}

.btn-filter-apply {
    width: 100%;
    padding: 10px;
    background: var(--brand-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-filter-apply:hover {
    background: var(--brand-primary-light);
}

.quick-price-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.quick-price-btn {
    padding: 6px 12px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 12px;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-price-btn:hover {
    background: var(--brand-bg-light);
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

/* Attribute List */
.attribute-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.attribute-list li {
    margin-bottom: 6px;
}

.attribute-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 6px;
    color: #555;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 13px;
}

.attribute-link:hover {
    background: #f5f5f5;
    color: var(--brand-primary);
}

.attribute-count {
    background: #e0e0e0;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    color: #666;
}

.attribute-link:hover .attribute-count {
    background: var(--brand-primary);
    color: #fff;
}

/* Clear Filters */
.btn-clear-filters {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-clear-filters:hover {
    background: #f5f5f5;
    border-color: #ccc;
    color: #333;
}

/* Mobile Filter Toggle */
.mobile-filter-toggle {
    display: none;
    width: 100%;
    padding: 12px;
    background: var(--brand-primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 500;
}

@media (max-width: 991px) {
    .mobile-filter-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
    
    .filter-sidebar {
        display: none;
        margin-bottom: 20px;
    }
    
    .filter-sidebar.show {
        display: block;
    }
}

/* =====================================================
   PRODUCT CARD - GRID VIEW
   ===================================================== */

.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    margin-bottom: 24px;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.product-card-image {
    position: relative;
    overflow: hidden;
    background: #f8f8f8;
}

.product-card-image img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-card-image img {
    transform: scale(1.08);
}

/* Product Badges */
.product-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}

.badge-discount {
    background: var(--brand-gradient);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-hot {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-outofstock {
    background: #6c757d;
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* Quick Actions */
.product-quick-actions {
    position: absolute;
    right: 12px;
    top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

.product-card:hover .product-quick-actions {
    opacity: 1;
    transform: translateX(0);
}

.action-btn {
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.action-btn:hover {
    background: var(--brand-primary);
    color: #fff;
    transform: scale(1.1);
}

.action-btn i {
    font-size: 18px;
}

/* Product Info */
.product-card-info {
    padding: 16px;
}

.product-card-title {
    font-size: 15px;
    font-weight: 500;
    margin: 0 0 10px;
    line-height: 1.4;
    height: 42px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-card-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-card-title a:hover {
    color: var(--brand-primary);
}

.product-card-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.current-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--brand-primary);
}

.old-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

/* Add to Cart Button */
.btn-add-to-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 16px;
    background: var(--brand-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-add-to-cart:hover {
    background: var(--brand-primary-light);
    color: #fff;
}

.btn-add-to-cart.disabled {
    background: #e0e0e0;
    color: #999;
    cursor: not-allowed;
}

/* =====================================================
   PRODUCT CARD - LIST VIEW
   ===================================================== */

.product-list-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    margin-bottom: 20px;
    display: flex;
    flex-direction: row;
}

.product-list-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.product-list-image {
    position: relative;
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    overflow: hidden;
}

.product-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-list-card:hover .product-list-image img {
    transform: scale(1.05);
}

.product-list-info {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-list-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px;
}

.product-list-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-list-title a:hover {
    color: var(--brand-primary);
}

.product-list-price {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.product-list-price .current-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--brand-primary);
}

.product-list-price .old-price {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
}

.product-list-summary {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-list-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-list-cart {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: var(--brand-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-list-cart:hover {
    background: var(--brand-primary-light);
    color: #fff;
}

.btn-list-cart.disabled {
    background: #e0e0e0;
    color: #999;
    cursor: not-allowed;
}

.btn-list-wishlist,
.btn-list-view {
    width: 40px;
    height: 40px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    background: transparent;
    cursor: pointer;
}

.btn-list-wishlist:hover,
.btn-list-view:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

/* =====================================================
   PAGINATION
   ===================================================== */

.modern-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.modern-pagination a,
.modern-pagination span {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.modern-pagination a:hover,
.modern-pagination a.active {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff;
}

.modern-pagination a.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.modern-pagination .pagination-dots {
    border: none;
    color: #999;
}

/* =====================================================
   EMPTY STATE
   ===================================================== */

.empty-products {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 16px;
}

.empty-products i {
    font-size: 5rem;
    color: #ddd;
    margin-bottom: 20px;
    display: block;
}

.empty-products h4 {
    color: #333;
    margin-bottom: 10px;
}

.empty-products p {
    color: #666;
    margin-bottom: 20px;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 767px) {
    .product-page-header {
        padding: 20px;
        border-radius: 12px;
    }
    
    .product-page-header h1 {
        font-size: 1.4rem;
    }
    
    .product-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .product-sort-wrapper {
        justify-content: space-between;
    }
    
    .product-card-image img {
        height: 200px;
    }
    
    .product-quick-actions {
        opacity: 1;
        transform: translateX(0);
    }
    
    .product-list-card {
        flex-direction: column;
    }
    
    .product-list-image {
        width: 100%;
        height: 200px;
    }
    
    .product-list-actions {
        flex-wrap: wrap;
    }
}

/* =====================================================
   PRODUCT CARD MINI (Sidebar, Related Products)
   ===================================================== */

.product-card-mini {
    display: flex;
    flex-direction: row;
    padding: 12px;
    margin-bottom: 12px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}

.product-card-mini:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.product-card-mini-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 8px;
}

.product-card-mini-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-mini-info {
    flex: 1;
    padding-left: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-card-mini-title {
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 6px;
    line-height: 1.3;
}

.product-card-mini-title a {
    color: #333;
    text-decoration: none;
}

.product-card-mini-title a:hover {
    color: var(--brand-primary);
}

.product-card-mini .product-card-price {
    margin: 0;
}

.product-card-mini .current-price {
    font-size: 15px;
}

.product-card-mini .old-price {
    font-size: 12px;
}


