/* ============================================================
   products.css — Ürünler sayfası (products.php) stilleri
   ============================================================ */

/* Page Header Section */
.lvn-page-header-section {
    position: relative;
    background-color: #f7f4ec;
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    padding-top: 60px;
    padding-bottom: 45px;
    overflow: hidden;
}

.lvn-page-header-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #f7f4ec 0%, #f7f4ecf0 38%, #f7f4ec99 55%, #f7f4ec1a 75%, transparent 100%);
    z-index: 0;
}

.lvn-page-header-section .container {
    position: relative;
    z-index: 1;
}

.lvn-breadcrumbs-wrap {
    text-align: left;
    margin-bottom: 0px;
    padding: 20px 0;
}

.lvn-breadcrumbs-list {
    list-style: none;
    padding: 0;
    font-size: 12px;
    color: #777;
    margin-bottom: 20px;
    justify-content: flex-start !important;
}

.lvn-breadcrumbs-list a {
    color: #777;
    text-decoration: none;
}

.lvn-breadcrumbs-list .icon-arrow-right {
    font-size: 8px;
    color: #ccc;
}

.lvn-breadcrumbs-list .active-cat {
    color: #333;
}

.lvn-page-title {
    font-size: 36px;
    color: #333;
    margin: 0 0 15px 0;
}

.lvn-page-subtitle {
    font-size: 13px;
    color: #666;
    max-width: 480px;
    line-height: 1.6;
    margin: 0 0 22px 0;
}

.lvn-header-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.lvn-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #e9e2d3;
    color: #555;
    font-size: 12px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 30px;
    white-space: nowrap;
}

.lvn-header-badge i {
    color: #8c1a35;
    font-size: 13px;
}

@media (max-width: 767px) {
    .lvn-page-header-section::before {
        background: linear-gradient(180deg, #f7f4ecf5 55%, #f7f4ec 100%);
    }
    .lvn-breadcrumbs-wrap {
        max-width: 100%;
    }
    .lvn-page-title {
        font-size: 26px;
    }
}

/* Category Slider */
.lvn-category-slider-wrapper {
    background-color: #fff;
    padding: 20px 0;
}

/* Helper Classes */
.lvn-mt-30 {
    margin-top: 30px !important;
}
.lvn-text-uppercase {
    text-transform: uppercase !important;
}
.lvn-empty-products-text {
    color: #999;
}
.lvn-disabled-nav {
    pointer-events: none;
    opacity: 0.5;
}
.lvn-active-filters-text {
    font-weight: 600;
    color: #333;
    margin-right: 10px;
}

.lvn-sidebar-back-link {
    margin-bottom: 20px;
}
.lvn-sidebar-back-link a {
    color: #8c1a35;
    font-weight: 600;
}
.lvn-sidebar-back-link i {
    font-size: 10px;
    margin-right: 5px;
}

/* Sidebar Prices */
.lvn-sidebar-prices {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #555;
}

.lvn-products-container {
    padding-top: 40px;
    background-color: #ffffff;
}

/* ── SIDEBAR ────────────────────────────────────────────── */
.lvn-sidebar {
    background-color: #faf8f4;
    border: 1px solid #f0ece2;
    padding: 30px 25px;
    border-radius: 8px;
}

.lvn-sidebar-title {
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    color: #333;
}

.lvn-sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0 0 35px 0;
}

.lvn-sidebar-list li {
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #555;
}

.lvn-sidebar-list li a {
    color: #555;
    text-decoration: none;
    transition: 0.3s;
}

.lvn-sidebar-list li a:hover {
    color: #8c1a35;
}

.lvn-sidebar-list li.active a {
    font-weight: 700;
    color: #8c1a35;
}

.lvn-sidebar-list li .count {
    color: #999;
}

.lvn-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 13px;
    color: #555;
    justify-content: space-between;
}

.lvn-checkbox input {
    margin-right: 10px;
    accent-color: #8c1a35;
    width: 14px;
    height: 14px;
}

.lvn-checkbox-empty {
    opacity: 0.45;
}

.lvn-checkbox .label-text {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lvn-color-circle {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    border: 1px solid #ddd;
}

/* ── SIDEBAR: Ölçü buton grid ───────────────────────────── */
.lvn-size-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 35px;
}

.lvn-size-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    border: 1px solid #e5e0d8;
    border-radius: 6px;
    background: #fff;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    transition: 0.2s;
}

.lvn-size-box input {
    position: absolute;
    inset: 0;
    opacity: 0;
    margin: 0;
    cursor: pointer;
}

.lvn-size-box:hover {
    border-color: #d8b9a3;
}

.lvn-size-box.active,
.lvn-size-box:has(input:checked) {
    border-color: #8c1a35;
    color: #8c1a35;
    font-weight: 700;
    background: #fdf6f2;
}

.lvn-size-box.lvn-checkbox-empty {
    opacity: 0.4;
    pointer-events: none;
}

/* ── PRICE SLIDER ───────────────────────────────────────── */
.lvn-price-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    outline: none;
    margin-top: 15px;
    margin-bottom: 5px;
    border-radius: 2px;
}

.lvn-price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #8c1a35;
    cursor: pointer;
}

/* ── TOP BAR ────────────────────────────────────────────── */
.lvn-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 0px;
}

.lvn-active-filters {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 13px;
    color: #555;
}

.lvn-filter-tag {
    background: #f0f0f0;
    padding: 6px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.lvn-filter-tag i {
    cursor: pointer;
    font-size: 10px;
}

.lvn-sort-view {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lvn-sort-select {
    border: 1px solid #eee;
    padding: 8px 15px;
    font-size: 12px;
    border-radius: 4px;
    outline: none;
    color: #555;
    background: #fdfdfd;
}

.lvn-view-icons {
    display: flex;
    gap: 10px;
    background: #f9f9f9;
    padding: 5px;
    border-radius: 4px;
}

.lvn-view-icons i {
    font-size: 14px;
    color: #999;
    cursor: pointer;
    padding: 6px 8px;
}

.lvn-view-icons i.active {
    color: #333;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* ── PRODUCT CARD ───────────────────────────────────────── */
.lvn-product-card {
    background: #fff;
    border: 1px solid #f2f2f2;
    padding: 15px;
    border-radius: 8px;
    transition: 0.3s;
    position: relative;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    height: calc(100% - 30px);
}

.lvn-product-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-color: #eaeaea;
}

.lvn-product-img-wrap {
    position: relative;
    overflow: hidden;
    margin-bottom: 3px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    padding: 0px;
    aspect-ratio: 1 / 1;
}

.lvn-product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: 0.5s;
    mix-blend-mode: multiply;
}

.lvn-product-img-wrap .img-hover {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    opacity: 0;
}

.lvn-product-card:hover .img-hover {
    opacity: 1;
}

.lvn-product-card:hover .img-product {
    opacity: 0;
}

.lvn-badge-new {
    position: absolute;
    top: 0px;
    left: 0px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #faeaea;
    color: #8c1a35;
    font-size: 10.5px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 4px;
    z-index: 2;
    white-space: nowrap;
}

.lvn-badge-new i {
    font-size: 10px;
}

.lvn-badge-popular {
    background: #fdf1de;
    color: #b8791a;
}

.lvn-badge-season {
    background: #e6f4ea;
    color: #2e7d4f;
}

.lvn-badge-special {
    background: #8c1a35;
    color: #fff;
}

/* ── ÜRÜN PUANLAMASI ────────────────────────────────────── */
.lvn-product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
}

.lvn-product-rating .stars {
    color: #f0a93a;
    font-size: 11px;
    letter-spacing: 1px;
}

.lvn-product-rating .count {
    font-size: 11px;
    color: #999;
}

.lvn-wishlist-btn {
    position: absolute;
    top: 0px;
    right: 0px;
    color: #999;
    font-size: 18px;
    cursor: pointer;
    z-index: 2;
    background: transparent;
    border: none;
    padding: 0;
}

.lvn-wishlist-btn:hover {
    color: #8c1a35;
}

.lvn-product-divider {
    border: 0;
    border-top: 1px solid #ff0000;
    margin: 10px 0 15px 0;
    width: 100%;
}

.lvn-product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    width: 100%;
    padding: 5px 10px;
}

.lvn-product-specs {
    font-size: 10px;
    color: #888;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.lvn-product-title-link {
    text-decoration: none;
    color: inherit;
}

.lvn-product-title {
    font-size: 13px;
    color: #111;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    text-transform: uppercase;
}

.lvn-product-price {
    font-size: 16px;
    color: #8c1a35;
    font-weight: 700;
    margin-top: auto;
}

.lvn-card-footer {
    margin-top: auto;
    width: 100%;
}

.lvn-btn-cart {
    background: #8c1a35;
    color: #fff;
    border: none;
    padding: 12px 15px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    width: 100% !important;
    transition: 0.3s;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.lvn-btn-cart:hover {
    background: #6a1327;
}

.lvn-btn-disabled {
    background: #999;
    cursor: not-allowed;
}

.lvn-btn-disabled:hover {
    background: #999;
}

/* ── PAGINATION ─────────────────────────────────────────── */
.lvn-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 50px;
    margin-bottom: 60px;
}

.lvn-pagination a,
.lvn-pagination span {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #555;
    border: 1px solid #eee;
    text-decoration: none;
    transition: 0.3s;
    border-radius: 4px;
}

.lvn-pagination a:hover {
    background: #f9f9f9;
}

.lvn-pagination a.active {
    background: #8c1a35;
    color: #fff;
    border-color: #8c1a35;
}

.lvn-pagination .icon {
    font-size: 10px;
}

/* ── FEATURES BANNER ────────────────────────────────────── */
.lvn-features-banner {
    background: #fcfcfc;
    padding: 40px 0;
    border-top: 1px solid #eee;
    margin-bottom: 0;
}

.lvn-feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lvn-feature-icon {
    width: 45px;
    height: 45px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #b08d57;
}

.lvn-feature-text h6 {
    font-size: 13px;
    margin: 0 0 4px 0;
    font-weight: 600;
}

.lvn-feature-text p {
    font-size: 11px;
    color: #888;
    margin: 0;
}

/* ── SIDEBAR: mobil filtre çekmecesi (offcanvas-lg) ─────── */
.lvn-sidebar-toggle-btn {
    display: none;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #e5e0d8;
    color: #333;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    padding: 10px 16px;
    border-radius: 4px;
    cursor: pointer;
}

.lvn-sidebar-toggle-btn i {
    font-size: 13px;
    color: #8c1a35;
}

.lvn-sidebar-filter-count {
    background: #8c1a35;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

@media (max-width: 991px) {
    .lvn-sidebar-toggle-btn {
        display: inline-flex;
    }

    .lvn-sidebar.offcanvas-lg {
        --bs-offcanvas-width: 320px;
        max-width: 88vw;
        z-index: 1055;
        background-color: #faf8f4 !important;
    }

    .lvn-sidebar .lvn-sidebar-offcanvas-header {
        display: flex;
    }
}

/* Bootstrap .offcanvas-lg masaüstünde background-color'ı
   !important ile transparent yapıyor; sidebar kart görünümünü
   burada geri kazandırıyoruz (daha yüksek özgüllük ile). */
@media (min-width: 992px) {
    .lvn-sidebar.offcanvas-lg {
        background-color: #faf8f4 !important;
    }
}

.lvn-sidebar-offcanvas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 18px;
    border-bottom: 1px solid #ece7dd;
    margin: 0 0 25px;
    background: transparent;
}

.lvn-sidebar-offcanvas-header h5 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lvn-sidebar-offcanvas-header h5 i {
    color: #8c1a35;
    font-size: 13px;
}

.lvn-sidebar-header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.lvn-clear-all-btn {
    font-size: 12px;
    color: #8c1a35;
    text-decoration: underline;
    cursor: pointer;
    white-space: nowrap;
}

.lvn-clear-all-btn:hover {
    color: #6a1327;
}

.lvn-sidebar-offcanvas-header .btn-close-sidebar {
    width: 32px;
    height: 32px;
    border: none;
    background: #f5f2ea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    cursor: pointer;
    flex-shrink: 0;
}

/* ── SIDEBAR: uzun listeler için scroll konteyneri ──────── */
.lvn-scroll-list {
    max-height: 230px;
    overflow-y: auto;
    padding-right: 6px;
    margin-right: -6px;
}

.lvn-scroll-list::-webkit-scrollbar {
    width: 5px;
}

.lvn-scroll-list::-webkit-scrollbar-track {
    background: transparent;
}

.lvn-scroll-list::-webkit-scrollbar-thumb {
    background: #ddd3c3;
    border-radius: 10px;
}

.lvn-scroll-list::-webkit-scrollbar-thumb:hover {
    background: #8c1a35;
}

/* ── NEWSLETTER SECTION ─────────────────────────────────── */
.lvn-newsletter-section {
    background: #fff;
    padding: 0 0 70px;
}

.lvn-newsletter-box {
    display: flex;
    align-items: center;
    gap: 25px;
    background: linear-gradient(135deg, #faf0ec 0%, #f7e9e9 100%);
    border-radius: 12px;
    padding: 35px 45px;
    flex-wrap: wrap;
}

.lvn-newsletter-icon {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #8c1a35;
    box-shadow: 0 8px 20px rgba(140, 26, 53, 0.12);
}

.lvn-newsletter-text {
    flex: 1;
    min-width: 220px;
}

.lvn-newsletter-text h5 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 6px;
}

.lvn-newsletter-text p {
    font-size: 13px;
    color: #777;
    margin: 0;
}

.lvn-newsletter-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.lvn-newsletter-form input[type="email"] {
    width: 280px;
    max-width: 100%;
    padding: 13px 18px;
    border: 1px solid #e5d9d3;
    border-radius: 4px;
    font-size: 13px;
    outline: none;
    background: #fff;
}

.lvn-newsletter-form input[type="email"]:focus {
    border-color: #8c1a35;
}

.lvn-newsletter-form button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #8c1a35;
    color: #fff;
    border: none;
    padding: 13px 24px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    white-space: nowrap;
}

.lvn-newsletter-form button:hover {
    background: #6a1327;
}

@media (max-width: 767px) {
    .lvn-newsletter-box {
        padding: 28px 22px;
        text-align: center;
        justify-content: center;
    }
    .lvn-newsletter-form {
        width: 100%;
        justify-content: center;
    }
    .lvn-newsletter-form input[type="email"] {
        width: 100%;
    }
    .lvn-newsletter-form button {
        width: 100%;
        justify-content: center;
    }
}
