/* ========================================
   SHOP PAGE - Özel stiller
   Ortak stiller custom.css'te tanımlıdır
   ======================================== */

.page-decorations {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

.deco-toy {
    width: 150px;
    height: 150px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.deco-shape {
    position: absolute;
    font-size: 2.5rem;
    opacity: 0.3;
    animation: float 3s ease-in-out infinite;
}

.shape-1 {
    top: -20px;
    right: 180px;
}

.shape-2 {
    bottom: -10px;
    right: 0;
    animation-delay: 0.5s;
}

/* SHOP LAYOUT */
.shop-section {
    padding: 60px 0;
    background: var(--white);
}

.shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

/* SIDEBAR */
.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.filter-toggle {
    display: none;
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 10px;
    font-weight: 600;
    margin-bottom: 20px;
}

.sidebar-close {
    display: none;
}

.sidebar-content {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* FILTER SECTIONS */
.filter-form {
    display: flex;
    flex-direction: column;
}

.filter-section {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #E2E8F0;
}

.filter-section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.filter-title {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.category-list,
.price-list,
.color-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.category-list li,
.price-list li,
.color-list li {
    margin: 0;
}

.category-list label,
.price-list label,
.color-list label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-dark);
    padding: 4px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-weight: 400;
}

.category-list label:hover,
.price-list label:hover,
.color-list label:hover {
    background: rgba(255, 107, 157, 0.05);
    color: var(--primary-color);
}

.category-list input[type="checkbox"],
.price-list input[type="radio"],
.color-list input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid #CBD5E0;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    position: relative;
}

.category-list input[type="checkbox"],
.color-list input[type="checkbox"] {
    border-radius: 3px;
}

.price-list input[type="radio"] {
    border-radius: 50%;
}

.category-list input[type="checkbox"]:checked,
.color-list input[type="checkbox"]:checked {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.price-list input[type="radio"]:checked {
    border-color: var(--primary-color);
    border-width: 5px;
}

.category-list input[type="checkbox"]:checked::after,
.color-list input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 10px;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* FILTER ACTIONS */
.filter-actions {
    margin-top: 15px;
    padding-top: 0;
}

.btn-filter {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--primary-color), #FF8FAB);
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(255, 107, 157, 0.25);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-filter:hover {
    background: linear-gradient(135deg, #FF8FAB, var(--primary-color));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.35);
}

.btn-filter:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 107, 157, 0.25);
}

/* COLOR FILTER */
.color-option {
    position: relative;
    cursor: pointer;
}

.color-option input {
    display: none;
}

.color-box {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: block;
    border: 2px solid transparent;
    transition: var(--transition);
}

.color-option:hover .color-box {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.color-option input:checked + .color-box {
    border-color: var(--text-dark);
    box-shadow: 0 0 0 4px rgba(45, 55, 72, 0.1);
}

/* FEATURED PRODUCTS SIDEBAR */
.featured-section {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
}

.featured-products {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.featured-item {
    display: flex;
    gap: 12px;
    padding: 10px;
    background: var(--bg-light);
    border-radius: 10px;
    transition: var(--transition);
    cursor: pointer;
}

.featured-item:hover {
    background: #E2E8F0;
    transform: translateX(5px);
}

.featured-item img {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
}

.featured-info {
    flex: 1;
}

.featured-info h4 {
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.featured-price {
    display: flex;
    gap: 8px;
    align-items: center;
}

.featured-price .price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.featured-price .old-price {
    font-size: 0.85rem;
    color: var(--text-light);
    text-decoration: line-through;
}

/* SHOP TOOLBAR */
.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.result-count {
    font-size: 1rem;
    color: var(--text-dark);
}

.result-count span {
    font-weight: 700;
    color: var(--primary-color);
}

.toolbar-actions {
    display: flex;
    gap: 25px;
    align-items: center;
}

.view-mode {
    display: flex;
    align-items: center;
    gap: 10px;
}

.view-mode span {
    font-size: 0.9rem;
    color: var(--text-dark);
}

.view-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--white);
    border: 2px solid transparent;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.sort-by {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-by label {
    font-size: 0.9rem;
    color: var(--text-dark);
}

.sort-select {
    padding: 10px 15px;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    background: var(--white);
    min-width: 180px;
}

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

/* PRODUCTS GRID */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

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

.products-grid.list-view .product-card {
    display: flex;
    flex-direction: row;
}

.products-grid.list-view .product-image {
    width: 200px;
    padding-top: 0;
    height: 200px;
}

.products-grid.list-view .product-info {
    flex: 1;
}

.products-grid.list-view .btn-add-cart {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: auto;
    border-radius: 25px;
    padding: 12px 30px;
}

/* PAGINATION */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.page-btn {
    min-width: 45px;
    height: 45px;
    border-radius: 8px;
    background: var(--white);
    border: 2px solid #E2E8F0;
    color: var(--text-dark);
    font-weight: 600;
    transition: var(--transition);
}

.page-btn:hover:not(:disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.page-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* MOBILE RESPONSIVE */
@media (max-width: 1024px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: relative;
        top: 0;
    }
    
    .filter-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }
    
    .sidebar-content {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        max-width: 350px;
        height: 100%;
        background: var(--white);
        z-index: 9999;
        overflow-y: auto;
        padding: 20px;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
        transform: translateX(-100%);
        transition: var(--transition);
    }
    
    .sidebar-content.active {
        display: block;
        transform: translateX(0);
    }
    
    .sidebar-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: var(--bg-light);
        margin-bottom: 20px;
        margin-left: auto;
    }
    
    .page-decorations {
        display: none;
    }
}

@media (max-width: 768px) {
    .page-header-left h1 {
        font-size: 2rem;
    }
    
    .shop-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .toolbar-actions {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .view-mode,
    .sort-by {
        width: 100%;
        justify-content: space-between;
    }
    
    .sort-select {
        flex: 1;
        min-width: auto;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
    
    .page-btn {
        min-width: 40px;
        height: 40px;
    }
}

/* UTILITY CLASSES */
.mobile-only {
    display: none !important;
}

@media (max-width: 1024px) {
    .mobile-only {
        display: flex !important;
    }
}

/* PRODUCT CARD OVERRIDES - Shop Page Specific */
/* Note: Ana stiller style.css'te tanımlıdır, burası sadece override için */
.product-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 15px;
    border-radius: 20px;
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 10;
}

.product-badge.sale { background: linear-gradient(135deg, #FF6B6B, #FF8E53); }
.product-badge.new { background: linear-gradient(135deg, #4ECDC4, #44A08D); }
.product-badge.hot { background: linear-gradient(135deg, #FF6B9D, #C471ED); }
