/*
Theme Name: Fidanbu
Theme URI: https://fidanbu.com
Author: Fidanbu Team
Author URI: https://fidanbu.com
Description: Modern glassmorphic WooCommerce theme for plant nursery
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fidanbu
Tags: e-commerce, woocommerce, glassmorphism, modern, dark-theme
*/

/* 
   NOTE: This theme uses Tailwind CSS. 
*/

:root {
    --fidan-lime: #A4C639;
    --fidan-dark: #1a1a1a;
    --glass-bg: rgba(0, 0, 0, 0.2);
    --glass-border: rgba(255, 255, 255, 0.1);
}

body {
    background-color: #0f172a;
    color: white;
}

/* Glass Efektleri */
.glass {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.glass-btn {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-btn:hover {
    background: rgba(164, 198, 57, 0.2);
    border-color: rgba(164, 198, 57, 0.5);
}

/* 
   Special Selections Grid (Custom Override) 
   Requested Update: 2026-01-13
*/

.fidan-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    /* Reduced Gap as requested */
    flex-wrap: wrap;
    margin-top: 40px;
}

.product-slider-track {
    display: flex;
    justify-content: flex-start;
    /* İtemleri sola yaslar, arayı açmaz */
    gap: 24px;
    /* Standart boşluk */
    overflow-x: auto;
    padding: 20px 0;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    width: 100%;
    /* Konteyner genişliği */
    scrollbar-width: none;
    /* Firefox için scrollbar'ı gizle */
    -ms-overflow-style: none;
    /* IE/Edge için scrollbar'ı gizle */
}

/* Chrome, Safari ve Opera için scrollbar'ı gizle */
.product-slider-track::-webkit-scrollbar {
    display: none;
}

.fidan-card {
    width: 280px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 1rem;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.fidan-card:hover {
    transform: translateY(-8px);
    border-color: rgba(164, 198, 57, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(164, 198, 57, 0.15);
}

.fidan-card .img-holder {
    position: relative;
    height: 280px;
    /* Fixed Image Height */
    overflow: hidden;
}

.fidan-card .img-holder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Prevents stretching */
}

.fidan-card .card-info {
    padding: 20px;
    text-align: center;
    color: #fff;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 
   Shop Page Grid Layout 
*/
.shop-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 30px;
}

@media (min-width: 768px) {
    .shop-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .shop-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.shop-grid .fidan-card {
    width: 100%;
    /* Override fixed width for grid */
}

/* Pagination Styles */
.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-weight: bold;
    transition: all 0.3s ease;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: var(--fidan-lime);
    /* fidan-lime */
    color: black;
}

.pagination .prev,
.pagination .next {
    background: transparent !important;
    width: auto !important;
}

/* 
   Shop Refactor (Sidebar + Light Mode) 
   Requested Update: Step 200
*/

/* Light Theme Overrides */
body.archive,
body.post-type-archive-product,
body.shop-page-demo {
    background-color: #f9f9f9 !important;
    color: #333;
}

/* Shop Layout Wrapper */
.shop-layout-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    align-items: start;
    padding: 20px 0;
}

@media (max-width: 1024px) {
    .shop-layout-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Sidebar Styling */
.shop-sidebar {
    flex: 0 0 250px;
    width: 250px;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .shop-sidebar {
        width: 100%;
        flex: none;
    }
}

.shop-sidebar h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #1a1a1a;
    font-weight: 700;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 12px;
}

.shop-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.shop-sidebar li a {
    display: block;
    padding: 10px 0;
    color: #666;
    text-decoration: none;
    border-bottom: 1px solid #f9f9f9;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.shop-sidebar li a:hover {
    color: var(--fidan-lime);
    /* fidan-lime */
    padding-left: 8px;
}

/* Product Grid Container (Right Side) */
.product-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 640px) {
    .product-grid-container {
        grid-template-columns: 1fr;
        justify-items: center;
    }
}

/* Compact shop Hero */
.shop-hero {
    height: auto;
    min-height: 250px;
    padding-top: 120px;
    padding-bottom: 40px;
    background-position: center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Light Mode Card Overrides */
body.archive .fidan-card,
body.post-type-archive-product .fidan-card,
body.shop-page-demo .fidan-card {
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

body.archive .fidan-card .card-info h4 a,
body.post-type-archive-product .fidan-card .card-info h4 a,
body.shop-page-demo .fidan-card .card-info h4 a {
    color: #1a1a1a;
}

body.archive .fidan-card .card-info h4 a:hover,
body.post-type-archive-product .fidan-card .card-info h4 a:hover,
body.shop-page-demo .fidan-card .card-info h4 a:hover {
    color: var(--fidan-lime);
}

body.archive .fidan-card .btn-add,
body.post-type-archive-product .fidan-card .btn-add,
body.shop-page-demo .fidan-card .btn-add {
    background: #f9f9f9;
    border-color: #eee;
    color: #666;
    background: var(--fidan-lime);
    color: black;
    border-color: var(--fidan-lime);
}

/* 
   About Us Page Styles 
   Requested Update: Step 254
*/

/* Typography Override */
.font-serif {
    font-family: 'Playfair Display', serif;
}

/* Page Background for About Template */
body.page-template-page-about,
body.about-page-demo {
    background-color: #f9f9f9 !important;
    color: #333;
}

/* Utilities */
.section-padding {
    padding: 80px 0;
}


/* About Hero */
.about-hero {
    height: 40vh;
    min-height: 400px;
}

/* Specific override for About Page Hero Slider */
.about-hero-slider {
    height: 50vh !important;
    min-height: 400px;
}

.about-hero-slider .swiper-slide {
    height: 100%;
}


/* 
   About Page Header Override (Dark Liquid Glass)
   Requested Update: Step 286 
*/
body.page-template-page-about #navbar,
body.about-page-demo #navbar,
body.page-template-page-contact #navbar,
body.contact-page-demo #navbar {
    background: rgba(20, 30, 25, 0.4) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Contact Page Styles */
.compact-hero {
    /* Shared style, mainly handled by tailwind classes in template but good to have a backup */
}

body.page-template-page-contact,
body.contact-page-demo {
    background-color: #f9f9f9 !important;
    color: #333;
}

.contact-map.grayscale iframe {
    filter: grayscale(100%);
}

.glass-card-light {
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.glass-card-light:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}




body.archive .fidan-card .btn-add:hover,
body.post-type-archive-product .fidan-card .btn-add:hover,
body.shop-page-demo .fidan-card .btn-add:hover {
    background: var(--fidan-lime);
    color: black;
    border-color: var(--fidan-lime);
}

/* --- GLOBAL FIX: Hide mobile menu on Desktop --- */
.mobile-menu-drawer {
    display: none;
}

/* 1. RESET OUTER WRAPPERS (Structure Only, No Visuals) */
#main-header,
.site-header,
#masthead,
.header-wrapper,
.ast-main-header-wrap,
.hfeed .site-header {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    border: none !important;

    /* Position the Wrapper */
    position: absolute !important;
    top: 20px !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    pointer-events: none;
    /* Let clicks pass through the empty areas */
}

/* 2. NUCLEAR CLEANUP (No Pseudo Elements) */
header::before,
header::after,
#masthead::before,
#masthead::after,
.site-header::before,
.site-header::after,
#main-header::before,
#main-header::after {
    display: none !important;
    content: none !important;
    opacity: 0 !important;
}

/* 3. STYLE THE INNER CAPSULE (The Actual Glass Pill) */
#main-header #navbar,
/* For Demo Files */
#masthead .main-header-bar,
/* For Theme */
.site-header>.site-header-primary-section,
/* For Theme */
.main-header-bar,
.site-header-primary-section-right {
    pointer-events: auto;
    /* Re-enable clicks */

    /* Centering & Sizing */
    width: 95% !important;
    max-width: 1300px !important;
    margin: 0 auto !important;
    /* Centered in the 100% wrapper */

    /* The Crystal Glass Look */
    background: rgba(15, 30, 15, 0.4) !important;
    /* Modified opacity */
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px);

    /* Shape & Edge */
    border-radius: 50px !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.15) !important;

    /* Layout Adjustments */
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Mobile Adjustment */
@media (max-width: 768px) {

    #main-header,
    .site-header {
        top: 10px !important;
    }

    #main-header #navbar,
    #masthead .main-header-bar,
    .site-header>.site-header-primary-section {
        width: 92% !important;
        border-radius: 20px !important;
        padding: 10px 15px !important;
    }
}

/* SPACING CORRECTIONS - Updated for Floating Header */

/* Shop Page Hero */
.shop-hero {
    padding-top: 180px !important;
    /* Compensate for floating header */
}

/* Single Product Page (No Hero) */
.single-product-container,
body.single-product .site-content {
    padding-top: 180px !important;
    /* Push content down significantly */
}

/* --- SINGLE PRODUCT PAGE STYLES --- */

/* Page Background */
body.single-product {
    background-color: #f9f9f9;
    color: #333;
}

/* Container Spacing */
.single-product-container {
    padding-bottom: 80px;
    max-width: 1200px;
}

/* Grid Layout */
.product-grid-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    /* Image wider than summary */
    gap: 60px;
    align-items: start;
}

@media (max-width: 768px) {
    .product-grid-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .single-product-container {
        padding-top: 120px !important;
        /* Less padding on mobile */
    }
}

/* Gallery Styling */
.product-gallery-column img {
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    width: 100%;
    height: auto;
    display: block;
}

/* Product Info Styling */
.product-summary-column .product_title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 10px;
}

.product-summary-column .price {
    font-size: 1.8rem;
    color: var(--fidan-lime);
    /* fidan-lime */
    font-weight: 700;
    margin: 20px 0;
    display: block;
}

.product-summary-column .woocommerce-product-details__short-description {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 30px;
}

/* Add to Cart Section */
.product-summary-column form.cart {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    align-items: center;
}

/* Quantity Input */
.product-summary-column .quantity input {
    width: 60px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 12px;
    text-align: center;
    font-weight: bold;
    background: white;
}

/* Add To Cart Button */
.single_add_to_cart_button {
    background-color: var(--fidan-lime) !important;
    color: #000 !important;
    padding: 16px 40px !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    flex-grow: 1;
    /* Make it wide */
    max-width: 300px;
    display: inline-block;
}

.single_add_to_cart_button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(164, 198, 57, 0.3);
}

/* Meta Data (SKU, Categories) */
.product_meta {
    font-size: 0.9rem;
    color: #888;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.product_meta>span {
    display: block;
    margin-bottom: 5px;
}

.product_meta a {
    color: var(--fidan-lime);
    font-weight: 600;
    text-decoration: none;
}

.product_meta a:hover {
    color: var(--fidan-lime);
}

/* TABS Styling */
.product-tabs-wrapper .woocommerce-tabs ul.tabs {
    padding: 0;
    margin: 0 0 30px;
    border-bottom: 2px solid #eee;
    display: flex;
    gap: 40px;
    list-style: none;
}

.product-tabs-wrapper .woocommerce-tabs ul.tabs li {
    background: transparent;
    border: none;
    padding: 0 0 15px;
    border-bottom: 3px solid transparent;
    cursor: pointer;
}

.product-tabs-wrapper .woocommerce-tabs ul.tabs li a {
    font-size: 1.2rem;
    font-weight: 600;
    color: #aaa;
    text-decoration: none;
    font-family: 'Manrope', sans-serif;
}

.product-tabs-wrapper .woocommerce-tabs ul.tabs li.active,
.product-tabs-wrapper .woocommerce-tabs ul.tabs li:hover {
    border-bottom-color: var(--fidan-lime);
}

.product-tabs-wrapper .woocommerce-tabs ul.tabs li.active a {
    color: #1a1a1a;
}

.product-tabs-wrapper .panel {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.03);
    border: 1px solid #f0f0f0;
}

/* Related Products Header */
.related.products>h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
}

/* --- MOBILE RESPONSIVE RULES --- */
@media (max-width: 768px) {

    /* Restore Mobile Menu Display for Mobile */
    .mobile-menu-drawer {
        display: flex;
    }

    /* 1. Typography Scaling */
    h1 {
        font-size: 2rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    body {
        font-size: 1rem;
    }

    /* 2. Header & Navigation (Drawer Styles) */
    .mobile-menu-drawer {
        position: fixed;
        top: 0;
        right: 0;
        width: 85%;
        max-width: 300px;
        height: 100vh;
        background: rgba(15, 23, 42, 0.98);
        /* Dark Blue */
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 100;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        /* Elegant ease */
        padding: 100px 30px 40px;
        display: flex;
        flex-direction: column;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .mobile-menu-drawer.active {
        transform: translateX(0);
    }

    .mobile-menu-drawer ul {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 25px;
    }

    .mobile-menu-drawer ul li a {
        font-size: 1.25rem;
        font-weight: 500;
        color: white;
        text-decoration: none;
        display: block;
        padding-bottom: 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        transition: color 0.3s;
    }

    .mobile-menu-drawer ul li a:hover {
        color: var(--fidan-lime);
        /* fidan-lime */
        padding-left: 10px;
    }

    .mobile-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 90;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s;
        backdrop-filter: blur(2px);
    }

    .mobile-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

    /* 3. Hero Sections */
    .hero-bg,
    .swiper-slide {
        height: 100svh !important;
        min-height: 600px;
    }

    /* Ensure text in hero is centered and padded */
    .gsap-hero-text,
    .gsap-hero-subtext,
    .gsap-hero-btn {
        text-align: center;
        padding-left: 20px;
        padding-right: 20px;
    }

    .container {
        padding-left: 20px;
        padding-right: 20px;
        width: 100%;
    }

    /* 4. Grids & Layouts (Stacking Rule) */
    .shop-layout-wrapper {
        flex-direction: column;
    }

    .shop-sidebar {
        width: 100%;
        margin-bottom: 20px;
        order: -1;
        /* Sidebar on top */
        border: 1px solid #eee;
        padding: 0;
        overflow: hidden;
    }

    /* Collapsible Sidebar Logic */
    .shop-sidebar ul {
        display: none;
        /* Hidden by default on mobile */
        padding: 15px 20px;
        background: #fcfcfc;
        border-top: 1px solid #f0f0f0;
    }

    /* Show list when active */
    .shop-sidebar.sidebar-active ul {
        display: block;
        animation: fadeIn 0.3s ease;
    }

    .shop-sidebar h3 {
        margin: 0;
        padding: 15px 20px;
        background: #fff;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 1rem;
        border: none;
    }

    /* Arrow Icon */
    .shop-sidebar h3::after {
        content: '▼';
        font-size: 0.7em;
        color: #999;
        transition: transform 0.3s ease;
    }

    /* Rotate arrow when active */
    .shop-sidebar.sidebar-active h3::after {
        transform: rotate(180deg);
        color: #A4C639;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(-5px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Force 1 Column for Grids */
    .shop-grid {
        grid-template-columns: 1fr;
    }

    /* Cards full width on mobile unless in grid */
    .fidan-card {
        width: 100%;
        margin: 0 auto;
    }

    /* 2-Column Mobile Grid Fix */
    .product-grid-container {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        /* Force 2 cols */
        gap: 12px !important;
    }

    /* Mobile Card Tweaks */
    .fidan-card .img-holder {
        height: 160px !important;
        /* Smaller images */
    }

    .fidan-card .card-info {
        padding: 10px;
        /* Smaller padding */
        height: auto;
    }

    .fidan-card h4,
    .fidan-card h4 a {
        font-size: 0.9rem !important;
        /* Smaller text */
        margin-bottom: 4px;
        line-height: 1.2;
    }

    .fidan-card .price {
        font-size: 1rem !important;
    }

    .fidan-card .btn-add {
        font-size: 0.9rem;
        padding: 10px;
    }
}


/* 
   WooCommerce Cart & Checkout Overrides
   Requested Update: 2026-01-18
*/

/* Glass Form Inputs */
.glass-input,
.woocommerce-input-wrapper input,
.woocommerce-input-wrapper textarea,
.select2-selection {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 0.5rem !important;
    padding: 0.75rem 1rem !important;
    color: white !important;
    width: 100%;
    outline: none !important;
    transition: all 0.3s ease;
}

.glass-input:focus,
.woocommerce-input-wrapper input:focus,
.woocommerce-input-wrapper textarea:focus {
    border-color: #A4C639 !important;
    box-shadow: 0 0 0 2px rgba(164, 198, 57, 0.2) !important;
}

/* Select2 overrides */
.select2-container--default .select2-selection--single {
    background-color: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 0.5rem !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: white !important;
}

.select2-dropdown {
    background-color: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: white !important;
}

.select2-results__option--highlighted,
.select2-results__option[aria-selected="true"] {
    background-color: #A4C639 !important;
    color: black !important;
}

/* Payment Methods */
.wc_payment_methods {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 20px !important;
}

.wc_payment_methods li {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.wc_payment_methods li:hover {
    background: rgba(255, 255, 255, 0.05);
}

.wc_payment_methods label {
    color: white;
    font-weight: 600;
    margin-left: 0.5rem;
    cursor: pointer;
}

.payment_box {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    color: #aeaeae;
}

/* Order Review Table */
.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
    color: #e2e8f0;
}

.woocommerce-checkout-review-order-table tfoot th {
    color: #94a3b8;
    font-weight: 500;
}

.woocommerce-checkout-review-order-table .order-total th,
.woocommerce-checkout-review-order-table .order-total td {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    border-bottom: none;
    padding-top: 1.5rem;
}

.woocommerce-checkout-review-order-table .order-total td {
    color: #A4C639;
    /* fidan-lime */
}

/* Checkbox Style */
.woocommerce-form__input-checkbox {
    appearance: none;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 0;
    width: 1.25rem;
    height: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.25rem;
    display: inline-grid;
    place-content: center;
    cursor: pointer;
    vertical-align: middle;
}

.woocommerce-form__input-checkbox::before {
    content: "";
    width: 0.65rem;
    height: 0.65rem;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1rem 1rem #A4C639;
    border-radius: 0.15rem;
}

.woocommerce-form__input-checkbox:checked::before {
    transform: scale(1);
}

/* Place Order Button */
#place_order {
    background-color: #A4C639 !important;
    color: black !important;
    font-weight: 700 !important;
    width: 100%;
    padding: 1rem !important;
    border-radius: 0.75rem !important;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(164, 198, 57, 0.4);
}

#place_order:hover {
    box-shadow: 0 0 30px rgba(164, 198, 57, 0.6);
    transform: translateY(-2px);
}

/* 5. Sliders */
#slidePrev,
#slideNext {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- 1. SIDEBAR MENU DESIGN (Modern & Clean) --- */
.shop-sidebar-area ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.shop-sidebar-area ul li {
    margin-bottom: 8px !important;
}

.shop-sidebar-area ul li a {
    display: block !important;
    padding: 12px 15px !important;
    background: #f9f9f9 !important;
    border: 1px solid #eee !important;
    border-radius: 8px !important;
    color: #444 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    position: relative;
}

/* Hover Effect */
.shop-sidebar-area ul li a:hover {
    background: #5ba503 !important;
    /* Theme Green */
    color: #fff !important;
    padding-left: 20px !important;
    /* Slide effect */
    border-color: #5ba503 !important;
}

/* Current Category Active State */
.shop-sidebar-area ul li.current-cat a {
    background: #5ba503 !important;
    color: #fff !important;
    font-weight: 700 !important;
}

/* --- 2. PAGINATION DESIGN (Modern Squares) --- */
.woocommerce-pagination ul {
    display: flex !important;
    justify-content: center !important;
    gap: 10px !important;
    border: none !important;
}

.woocommerce-pagination ul li {
    border: none !important;
    overflow: hidden !important;
}

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    background: #fff !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    /* Soft square */
    color: #333 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    font-size: 1rem !important;
    transition: all 0.2s ease !important;
}

.woocommerce-pagination ul li a:hover,
.woocommerce-pagination ul li span.current {
    background: #5ba503 !important;
    /* Theme Green */
    color: #fff !important;
    border-color: #5ba503 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(91, 165, 3, 0.3);
}

/* --- 3. FOOTER READABILITY FIX --- */
.site-footer {
    background-color: #f8f9fa !important;
    /* Light Gray Background */
    color: #333 !important;
    /* Dark Text */
    padding-top: 60px !important;
    border-top: 1px solid #e5e5e5 !important;
    margin-top: 0 !important;
}

.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer .widget-title {
    color: #222 !important;
    /* Dark Headings */
    border-bottom: 2px solid #5ba503 !important;
}

.site-footer a {
    color: #555 !important;
}

.site-footer a:hover {
    color: #5ba503 !important;
}

.site-footer p,
.site-footer li,
.site-footer span {
    color: #444 !important;
}

/* ================================================= */
/* === MAĞAZA SAYFASI FİNAL DÜZENİ (TAM PAKET) === */
/* ================================================= */

/* --- 1. MASAÜSTÜ AYARLARI --- */
.shop-container {
    margin: 0 !important;
    margin-left: 650px !important;
    /* Kullanıcı tercihi: Soldan büyük boşluk */
    max-width: 95% !important;
    width: 1500px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
}

/* Footer Gizleme (Kesin Çözüm) */
.post-type-archive-product footer,
.post-type-archive-product .site-footer,
.post-type-archive-product #colophon,
.post-type-archive-product .footer-widgets,
.post-type-archive-product .main-footer,
.tax-product_cat footer,
.tax-product_cat .site-footer,
.woocommerce-shop footer {
    display: none !important;
}

/* Genel Hizalama */
.shop-content-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 40px !important;
    align-items: flex-start !important;
}

/* Sol Menü (Sidebar) */
.shop-sidebar-area {
    width: 280px !important;
    min-width: 280px !important;
    display: block !important;
}

/* Ürün Izgarası (Masaüstü: 3'lü) */
.products-grid-wrapper {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 25px !important;
}

/* ================================================= */
/* === MOBİL CİHAZ AYARLARI (TELEFONLAR) === */
/* ================================================= */
@media (max-width: 768px) {

    /* 1. Sayfayı Ekrana Oturt (650px boşluğu iptal et) */
    .shop-container {
        margin: 0 !important;
        margin-left: 0 !important;
        width: 100% !important;
        padding: 10px !important;
    }

    /* 2. Ürünleri 2 Sütun Yap (Ferah Görünüm) */
    .products-grid-wrapper {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    /* 3. Menüyü Gizle (Ürünlere yer kalsın) */
    .shop-sidebar-area {
        display: none !important;
    }

    /* 4. Başlıkları Küçült (Sığsın) */
    .product-item-wrapper h2,
    .woocommerce-loop-product__title {
        font-size: 13px !important;
        line-height: 1.3 !important;
        margin-bottom: 5px !important;
        min-height: 35px;
        /* Hizayı korumak için */
    }

    .price {
        font-size: 14px !important;
        margin-bottom: 5px !important;
    }

    /* 5. Butonları Kibarlaştır */
    .button.add_to_cart_button,
    .woocommerce a.button {
        font-size: 11px !important;
        padding: 6px 0 !important;
        width: 100% !important;
        text-align: center !important;
    }

    /* 6. Kart İçi Düzen */
    .product-item-wrapper {
        padding: 8px !important;
    }

    /* Yan yana dizilimi boz, alt alta al (Zaten sidebar gizli ama garanti olsun) */
    .shop-content-row {
        flex-direction: column !important;
    }
}
/* --- GLOBAL PRODUCT CARD STYLES (Shop & Related Products) --- */
.product-item-wrapper {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    padding: 15px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    text-align: center;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-item-wrapper:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    transform: translateY(-5px);
}

.product-item-wrapper a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-item-wrapper img {
    width: 100%;
    height: 250px; /* Consistent height */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* Title */
.product-item-wrapper .woocommerce-loop-product__title {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
    min-height: 44px; /* Align titles */
}

/* Price */
.product-item-wrapper .price {
    display: block;
    color: #5ba503; /* Theme Green */
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.product-item-wrapper .price del {
    color: #999;
    font-weight: 400;
    font-size: 0.9rem;
    margin-right: 5px;
}

/* Add to Cart Button */
.product-item-wrapper .button {
    width: 100%;
    background-color: #f4f4f4;
    color: #333;
    padding: 10px 0;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-block;
    text-align: center;
}

.product-item-wrapper .button:hover {
    background-color: #5ba503;
    color: #fff;
}

/* Mobile Adjustments for standardization */
@media (max-width: 768px) {
    .product-item-wrapper {
        padding: 10px;
    }
    
    .product-item-wrapper img {
        height: 160px;
    }
    
    .product-item-wrapper .woocommerce-loop-product__title {
        font-size: 0.9rem;
        min-height: 38px;
    }
}


/* --- HOMEPAGE SLIDER CARD BUTTONS --- */
.fidan-card .button {
    display: inline-block;
    width: 100%;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 0.75rem; /* rounded-xl */
    color: white;
    font-weight: bold;
    margin-top: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
}

.fidan-card .button:hover {
    background: #A4C639; /* fidan-lime */
    color: black;
    border-color: #A4C639;
}

.fidan-card .button.loading {
    opacity: 0.7;
    cursor: wait;
}

.fidan-card .button.added::after {
    font-family: WooCommerce;
    content: '\e017';
    margin-left: 0.5em;
}

