/* ===================================
   PRODUCTS PAGE STYLES
   =================================== */

/* Products Page Body - ensure scrolling works */
.products-page {
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
}

/* Page Header */
.page-header {
    padding: 140px 4rem 50px;
    background: var(--color-cream);
    text-align: center;
}

.page-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    position: relative;
    padding: 0 3rem;
}

.page-label::before,
.page-label::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 2rem;
    height: 1px;
    background: var(--color-primary);
}

.page-label::before {
    left: 0;
}

.page-label::after {
    right: 0;
}

.page-title {
    font-family: var(--font-body);
    font-size: clamp(2.4rem, 4.8vw, 4rem);
    font-weight: 200;
    color: var(--color-black);
    margin-bottom: 1rem;
    text-transform: capitalize;
}

.page-subtitle {
    font-size: 1.125rem;
    color: var(--color-gray);
}

/* Products Main Layout */
.products-main {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    max-width: 1600px;
    margin: 0 auto;
    padding: 4rem;
}

/* Sidebar */
.products-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.filter-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--color-light);
}

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

.filter-title {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--color-black);
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: none;
    transition: color var(--transition-fast);
}

.filter-option:hover {
    color: var(--color-primary);
}

.filter-option input {
    display: none;
}

.filter-radio {
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--color-gray);
    border-radius: 50%;
    position: relative;
    transition: all var(--transition-fast);
}

.filter-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform var(--transition-fast);
}

.filter-option input:checked+.filter-radio {
    border-color: var(--color-primary);
}

.filter-option input:checked+.filter-radio::after {
    transform: translate(-50%, -50%) scale(1);
}

.filter-label {
    flex: 1;
    font-size: 0.9375rem;
}

.filter-count {
    font-size: 0.8125rem;
    color: var(--color-gray);
}

/* Price Range Slider */
.price-range {
    padding: 0.5rem 0;
}

.price-slider {
    width: 100%;
    height: 4px;
    background: var(--color-light);
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
    margin-bottom: 1rem;
}

.price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--color-primary);
    border-radius: 50%;
    cursor: none;
    transition: transform var(--transition-fast);
}

.price-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.price-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--color-gray);
}

/* Products Content */
.products-content {
    min-height: 100vh;
}

.products-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-light);
}

.products-count {
    font-size: 0.9375rem;
    color: var(--color-gray);
}

.products-count span {
    font-weight: 600;
    color: var(--color-black);
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gray);
    transition: all var(--transition-fast);
}

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

.view-btn.active {
    background: var(--color-black);
    border-color: var(--color-black);
    color: var(--color-white);
}

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

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

.products-grid.list-view .product-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
}

.products-grid.list-view .product-image {
    height: 250px;
}

.products-grid.list-view .product-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
}

.products-grid.list-view .product-name {
    font-size: 1.75rem;
}

.products-grid.list-view .product-description {
    display: block;
    margin-bottom: 1.5rem;
    color: var(--color-gray);
    line-height: 1.7;
}

/* Product Card Enhancements */
.product-card {
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
    border: 1px solid var(--color-light);
    cursor: none;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.product-image {
    position: relative;
    height: 320px;
    overflow: hidden;
    background: var(--color-cream);
    cursor: none;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 1rem;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 20px;
}

.product-badge.new {
    background: var(--color-black);
}

.product-badge.sale {
    background: #e74c3c;
}

.product-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    transform: translateX(10px);
    transition: all var(--transition-medium);
}

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

.action-btn {
    width: 44px;
    height: 44px;
    background: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-fast);
}

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

.product-info {
    padding: 1.75rem;
}

.product-category {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
}

.product-name {
    font-family: var(--font-body);
    font-size: 1.375rem;
    font-weight: 400;
    color: var(--color-black);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.product-description {
    display: none;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-light);
}

.product-price {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--color-black);
}

.product-price .old-price {
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-gray);
    text-decoration: line-through;
    margin-left: 0.5rem;
}

.add-to-cart {
    padding: 0.875rem 1.5rem;
    background: var(--color-black);
    color: var(--color-white);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.add-to-cart:hover {
    background: var(--color-primary);
}

/* Quick View Button */
.quick-view-btn {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.8);
    color: var(--color-white);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    opacity: 0;
    transform: translateY(100%);
    transition: all var(--transition-medium);
    backdrop-filter: blur(10px);
    cursor: none;
}

.product-card:hover .quick-view-btn {
    opacity: 1;
    transform: translateY(0);
}

/* Load More */
.load-more {
    display: flex;
    justify-content: center;
    margin-top: 4rem;
    padding-top: 2rem;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 2.5rem;
    background: transparent;
    color: var(--color-black);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 2px solid var(--color-black);
    border-radius: 50px;
    transition: all var(--transition-fast);
}

.load-more-btn:hover {
    background: var(--color-black);
    color: var(--color-white);
}

.load-more-btn svg {
    transition: transform var(--transition-fast);
}

.load-more-btn:hover svg {
    transform: translateY(4px);
}

/* Nav Active State */
.nav-link.active {
    color: var(--color-primary) !important;
}

.nav-link.active::after {
    width: 100%;
}

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

@media (max-width: 1024px) {
    .products-main {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

    .products-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        padding: 2rem;
        background: var(--color-cream);
        border-radius: var(--border-radius-lg);
        margin-bottom: 1rem;
    }

    .filter-section {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

    .page-header {
        padding: 120px 2rem 40px;
    }
}

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

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

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

    .products-grid.list-view .product-image {
        height: 280px;
    }

    .product-image {
        height: 280px;
    }

    .products-toolbar {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

/* Animation for products loading */
@keyframes productFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.product-card {
    animation: productFadeIn 0.6s ease forwards;
}

.product-card:nth-child(1) {
    animation-delay: 0.1s;
}

.product-card:nth-child(2) {
    animation-delay: 0.15s;
}

.product-card:nth-child(3) {
    animation-delay: 0.2s;
}

.product-card:nth-child(4) {
    animation-delay: 0.25s;
}

.product-card:nth-child(5) {
    animation-delay: 0.3s;
}

.product-card:nth-child(6) {
    animation-delay: 0.35s;
}

.product-card:nth-child(7) {
    animation-delay: 0.4s;
}

.product-card:nth-child(8) {
    animation-delay: 0.45s;
}

.product-card:nth-child(9) {
    animation-delay: 0.5s;
}

/* ===================================
   PRODUCTS PAGE MOBILE RESPONSIVE
   =================================== */

/* Small tablets - 900px */
@media (max-width: 900px) {
    .page-header {
        padding: 120px 2rem 40px;
    }

    .page-title {
        font-size: clamp(2.5rem, 6vw, 4rem);
    }

    .products-main {
        padding: 2.5rem 1.5rem;
        gap: 2rem;
    }
}

/* Tablets and below - 768px */
@media (max-width: 768px) {
    .page-header {
        padding: 110px 1.5rem 35px;
    }

    .page-label {
        font-size: 0.6875rem;
        padding: 0 2rem;
        margin-bottom: 1rem;
    }

    .page-label::before,
    .page-label::after {
        width: 1.5rem;
    }

    .page-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .products-main {
        padding: 2rem 1rem;
    }

    /* Sidebar becomes collapsible accordion style on mobile */
    .products-sidebar {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.25rem;
        margin-bottom: 0;
    }

    .filter-section {
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
        border-bottom: 1px solid var(--color-light);
    }

    .filter-section:last-child {
        padding-bottom: 0;
        margin-bottom: 0;
    }

    .filter-title {
        font-size: 1.125rem;
        margin-bottom: 1rem;
    }

    .filter-options {
        gap: 0.75rem;
    }

    .filter-option {
        padding: 0.5rem 0;
    }

    /* Products toolbar */
    .products-toolbar {
        padding-bottom: 1rem;
        margin-bottom: 1.5rem;
    }

    .products-count {
        font-size: 0.875rem;
    }

    /* Product cards */
    .product-card {
        border-radius: var(--border-radius);
    }

    .product-image {
        height: 240px;
    }

    .product-info {
        padding: 1.25rem;
    }

    .product-category {
        font-size: 0.625rem;
    }

    .product-name {
        font-size: 1.25rem;
    }

    .product-footer {
        margin-top: 0.75rem;
        padding-top: 0.75rem;
    }

    .product-price {
        font-size: 1.25rem;
    }

    .add-to-cart {
        padding: 0.75rem 1rem;
        font-size: 0.6875rem;
    }

    /* Product actions always visible on mobile */
    .product-actions {
        opacity: 1;
        transform: translateX(0);
    }

    /* Quick view button always visible */
    .quick-view-btn {
        opacity: 1;
        transform: translateY(0);
    }

    /* Load more button */
    .load-more {
        margin-top: 2.5rem;
    }

    .load-more-btn {
        padding: 1rem 2rem;
        font-size: 0.8125rem;
    }
}

/* Small devices - 600px */
@media (max-width: 600px) {
    .page-header {
        padding: 100px 1rem 25px;
    }

    .page-title {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 0.9375rem;
    }

    .products-main {
        padding: 1.5rem 1rem;
    }

    .products-sidebar {
        padding: 1rem;
    }

    .filter-radio {
        width: 20px;
        height: 20px;
    }

    .filter-label {
        font-size: 0.9375rem;
    }

    /* Price slider touch optimization */
    .price-slider {
        height: 6px;
    }

    .price-slider::-webkit-slider-thumb {
        width: 24px;
        height: 24px;
    }

    /* Product cards */
    .product-image {
        height: 220px;
    }

    .product-badge {
        padding: 0.375rem 0.75rem;
        font-size: 0.625rem;
    }

    .action-btn {
        width: 40px;
        height: 40px;
    }

    .product-info {
        padding: 1rem;
    }

    .product-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .add-to-cart {
        width: 100%;
        text-align: center;
        padding: 0.875rem 1rem;
    }

    /* List view adjustments */
    .products-grid.list-view .product-info {
        padding: 1.25rem;
    }

    .products-grid.list-view .product-name {
        font-size: 1.25rem;
    }

    .products-grid.list-view .product-description {
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }
}

/* Extra small devices - 480px */
@media (max-width: 480px) {
    .page-header {
        padding: 90px 0.875rem 20px;
    }

    .page-label {
        font-size: 0.625rem;
        padding: 0 1.5rem;
    }

    .page-label::before,
    .page-label::after {
        width: 1rem;
    }

    .page-title {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .page-subtitle {
        font-size: 0.875rem;
    }

    .products-main {
        padding: 1.25rem 0.875rem;
    }

    .products-sidebar {
        padding: 0.875rem;
        border-radius: var(--border-radius);
    }

    .filter-title {
        font-size: 1rem;
    }

    .filter-option {
        padding: 0.375rem 0;
    }

    .filter-label {
        font-size: 0.875rem;
    }

    .filter-count {
        font-size: 0.75rem;
    }

    .price-labels {
        font-size: 0.8125rem;
    }

    /* Products toolbar */
    .products-toolbar {
        gap: 0.75rem;
    }

    .products-count {
        font-size: 0.8125rem;
    }

    .view-btn {
        width: 36px;
        height: 36px;
    }

    /* Product cards */
    .product-image {
        height: 200px;
    }

    .product-badge {
        top: 0.75rem;
        left: 0.75rem;
        padding: 0.25rem 0.625rem;
        font-size: 0.5625rem;
    }

    .product-actions {
        top: 0.75rem;
        right: 0.75rem;
        gap: 0.375rem;
    }

    .action-btn {
        width: 36px;
        height: 36px;
    }

    .product-info {
        padding: 0.875rem;
    }

    .product-category {
        font-size: 0.5625rem;
        margin-bottom: 0.375rem;
    }

    .product-name {
        font-size: 1.125rem;
        margin-bottom: 0.5rem;
    }

    .product-footer {
        margin-top: 0.625rem;
        padding-top: 0.625rem;
    }

    .product-price {
        font-size: 1.125rem;
    }

    .add-to-cart {
        padding: 0.75rem 0.875rem;
        font-size: 0.625rem;
        min-height: 44px;
        /* Touch target */
    }

    .quick-view-btn {
        padding: 0.875rem;
        font-size: 0.6875rem;
    }

    /* Load more */
    .load-more {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }

    .load-more-btn {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
        font-size: 0.75rem;
    }
}

/* Touch device optimizations for products page */
@media (hover: none) and (pointer: coarse) {

    /* Increase touch targets */
    .filter-option {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .filter-radio {
        width: 22px;
        height: 22px;
    }

    .price-slider::-webkit-slider-thumb {
        width: 28px;
        height: 28px;
    }

    .view-btn {
        width: 44px;
        height: 44px;
    }

    .action-btn {
        width: 44px;
        height: 44px;
    }

    .add-to-cart {
        min-height: 48px;
    }

    .load-more-btn {
        min-height: 52px;
    }

    /* Always show product actions on touch devices */
    .product-actions {
        opacity: 1;
        transform: translateX(0);
    }

    /* Always show quick view */
    .quick-view-btn {
        position: static;
        opacity: 1;
        transform: none;
        border-radius: 0;
    }
}

/* ===================================
   SHOPIER MODE - Sepet Devre Dışı
   =================================== */

/* Sepet butonunu gizle */
.cart-btn,
.cart-sidebar,
.cart-overlay {
    display: none !important;
}

/* Satın Al butonu stilleri */
.buy-now-btn {
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.buy-now-btn:hover {
    background: var(--color-primary-dark, #1a1a1a);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}