/* =====================================================
   ÜRÜNLER SAYFASI CSS
   İlmekon Halı - B2B Fason Halı Üretimi
   ===================================================== */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #1a5f2a 0%, #2d8a3e 100%);
    padding: 60px 0 40px;
    margin-bottom: 40px;
}

.page-header .breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

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

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

.page-header .breadcrumb span {
    color: rgba(255,255,255,0.6);
}

.page-header .page-title {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
}

.page-header .page-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin-top: 10px;
}

/* Shop Layout */
.shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

@media (max-width: 991px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }
}

/* Sidebar */
.shop-sidebar {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    height: fit-content;
    position: sticky;
    top: 100px;
}

@media (max-width: 991px) {
    .shop-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 320px;
        height: 100vh;
        z-index: 1000;
        overflow-y: auto;
        transition: left 0.3s ease;
        border-radius: 0;
    }
    
    .shop-sidebar.active {
        left: 0;
    }
}

.filter-close-btn {
    display: none;
    width: 100%;
    padding: 12px;
    background: #f8f9fa;
    border: none;
    border-radius: 8px;
    margin-bottom: 15px;
    cursor: pointer;
}

@media (max-width: 991px) {
    .filter-close-btn {
        display: block;
    }
}

/* Filter Widget */
.filter-widget {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.filter-widget:last-of-type {
    border-bottom: none;
}

.filter-widget h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-widget h3 i {
    color: #1a5f2a;
}

.filter-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #1a5f2a;
    cursor: pointer;
}

.filter-item label {
    cursor: pointer;
    font-size: 0.9rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.m2-badge {
    background: #e8f5e9;
    color: #1a5f2a;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* B2B Highlight */
.b2b-highlight {
    background: linear-gradient(135deg, #f8f5f0 0%, #fff 100%);
    border: 2px solid #8B4513;
    border-radius: 12px;
    padding: 20px;
}

.custom-size-calculator {
    margin-top: 15px;
}

.size-inputs-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin-bottom: 15px;
}

.size-input-group {
    flex: 1;
}

.size-input-group label {
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 5px;
}

.size-input-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
}

.size-separator {
    font-size: 1.2rem;
    color: #999;
    padding-bottom: 10px;
}

.m2-result {
    background: #fff;
    padding: 12px;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.m2-result i {
    color: #8B4513;
}

.m2-value {
    color: #1a5f2a;
    font-weight: 600;
}

.ozel-kesim-check {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #ddd;
}

.ozel-kesim-check label {
    color: #8B4513;
    font-weight: 500;
}

/* Filter Search */
.filter-search {
    position: relative;
    margin-bottom: 15px;
}

.filter-search input {
    width: 100%;
    padding: 10px 35px 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
}

.filter-search i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-apply-filter,
.btn-clear-filter {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-apply-filter {
    background: #1a5f2a;
    color: #fff;
}

.btn-apply-filter:hover {
    background: #155a24;
}

.btn-clear-filter {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #ddd;
}

.btn-clear-filter:hover {
    background: #eee;
}

/* Quote Summary Panel */
.quote-summary-panel {
    background: linear-gradient(135deg, #fff3cd 0%, #fff 100%);
    border: 1px solid #ffc107;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.quote-summary-panel h4 {
    font-size: 1rem;
    color: #856404;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quote-details {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.quote-empty {
    font-style: italic;
    color: #999;
}

.btn-whatsapp-quote,
.btn-email-quote {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    margin-bottom: 10px;
}

.btn-whatsapp-quote {
    background: #25D366;
    color: #fff;
}

.btn-whatsapp-quote:hover {
    background: #1da851;
    color: #fff;
}

.btn-email-quote {
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
}

.btn-email-quote:hover {
    background: #f8f9fa;
}

/* Shop Content */
.shop-content {
    flex: 1;
}

/* Mobile Filter Toggle */
.mobile-filter-toggle {
    display: none;
    width: 100%;
    padding: 12px;
    background: #1a5f2a;
    color: #fff;
    border: none;
    border-radius: 8px;
    margin-bottom: 20px;
    cursor: pointer;
    font-weight: 600;
}

@media (max-width: 991px) {
    .mobile-filter-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
}

/* Shop Toolbar */
.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px 20px;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.result-count {
    font-size: 0.95rem;
    color: #666;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.items-per-page,
.sort-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.items-per-page label,
.sort-wrapper label {
    font-size: 0.9rem;
    color: #666;
}

.items-per-page select,
.sort-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
}

.view-options {
    display: flex;
    gap: 5px;
}

.view-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s;
}

.view-btn:hover,
.view-btn.active {
    background: #1a5f2a;
    border-color: #1a5f2a;
    color: #fff;
}

/* Compare Bar */
.compare-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: #e3f2fd;
    border-radius: 12px;
    margin-bottom: 20px;
}

.compare-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1565c0;
}

.compare-actions {
    display: flex;
    gap: 10px;
}

.btn-compare,
.btn-clear-compare {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
}

.btn-compare {
    background: #1565c0;
    color: #fff;
}

.btn-compare:disabled {
    background: #90caf9;
    cursor: not-allowed;
}

.btn-clear-compare {
    background: #fff;
    color: #666;
}

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

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

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

.products-grid.list-view {
    grid-template-columns: 1fr;
}

.products-grid.list-view .product-card {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 20px;
}

/* Product Card */
.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

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

.product-image {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #f8f8f8 0%, #f0f0f0 100%);
    aspect-ratio: 3/4;
}

.product-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    display: block;
    transition: transform 0.5s;
}

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

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

.badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.badge-new {
    background: #1a5f2a;
    color: #fff;
}

.badge-sale {
    background: #dc3545;
    color: #fff;
}

.badge-stock {
    background: #1a5f2a;
    color: #fff;
}

.badge-bestseller {
    background: #e67e22;
    color: #fff;
}

.product-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s;
}

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

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

.product-action-btn:hover {
    background: #1a5f2a;
    color: #fff;
}

.product-action-btn.active {
    background: #1a5f2a;
    color: #fff;
}

/* Product Info */
.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-brand {
    font-size: 0.75rem;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

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

.product-title a:hover {
    color: #1a5f2a;
}

.product-specs {
    display: flex;
    gap: 15px;
    margin: 8px 0;
    font-size: 0.85rem;
    color: #666;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.spec-item i {
    color: #1a5f2a;
    font-size: 0.8rem;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0;
}

.product-tag {
    background: #fff;
    color: #555;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #ddd;
    transition: all 0.3s;
}

.product-tag:hover {
    border-color: #1a5f2a;
    color: #1a5f2a;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
}

.stars {
    color: #f5a623;
    font-size: 0.85rem;
}

.rating-count {
    font-size: 0.85rem;
    color: #999;
}

.product-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0 5px 0;
}

.current-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
}

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

.product-m2-price {
    margin-bottom: 15px;
}

.product-m2-price span {
    display: inline-block;
    font-size: 0.9rem;
    color: #1a5f2a;
    font-weight: 600;
    padding: 4px 10px;
    background: #e8f5e9;
    border-radius: 6px;
}

.product-buttons {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.btn-favorite {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    color: #dc3545;
    font-size: 1.1rem;
}

.btn-favorite:hover {
    border-color: #dc3545;
    background: #fff5f5;
    transform: scale(1.05);
}

.btn-favorite.active {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

.btn-favorite.active:hover {
    background: #c82333;
}

.btn-detail,
.btn-add-cart,
.btn-size-select {
    flex: 1;
    padding: 12px 10px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.85rem;
    text-decoration: none;
}

.btn-detail {
    background: #1a5f2a;
    color: #fff;
}

.btn-detail:hover {
    background: #155a24;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 95, 42, 0.3);
}

.btn-size-select {
    background: #fff;
    color: #555;
    border: 2px solid #ddd;
}

.btn-size-select:hover {
    border-color: #1a5f2a;
    color: #1a5f2a;
    background: #f0fff4;
}

.product-buttons-secondary {
    margin-top: 10px;
}

.product-buttons-secondary .btn-add-cart {
    width: 100%;
    background: #8B4513;
    color: #fff;
}

.product-buttons-secondary .btn-add-cart:hover {
    background: #6d3610;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination {
    display: flex;
    gap: 8px;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.pagination a {
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
}

.pagination a:hover {
    background: #1a5f2a;
    color: #fff;
    border-color: #1a5f2a;
}

.pagination span.current {
    background: #1a5f2a;
    color: #fff;
}

.pagination span.dots {
    background: transparent;
    border: none;
}

/* No Products */
.no-products {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 12px;
}

.no-products i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 20px;
}

.no-products h3 {
    color: #333;
    margin-bottom: 10px;
}

.no-products p {
    color: #666;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.5s ease forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }

/* Responsive */
@media (max-width: 768px) {
    .page-header {
        padding: 40px 0 30px;
    }
    
    .page-header .page-title {
        font-size: 1.8rem;
    }
    
    .shop-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .toolbar-right {
        justify-content: space-between;
    }
    
    .product-image {
        aspect-ratio: 3/4;
    }
    
    .product-info {
        padding: 15px;
    }
    
    .product-buttons {
        flex-direction: column;
    }
    
    .product-buttons-secondary {
        margin-top: 8px;
    }
    
    .current-price {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}
