/**
 * Product Archive, Category & Shop CSS
 * Derin Flowers kategori listeleme ve ürün kartları
 *
 * @package ViralFlowers
 */

.vf-archive-header {
    background-color: var(--vf-gray-50);
    padding: 40px 0;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--vf-border);
    text-align: center;
}

.vf-breadcrumb {
    font-size: 0.82rem;
    color: var(--vf-gray-500);
    margin-bottom: 12px;
}

.vf-breadcrumb a {
    color: var(--vf-gray-700);
}

.vf-breadcrumb a:hover {
    color: var(--vf-primary);
}

.vf-archive-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--vf-dark);
    margin-bottom: 10px;
}

.vf-archive-desc {
    max-width: 700px;
    margin: 0 auto;
    font-size: 0.95rem;
    color: var(--vf-gray-500);
    line-height: 1.6;
}

/* Sıralama ve Sonuç Sayısı Barı */
.vf-shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--vf-border);
}

.vf-result-count {
    font-size: 0.9rem;
    color: var(--vf-gray-500);
}

.woocommerce-ordering select {
    padding: 8px 14px;
    border: 1.5px solid var(--vf-gray-200);
    border-radius: var(--vf-radius-sm);
    font-size: 0.88rem;
    background-color: var(--vf-white);
    color: var(--vf-dark);
    outline: none;
}

/* ====================================================
   ÜRÜN KARTLARI (PRODUCT GRID & CARDS - BÜYÜK & FERAH)
==================================================== */
ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 32px !important;
    padding: 0 !important;
    margin: 0 0 60px 0 !important;
    list-style: none !important;
}

li.product {
    background: var(--vf-white);
    border-radius: var(--vf-radius);
    overflow: hidden;
    border: 1px solid var(--vf-border);
    display: flex !important;
    flex-direction: column !important;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
    box-shadow: var(--vf-shadow-sm);
}

li.product:hover {
    transform: translateY(-8px);
    box-shadow: var(--vf-shadow-lg);
    border-color: #d2ded7;
}

/* Rozetler (Sale, Bestseller) */
.onsale,
.vf-product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 4;
    background-color: var(--vf-secondary) !important;
    color: var(--vf-white) !important;
    font-size: 0.76rem !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    padding: 6px 12px !important;
    border-radius: var(--vf-radius-full) !important;
    line-height: 1 !important;
    min-height: auto !important;
    min-width: auto !important;
    box-shadow: 0 3px 8px rgba(244, 132, 132, 0.35);
}

/* Ürün Görsel Kapsayıcısı ve 2. Görsel Hover Efekti (Büyük ve Net) */
.vf-product-thumb-wrap {
    position: relative;
    aspect-ratio: 3 / 4; /* Uzun ve büyük çiçek fotoğrafı oranı */
    min-height: 340px;
    overflow: hidden;
    background-color: var(--vf-gray-50);
}

.vf-product-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.35s ease;
}

.vf-product-thumb-wrap .vf-secondary-img {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: 2;
}

li.product:hover .vf-product-thumb-wrap img.vf-primary-img {
    transform: scale(1.06);
}

li.product:hover .vf-product-thumb-wrap .vf-secondary-img {
    opacity: 1;
    transform: scale(1.06);
}

/* Ürün Kartı İçeriği */
.vf-product-info {
    padding: 22px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    background: var(--vf-white);
}

.vf-card-sku {
    font-size: 0.74rem;
    color: var(--vf-gray-500);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 6px;
    display: inline-block;
}

.woocommerce-loop-product__title {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: var(--vf-dark) !important;
    margin-bottom: 10px !important;
    line-height: 1.4 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em;
}

li.product a:hover .woocommerce-loop-product__title {
    color: var(--vf-primary) !important;
}

/* Fiyat */
.price {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: var(--vf-primary) !important;
    margin-bottom: 16px !important;
    display: block;
}

.price del {
    font-size: 0.95rem !important;
    color: var(--vf-gray-400) !important;
    font-weight: 500 !important;
    margin-right: 8px;
}

.price ins {
    text-decoration: none !important;
}

/* Buton */
.vf-card-btn {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 18px;
    background-color: var(--vf-primary-light);
    color: var(--vf-primary);
    border-radius: var(--vf-radius-sm);
    font-size: 0.92rem;
    font-weight: 700;
    transition: all 0.25s ease;
}

li.product:hover .vf-card-btn {
    background-color: var(--vf-primary);
    color: var(--vf-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 41, 0.2);
}

/* Sayfalama (Pagination) */
.woocommerce-pagination,
.navigation.pagination {
    margin: 40px 0;
    text-align: center;
}

.page-numbers {
    display: inline-flex;
    gap: 8px;
    padding: 0;
    list-style: none;
}

.page-numbers li {
    display: inline-block;
}

.page-numbers a,
.page-numbers span {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--vf-radius-sm);
    border: 1px solid var(--vf-border);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--vf-dark);
}

.page-numbers span.current,
.page-numbers a:hover {
    background-color: var(--vf-primary);
    border-color: var(--vf-primary);
    color: var(--vf-white);
}
