/* ================================
   WooCommerce Base Overrides
   ================================ */

/* WC Default Reset */
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
    margin: 0;
}

.woocommerce .woocommerce-breadcrumb {
    display: none;
}

/* Tek ürün sayfası: WC varsayılan çıktılarını gizle */
.single-product .product > .product_title.entry-title,
.single-product .product > .price,
.single-product .product > .woocommerce-product-details__short-description,
.single-product .product > .cart:not(.urun-actions .cart),
.single-product .product > .product_meta,
.single-product .product > .woocommerce-tabs,
.single-product .product > .woocommerce-product-gallery,
.single-product .summary.entry-summary,
.single-product .woocommerce-product-gallery--with-images {
    display: none !important;
}

/* h1.product_title varsayılan WC başlığını gizle (Zentura kendi h1'ini oluşturur) */
h1.product_title.entry-title {
    display: none !important;
}

/* WC varsayılan quantity + add-to-cart: sadece Zentura formu göster */
.single-product .product > form.cart {
    display: none !important;
}

/* WC varsayılan tabs */
.single-product .woocommerce-tabs.wc-tabs-wrapper {
    display: none !important;
}

/* WC varsayılan related products */
.single-product .related.products {
    display: none !important;
}

.woocommerce-page .woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-page .woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-page .woocommerce-notices-wrapper .woocommerce-error {
    max-width: var(--zentura-max-width);
    margin: 1rem auto;
    padding: 1rem 1.5rem;
    border-radius: var(--zentura-border-radius-8);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    border: 1px solid var(--zentura-border);
    background: var(--zentura-secondary);
    color: var(--zentura-primary);
}

.woocommerce-page .woocommerce-notices-wrapper .woocommerce-message::before,
.woocommerce-page .woocommerce-notices-wrapper .woocommerce-info::before {
    color: var(--zentura-accent);
}

.woocommerce-page .woocommerce-notices-wrapper .woocommerce-message .button,
.woocommerce-page .woocommerce-notices-wrapper .woocommerce-info .button {
    background: var(--zentura-primary);
    color: var(--zentura-secondary);
    border-radius: var(--zentura-border-radius-5);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    text-decoration: none;
    transition: var(--zentura-transition);
}

.woocommerce-page .zentura-header {
    padding: 1rem 0;
}

.woocommerce-page .zentura-logo-img {
    height: 52px;
    max-height: 52px;
    width: auto;
    display: block;
    object-fit: contain;
}

.woocommerce-page .zentura-footer {
    padding: 2.75rem 0 0;
}

.woocommerce-page .zentura-footer-top {
    padding-bottom: 2rem;
}

.woocommerce-page .zentura-footer-grid {
    gap: 1.75rem;
}

.woocommerce-page .zentura-footer-logo-img {
    height: 48px;
    max-height: 48px;
    width: auto;
    padding: 6px 12px;
    display: block;
    object-fit: contain;
}

/* ================================
   Homepage Widget: Products
   ================================ */

.zentura-products-section {
    padding: 3.5rem 2rem;
    background: #ffffff;
}

.zentura-products-section--category-showcase {
    padding-top: 1.75rem;
    padding-bottom: 1.75rem;
}

.zentura-products-container {
    max-width: var(--zentura-max-width);
    margin: 0 auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.zentura-products-topbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.zentura-products-header {
    text-align: left;
    margin-bottom: 0;
}

.zentura-products-title {
    font-size: clamp(1.8rem, 4vw, 2.25rem);
    font-weight: 800;
    color: var(--zentura-primary);
    line-height: 1.2;
    margin: 0;
}

.zentura-products-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.8rem;
    padding: 0.35rem 0.7rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 999px;
    background: var(--zentura-light-gray);
    color: var(--zentura-gray);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.zentura-products-description {
    max-width: 44rem;
    margin-top: 0.9rem;
    color: var(--zentura-gray);
    font-size: 0.98rem;
    line-height: 1.7;
}

.zentura-products-description p {
    margin: 0;
}

.zentura-products-description p + p {
    margin-top: 0.6rem;
}

.zentura-products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    align-items: stretch;
}

.zentura-products-controls {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.zentura-products-nav {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid var(--zentura-border);
    background: #ffffff;
    color: var(--zentura-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.zentura-products-nav:hover {
    border-color: rgba(0, 0, 0, 0.35);
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.zentura-products-all-btn {
    white-space: nowrap;
}

.zentura-product-slide {
    min-width: 0;
    display: flex;
    height: 100%;
}

.zentura-product-card {
    background: var(--zentura-secondary);
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.zentura-product-card:hover {
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.16);
    transform: translateY(-4px);
}

.zentura-product-card-visual {
    position: relative;
    min-height: 0;
    text-decoration: none;
    height: 100%;
}

a.zentura-product-image {
    display: block;
    text-decoration: none;
    color: inherit;
}

.zentura-product-title a {
    color: inherit;
    text-decoration: none;
}

.zentura-product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #f1f5f9;
}

.zentura-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.zentura-product-card:hover .zentura-product-image img {
    transform: scale(1.05);
}

.zentura-product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.42rem 0.72rem;
    background: rgba(17, 17, 17, 0.88);
    color: var(--zentura-secondary);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    border-radius: 10px;
    z-index: 2;
}

.zentura-product-badge-sale {
    background: var(--zentura-accent);
    color: #fff;
}

.zentura-product-content {
    padding: 1rem 1rem 1.05rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.zentura-product-category {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0;
    border-radius: 0;
    background: transparent;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--zentura-accent);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.7rem;
}

.zentura-product-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--zentura-primary);
    margin: 0 0 0.95rem 0;
    line-height: 1.45;
    min-height: calc(1em * 1.45 * 2);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.zentura-product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    flex-wrap: nowrap;
}

.zentura-product-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--zentura-primary);
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 0.4rem;
    align-items: baseline;
    min-width: 0;
    overflow: hidden;
}

.zentura-product-price del {
    font-size: 0.85rem;
    color: var(--zentura-gray);
    font-weight: 400;
}

.zentura-product-price ins {
    text-decoration: none;
    color: var(--zentura-accent);
}

.zentura-product-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    background: #111111;
    font-size: 0.8rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.zentura-product-card:hover .zentura-product-btn {
    background: var(--zentura-accent);
}

.zentura-product-card:hover .zentura-product-btn svg {
    transform: translateX(3px);
}

.zentura-product-btn svg {
    transition: transform 0.3s ease;
}

/* Ajax Add to Cart button */
.zentura-product-actions {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-shrink: 0;
}

.zentura-product-btn-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--zentura-border, #e5e5e5);
    border-radius: 10px;
    background: var(--zentura-secondary, #fff);
    color: var(--zentura-primary, #111);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    flex-shrink: 0;
}

.zentura-product-btn-cart:hover {
    background: var(--zentura-accent, #6366f1);
    color: #fff;
    border-color: var(--zentura-accent, #6366f1);
}

.zentura-product-btn-cart.is-loading {
    opacity: 0.7;
    pointer-events: none;
}

.zentura-product-btn-cart.is-added {
    background: #22c55e;
    color: #fff;
    border-color: #22c55e;
}

/* Overlay variant (inside card-wrapped links) */
.zentura-product-slide,
.zentura-showcase-product-card {
    position: relative;
}

.zentura-product-btn-cart-overlay {
    position: absolute;
    bottom: 14px;
    right: 14px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    background: var(--zentura-secondary, #fff);
    width: 44px;
    height: 44px;
    font-size: 0.85rem;
}

.zentura-products-footer {
    text-align: center;
    margin-top: 2.5rem;
}

@media (max-width: 992px) {
    .zentura-products-topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .zentura-products-controls {
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .zentura-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .zentura-products-container {
        padding: 1rem;
        border-radius: 0;
    }

    .zentura-products-nav {
        width: 40px;
        height: 40px;
    }

    .zentura-product-card-visual {
        min-height: 0;
    }

    .zentura-products-grid {
        grid-template-columns: 1fr;
    }
}


/* ================================
   Homepage Widget: Categories
   ================================ */

.zentura-categories-section {
    padding: 3.5rem 2rem;
    background: var(--zentura-light-gray);
}

.zentura-categories-container {
    max-width: var(--zentura-max-width);
    margin: 0 auto;
}

.zentura-categories-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.zentura-categories-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--zentura-primary);
    line-height: 1.2;
    margin: 0 0 1rem 0;
}

.zentura-categories-description {
    font-size: 1.05rem;
    color: var(--zentura-gray);
    line-height: 1.7;
    max-width: 620px;
    margin: 0 auto;
}

.zentura-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

.zentura-category-card {
    background: var(--zentura-secondary);
    border: 1px solid var(--zentura-border);
    border-radius: var(--zentura-border-radius-12);
    padding: 2rem 1.5rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    position: relative;
}

.zentura-category-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border-color: var(--zentura-primary);
    transform: translateY(-4px);
}

.zentura-category-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--zentura-light-gray);
    border-radius: var(--zentura-border-radius-12);
    font-size: 1.5rem;
    color: var(--zentura-primary);
    transition: all 0.3s ease;
}

.zentura-category-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: var(--zentura-border-radius-8);
}

.zentura-category-card:hover .zentura-category-icon {
    background: var(--zentura-primary);
    color: var(--zentura-secondary);
    transform: scale(1.1);
}

.zentura-category-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--zentura-primary);
    margin: 0;
}

.zentura-category-count {
    font-size: 0.8rem;
    color: var(--zentura-gray);
    font-weight: 500;
}

.zentura-category-arrow {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: var(--zentura-gray);
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.3s ease;
}

.zentura-category-card:hover .zentura-category-arrow {
    opacity: 1;
    transform: translateX(0);
}


/* ================================
   Homepage Widget: Best Sellers
   ================================ */

.zentura-bestsellers-section {
    padding: 3.5rem 2rem;
    background: #ffffff;
}

.zentura-bestsellers-container {
    max-width: var(--zentura-max-width);
    margin: 0 auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.zentura-bestsellers-header {
    text-align: left;
    margin-bottom: 1.5rem;
}

.zentura-bestsellers-title {
    font-size: clamp(1.8rem, 4vw, 2.25rem);
    font-weight: 800;
    color: var(--zentura-primary);
    line-height: 1.2;
    margin: 0 0 1rem 0;
}

.zentura-bestsellers-description {
    font-size: 0.98rem;
    color: var(--zentura-gray);
    line-height: 1.65;
    max-width: 560px;
    margin: 0;
}

.zentura-bestsellers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.zentura-bestsellers-grid.is-single {
    grid-template-columns: minmax(320px, 420px);
    justify-content: center;
}

.zentura-bestseller-card {
    background: var(--zentura-secondary);
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 100%;
}

.zentura-bestseller-card:hover {
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.16);
    transform: translateY(-4px);
}

.zentura-bestseller-rank {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.45rem 0.7rem;
    background: rgba(17, 17, 17, 0.88);
    color: var(--zentura-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    border-radius: 10px;
    z-index: 2;
}

.zentura-bestseller-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #f1f5f9;
}

.zentura-bestseller-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.zentura-bestseller-card:hover .zentura-bestseller-image img {
    transform: scale(1.05);
}

.zentura-bestseller-content {
    padding: 1rem 1rem 1.05rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.zentura-bestseller-meta-top {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.55rem 0.9rem;
    margin-bottom: 0.8rem;
}

.zentura-bestseller-category {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0;
    border-radius: 0;
    background: transparent;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--zentura-accent);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.zentura-bestseller-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--zentura-primary);
    margin: 0 0 0.7rem 0;
    line-height: 1.45;
}

.zentura-bestseller-title a {
    color: inherit;
    text-decoration: none;
}

.zentura-bestseller-excerpt {
    font-size: 0.84rem;
    color: var(--zentura-gray);
    line-height: 1.6;
    margin: 0 0 0.95rem 0;
    max-width: 32ch;
}

.zentura-bestseller-sales {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0;
    border-radius: 0;
    background: transparent;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--zentura-gray);
    white-space: nowrap;
}

.zentura-bestseller-sales i {
    font-size: 0.7rem;
    color: var(--zentura-accent);
}

.zentura-bestseller-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    gap: 0.5rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    flex-wrap: nowrap;
}

.zentura-bestseller-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--zentura-primary);
    min-width: 0;
    overflow: hidden;
}

.zentura-bestseller-price del {
    font-size: 0.85rem;
    color: var(--zentura-gray);
    font-weight: 400;
}

.zentura-bestseller-price ins {
    text-decoration: none;
    color: var(--zentura-accent);
}

.zentura-btn-sm {
    padding: 0.55rem 0.82rem;
    font-size: 0.8rem;
    border-radius: 999px;
}

.zentura-bestseller-footer .zentura-product-actions {
    flex-shrink: 0;
}


/* ================================
   Responsive
   ================================ */

@media (max-width: 768px) {
    .zentura-products-section,
    .zentura-categories-section,
    .zentura-bestsellers-section {
        padding: 3rem 1rem;
    }

    .zentura-products-grid {
        grid-template-columns: 1fr;
    }

    .zentura-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .zentura-bestsellers-grid {
        grid-template-columns: 1fr;
    }

    .zentura-bestsellers-grid.is-single {
        grid-template-columns: 1fr;
    }

    .zentura-bestsellers-container {
        padding: 0;
        border-radius: 0;
    }
}

@media (max-width: 480px) {
    .zentura-products-grid {
        grid-template-columns: 1fr;
    }

    .zentura-categories-grid {
        grid-template-columns: 1fr;
    }
}


/* ================================
   WPI Product Type Badge (Cards)
   ================================ */

.zentura-product-type-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.65rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-radius: 8px;
    z-index: 2;
}

.zentura-ptype-theme {
    background: rgba(139, 92, 246, 0.9);
    color: #fff;
}

.zentura-ptype-plugin {
    background: rgba(16, 185, 129, 0.9);
    color: #fff;
}

.zentura-product-badge-update {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
}

.zentura-product-version {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--zentura-gray);
    background: var(--zentura-light-gray);
    border: 1px solid var(--zentura-border);
    padding: 0.15rem 0.45rem;
    border-radius: 5px;
    margin-left: 0.4rem;
    vertical-align: middle;
    letter-spacing: 0.02em;
}

