@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Homemade+Apple&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900&display=swap');

html, body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
    min-height: 50vh;
}

.vaproduct-container {
    font-family: 'Poppins', sans-serif;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 15px;
    text-align: left;
    min-height: calc(100vh - 600px);
}

.vaproduct-title {
    font-size: xx-large;
    padding: 20px 0;
}

.vaproduct-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

    .vaproduct-list .vaproduct-item img {
        width: 100%;
        display: block;
        margin: auto;
    }

.vaproduct-item {
    position: relative;
    background: #fff;
    border: 1px solid #eee;
    width: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    opacity: 1;
    transform: scale(1);
}

    .vaproduct-item:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    }

.product-image-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.vaproduct-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Discount badge moved to inline with price - removed absolute positioning */

.product-details {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.vaproduct-item h2 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 12px;
    color: #333;
    line-height: 1.4;
}

.price-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.vaproduct-price {
    font-size: 18px;
    font-weight: 600;
}

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

.vabtn-bn {
    width: 100%;
    padding: 12px 20px;
    background: #ffffff;
    color: #ff6b00;
    border: 1px solid #ff6b00;
    border-radius: 2px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.vabtn-bn:hover {
    background: #fff6ee;
    border-color: #ff6b00;
    color: #ff6b00;
    box-shadow: 0 6px 18px rgba(255, 107, 0, 0.12);
}

.vabtn-bn:focus-visible {
    outline: 2px solid rgba(255, 107, 0, 0.35);
    outline-offset: 3px;
}

.vabtn-bn:active {
    background: #ffe3cc;
    border-color: #ff6b00;
    color: #ff6b00;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.16);
}

/* Responsive Tasarım */
@media (max-width: 1200px) {
    .vaproduct-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

@media (max-width: 992px) {
    .vaproduct-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .filter-bar {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
    }

    .filter-right {
        flex-wrap: nowrap;
        gap: 10px;
    }

    .sort-by {
        min-width: 150px;
    }

    .vaproduct-container {
        min-height: calc(100vh - 500px);
    }
}

@media (max-width: 480px) {
    .vaproduct-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 10px;
    }

    .vaproduct-item {
        height: 300px;
    }

    .product-image-container {
        height: 180px;
    }

    .vaproduct-item h2 {
        font-size: 14px;
    }

    .vaproduct-price {
        font-size: 14px;
    }

    .original-price {
        font-size: 12px;
    }

    .vabtn-bn {
        padding: 10px 16px;
        font-size: 12px;
        letter-spacing: 0.06em;
        border-radius: 2px;
    }
}

/* Filter Bar */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    flex-wrap: nowrap;
}

.filter-left {
    flex-shrink: 0;
}

.filter-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.filter-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
}

.filter-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    transition: all 0.3s ease;
    z-index: -1;
}

.filter-button:hover:before {
    left: 0;
}

.filter-button:hover {
    background: #f5f5f5;
}

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

    .sort-by span {
        font-size: 14px;
        color: #666;
    }

    .sort-by select {
        padding: 8px 12px;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 14px;
        color: #333;
        cursor: pointer;
    }

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

    .view-options button {
        padding: 8px;
        background: transparent;
        border: 1px solid #ddd;
        border-radius: 4px;
        cursor: pointer;
        color: #666;
    }

        .view-options button.active {
            background: #4e7460;
            color: white;
            border-color: #4e7460;
        }

.footer {
    flex-shrink: 0;
    margin-top: auto;
    width: 100%;
    position: relative;
    bottom: 0;
    left: 0;
    z-index: 1;
}

/* Select elementini özelleştirme */
#sortSelect {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

#sortSelect:hover {
    border-color: #4e7460;
}

#sortSelect:focus {
    outline: none;
    border-color: #4e7460;
    box-shadow: 0 0 0 2px rgba(78, 116, 96, 0.1);
}

/* Custom styles for sorting options */
#sortSelect option {
    padding: 8px;
    background-color: white;
}

#sortSelect option:hover {
    background-color: #f5f5f5;
}

/* ---------- Breadcrumb Styles ---------- */
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    max-width: 1120px;
    margin: 20px auto 10px;
    padding: 0 5px;
}

.breadcrumb a {
    color: #4e7460;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: #ff6b00;
    text-decoration: underline;
}

.breadcrumb > *:not(:last-child)::after {
    content: '›';
    margin: 0 6px;
    color: #bdbdbd;
}

.breadcrumb a,
.breadcrumb span {
    display: inline-flex;
    align-items: center;
}

@media (max-width: 767px) {
    .breadcrumb {display:none;}
}
/* ---------- End Breadcrumb Styles ---------- */
