﻿/**
* Theme Name: Vendora
* Theme URI: https://vendora.novaworks.net
* Author: Novaworks
* Author URI: https://themeforest.net/user/nova-works/portfolio
* Description: Vendora is a fully responsive Premium WordPress Theme with a pixel perfect design and extensive functionality.
* Requires at least: 4.9.6
* Tested up to: 5.5
* Requires PHP: 5.2.4
* Version: 1.0.0
* Tags: one-column, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, custom-background, custom-colors, custom-header, custom-menu, featured-image-header, featured-images, flexible-header, full-width-template, post-formats, sticky-post, theme-options, translation-ready
* License: GNU General Public License v2 or later
* License URI: LICENSE
* Text Domain: vendora
*/

/* Wishlist Mobile Optimization - Antigravity Fix */
@media (max-width: 767px) {
    /* Wishlist konteynerini dikey liste yap */
    ul.products.wishlist_table {
        display: flex !important;
        flex-direction: column !important;
        padding: 0 !important;
    }

    /* Her bir Ã¼rÃ¼n kutusunu dÃ¼zenle */
    ul.products.wishlist_table li.product {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        margin: 0 0 15px 0 !important;
        border: 1px solid #ebebeb;
        padding: 15px !important;
        border-radius: 10px;
        background: #fff;
    }

    /* ÃœrÃ¼n iÃ§eriÄŸini (resim ve detaylar) yan yana getir */
    ul.products.wishlist_table li.product .product-inner {
        display: flex !important;
        flex-wrap: wrap;
        position: relative;
        text-align: left !important;
    }

    /* ÃœrÃ¼n resmi */
    ul.products.wishlist_table li.product .product-thumbnail {
        width: 80px !important;
        margin-right: 15px !important;
        margin-bottom: 0 !important;
        flex-shrink: 0;
    }

    /* ÃœrÃ¼n bilgileri alanÄ± */
    ul.products.wishlist_table li.product .product-summary {
        width: calc(100% - 95px);
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    ul.products.wishlist_table li.product .product-summary h2.product-name {
        font-size: 14px !important;
        line-height: 1.3 !important;
        margin-bottom: 5px !important;
        padding-right: 25px; /* Silme butonu iÃ§in boÅŸluk */
    }

    /* Silme butonu konumu */
    ul.products.wishlist_table li.product .product-remove {
        position: absolute;
        top: -5px;
        right: -5px;
        z-index: 10;
    }

    ul.products.wishlist_table li.product .product-remove a.remove {
        padding: 10px;
        display: block;
    }

    /* Fiyat ve Stok durumu */
    ul.products.wishlist_table li.product .product-price,
    ul.products.wishlist_table li.product .product-stock-status {
        display: block !important;
        margin-top: 4px;
        font-size: 13px !important;
    }

    /* Sepete ekle ve aksiyonlar alanÄ± */
    ul.products.wishlist_table li.product .product-actions {
        width: 100% !important;
        margin-top: 15px !important;
        padding-top: 12px !important;
        border-top: 1px dashed #eee;
    }

    ul.products.wishlist_table li.product .product-actions .button {
        width: 100% !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        height: 40px;
        font-size: 13px !important;
        text-transform: uppercase;
        font-weight: 600;
    }

    /* Varsa adet seÃ§iciyi gizle veya dÃ¼zenle */
    ul.products.wishlist_table li.product .product-quantity {
        margin-top: 5px;
    }
}

/* Hide empty price wrappers globally */
.price:empty, .product-price:empty { display: none !important; }


/* Blog Single Customizations */
.single-post .entry-featured-img {
    width: 100%;
    height: auto !important;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.single-post .entry-featured-img img {
    width: 100%;
    height: auto !important;
    object-fit: unset !important;
    display: block;
}

/* Custom Sidebar Styles */
.custom-blog-widgets .custom-widget {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    border: 1px solid #f2f2f2;
}
.custom-blog-widgets .custom-widget .widget-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f5f5f5;
    position: relative;
}
.custom-blog-widgets .custom-widget .widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 40px;
    height: 2px;
    background: var(--site-color-primary, #000);
}
.custom-blog-widgets .custom-widget-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.custom-blog-widgets .custom-widget-list li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee;
}
.custom-blog-widgets .custom-widget-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.custom-blog-widgets .widget-item-flex {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}
.custom-blog-widgets .widget-item-flex:hover {
    color: var(--site-color-primary, #666);
}
.custom-blog-widgets .widget-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    margin-right: 15px;
    flex-shrink: 0;
    background-color: #f9f9f9;
}
.custom-blog-widgets .widget-info {
    display: flex;
    flex-direction: column;
}
.custom-blog-widgets .widget-title-text {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.custom-blog-widgets .widget-price-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--site-color-primary, #222);
    margin-top: 5px;
}
.custom-blog-widgets .widget-price-text:empty {
    display: none;
}
@media (max-width: 1024px) {
    .single-post .entry-featured-img {
    width: 100%;
    height: auto !important;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
}

/* Gap and Spacing Fixes */
@media (min-width: 1024px) {
    .site-main-content-wrapper {
        padding-right: 40px !important;
    }
}
.single-post .site-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}
.single-post .nova-container {
    padding-top: 30px !important;
}
.single-post .site-header {
    margin-bottom: 0 !important;
}

.single-post .site-content-wrapper {
    padding-top: 0 !important;
    margin-top: 0 !important;
}



/* Force remove the 32px top gap / ghost admin bar gap on single posts */
body.single-post {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
.single-post .site-wrapper {
    margin-top: 0 !important;
    padding-top: 0 !important;
}




/* FINAL ARCHIVE GRID & CARD FIXES */
.blog-articles {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)) !important; /* Widened the boxes from 300px to 380px */
    gap: 40px !important;
    margin-top: 30px !important;
    margin-bottom: 40px !important;
}
.blog-articles article {
    background: #fff !important;
    border-radius: 12px !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05) !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    margin-bottom: 0 !important;
    padding: 0 !important; /* Removes the white borders around the image */
    border: 1px solid #f2f2f2 !important;
    transition: all 0.3s ease !important;
}
.blog-articles article:hover {
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.2) !important; /* Yellow hover shadow */
    border-color: rgba(212, 175, 55, 0.3) !important;
}
.blog-articles article .entry-thumbnail {
    width: 100% !important;
    height: 250px !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}
.blog-articles article .entry-thumbnail * {
    margin: 0 !important;
    padding: 0 !important;
}
.blog-articles article .entry-thumbnail a,
.blog-articles article .entry-thumbnail figure {
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}
.blog-articles article .entry-thumbnail img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.3s ease !important;
}
.blog-articles article:hover .entry-thumbnail img {
    transform: scale(1.05) !important;
}
.blog-articles article .entry-meta__cat {
    display: none !important; /* Removes the invisible gap below image */
}
.blog-articles article .entry-content-wrap {
    padding: 20px 30px 30px !important; /* Internal padding only for text area */
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    margin: 0 !important;
}
.blog-articles article .entry-header {
    margin: 0 0 15px 0 !important;
    padding: 0 !important;
}
.blog-articles article .entry-title {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
}
.blog-articles article .entry-title a {
    color: inherit !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}
.blog-articles article .entry-title a:hover {
    color: #d4af37 !important; /* Dark yellow text hover */
}
.blog-articles article .entry-content {
    font-size: 14px !important;
    color: #666 !important;
    margin: 0 0 20px 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    flex-grow: 1 !important;
    padding: 0 !important;
}
.blog-articles article .entry-content p {
    margin: 0 !important;
    padding: 0 !important;
}
.blog-articles article .entry-meta {
    display: none !important; /* Hide author and date */
}
.blog-articles article .entry-content__readmore-wrap {
    margin: auto 0 0 0 !important;
    padding: 0 !important;
}
.blog-articles article .entry-content__readmore {
    display: inline-block !important;
    padding: 8px 20px !important;
    background: var(--site-color-primary, #000) !important;
    color: #fff !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    transition: opacity 0.3s ease !important;
}
.blog-articles article .entry-content__readmore:hover {
    opacity: 0.8 !important;
}
@media (max-width: 768px) {
    .blog-articles {
        grid-template-columns: 1fr !important;
    }
}



