/*
 Theme Name:   Twenty Twenty-Five TP4R
 Theme URI:    https://bytech.co.il
 Description:  Child theme for Twenty Twenty-Five
 Author:       Bytech
 Author URI:   https://bytech.co.il
 Template:     twentytwentyfive
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  twentytwentyfive-tp4r
*/

/* ==========================================================================
   Custom Styles - Add your custom CSS below this line
   ========================================================================== */

.home main {
   margin-top: 0 !important;
}

p:empty {
  display: none;
}

/* ========================================
   STYLE 54: Silk Smooth
======================================== */
.tp4r-center-silk {
   font-size: 2rem;
   font-weight: 400;
   color: #1a1a1a;
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 20px;
   font-style: italic;
}

.tp4r-center-silk::before,
.tp4r-center-silk::after {
   content: '';
   flex: 1;
   max-width: 120px;
   height: 3px;
   background: linear-gradient(90deg, transparent, #d4af37);
   border-radius: 3px;
}

.tp4r-center-silk::after {
   background: linear-gradient(90deg, #d4af37, transparent);
}


.page-id-206 h1.wp-block-post-title {
   display: none;
}
.page-id-206 main {
   margin-top: 20px !important;
}
.page-id-206 .wp-block-group,
.page-id-202 .wp-block-group {
   margin-top: 0 !important;
   padding-top: 0 !important;
}

.tp-clubigo-shop-points {
   font-size: 12px;
   margin-top: 10px;
}

.wp-block-breadcrumbs {
   margin-top: 20px !important;
}

.checkout-button {
    box-sizing: border-box;
}

/* .checkout-button {
   background-color: #000;
   color: #fff !important;
} */

/* =============================================
   TP4R Post Template Styles
   תבנית פוסט מעוצבת
   ============================================= */

/* Wrapper */
.tp4r-post-wrapper {
    direction: rtl;
    max-width: 820px;
    margin: 0 auto 60px;
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    color: #2d2d2d;
    line-height: 1.8;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}

/* Hero Image */
.tp4r-post-hero {
    position: relative;
    width: 100%;
    height: 420px;
    overflow: hidden;
}

.tp4r-post-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.tp4r-post-wrapper:hover .tp4r-post-hero-img {
    transform: scale(1.03);
}

.tp4r-post-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

/* Container */
.tp4r-post-container {
    padding: 10px 45px 45px;
}

/* Header */
.tp4r-post-header {
    text-align: center;
    margin-bottom: 35px;
}

/* Category Badge */
.tp4r-post-category {
    display: inline-block;
    background: linear-gradient(135deg, #1a1a1a, #333333);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 18px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
    text-transform: uppercase;
}

/* Title */
.tp4r-post-title {
    font-size: 24px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 18px;
    line-height: 1.35;
}

/* Meta */
.tp4r-post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 13px;
    color: #999;
    margin-bottom: 20px;
}

.tp4r-post-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.tp4r-post-meta-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.tp4r-post-meta-divider {
    color: #ddd;
    font-size: 10px;
}

/* Header Line */
.tp4r-post-header-line {
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #c9a96e, #e0c68a);
    margin: 0 auto;
    border-radius: 3px;
}

/* Content */
.tp4r-post-content {
    font-size: 16px;
    line-height: 1.9;
    color: #444;
}

.tp4r-post-content p {
    margin-bottom: 20px;
}

.tp4r-post-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 40px 0 16px;
    padding-right: 16px;
    border-right: 3px solid #c9a96e;
}

.tp4r-post-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2d2d2d;
    margin: 30px 0 12px;
}

.tp4r-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 25px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.tp4r-post-content a {
    color: #c9a96e;
    text-decoration: none;
    border-bottom: 1px solid rgba(201, 169, 110, 0.3);
    transition: border-color 0.3s;
}

.tp4r-post-content a:hover {
    border-bottom-color: #c9a96e;
}

.tp4r-post-content blockquote {
    margin: 30px 0;
    padding: 20px 25px;
    background: #faf8f5;
    border-right: 4px solid #c9a96e;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #666;
}

.tp4r-post-content ul,
.tp4r-post-content ol {
    padding-right: 25px;
    margin-bottom: 20px;
}

.tp4r-post-content li {
    margin-bottom: 8px;
}

/* =============================================
   Responsive
   ============================================= */

@media (max-width: 768px) {

    .tp4r-post-wrapper {
        border-radius: 0;
        box-shadow: none;
    }

    .tp4r-post-hero {
        height: 260px;
    }

    .tp4r-post-container {
        padding: 10px 22px 35px;
    }

    .tp4r-post-title {
        font-size: 26px;
    }

    .tp4r-post-content {
        font-size: 15px;
    }

    .tp4r-post-content h2 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {

    .tp4r-post-hero {
        height: 200px;
    }

    .tp4r-post-title {
        font-size: 22px;
    }

    .tp4r-post-container {
        padding: 8px 16px 28px;
    }
}

/* =============================================
   TP4R Category Archive Styles
   תבנית עמוד קטגוריה
   ============================================= */

/* Fix WordPress wpautop inside grid */
.tp4r-post-grid > p,
.tp4r-post-grid > br {
    display: none;
}

.tp4r-post-grid > a.tp4r-post-card:empty {
    display: none;
}

.tp4r-post-card-meta br,
.tp4r-post-card-body br {
    display: none;
}

/* Archive Wrapper */
.tp4r-post-archive {
    direction: rtl;
    max-width: 1100px;
    margin: 0 auto 60px;
    padding: 0 20px;
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
}

/* ---- Category Header ---- */
.tp4r-post-archive-header {
    text-align: center;
    padding: 50px 0 45px;
}

.tp4r-post-archive-badge {
    display: inline-block;
    background: linear-gradient(135deg, #1a1a1a, #333333);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 20px;
    border-radius: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.tp4r-post-archive-title {
    font-size: 38px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 12px;
    letter-spacing: -0.5px;
}

.tp4r-post-archive-desc {
    font-size: 16px;
    color: #888;
    max-width: 520px;
    margin: 0 auto 20px;
    line-height: 1.7;
}

.tp4r-post-archive-line {
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #c9a96e, #e0c68a);
    margin: 0 auto 14px;
    border-radius: 3px;
}

.tp4r-post-archive-count {
    font-size: 13px;
    color: #bbb;
    font-weight: 500;
}

/* ---- Posts Grid ---- */
.tp4r-post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* ---- Post Card ---- */
.tp4r-post-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.04);
    text-decoration: none;
    color: inherit;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.tp4r-post-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

/* Card Image */
.tp4r-post-card-img-wrap {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.tp4r-post-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.tp4r-post-card:hover .tp4r-post-card-img {
    transform: scale(1.07);
}

.tp4r-post-card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f3f0;
    color: #ccc;
}

.tp4r-post-card-img-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.6) 0%, transparent 100%);
    pointer-events: none;
}

/* Card Body */
.tp4r-post-card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 22px 22px 24px;
}

/* Card Meta */
.tp4r-post-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #aaa;
    margin-bottom: 10px;
}

.tp4r-post-card-meta-dot {
    font-size: 8px;
    color: #ddd;
}

/* Card Title */
.tp4r-post-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px;
    line-height: 1.45;
    transition: color 0.3s;
}

.tp4r-post-card:hover .tp4r-post-card-title {
    color: #c9a96e;
}

/* Card Excerpt */
.tp4r-post-card-excerpt {
    font-size: 14px;
    color: #777;
    line-height: 1.65;
    margin: 0 0 16px;
    flex-grow: 1;
}

/* Read More */
.tp4r-post-card-read {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #c9a96e;
    transition: gap 0.3s;
}

.tp4r-post-card:hover .tp4r-post-card-read {
    gap: 10px;
}

/* =============================================
   Responsive
   ============================================= */

@media (max-width: 960px) {
    .tp4r-post-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }
}

@media (max-width: 640px) {

    .tp4r-post-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tp4r-post-archive-header {
        padding: 35px 0 30px;
    }

    .tp4r-post-archive-title {
        font-size: 28px;
    }

    .tp4r-post-card-img-wrap {
        height: 200px;
    }

    .tp4r-post-card-body {
        padding: 18px 18px 20px;
    }

    .tp4r-post-card-title {
        font-size: 17px;
    }
}

.wc-block-components-product-price { display: inline-flex; align-items: center; background: #f8f8f8; border-radius: 50px; padding: 6px; border: 2px solid #eee; } .wc-block-components-product-price del { text-decoration: none; order: 2; padding: 8px 18px; } .wc-block-components-product-price del .woocommerce-Price-amount { font-size: 14px; color: #aaa; text-decoration: line-through; } .wc-block-components-product-price ins { text-decoration: none; order: 1; background: #1a1a1a; border-radius: 50px; padding: 10px 22px; } .wc-block-components-product-price ins .woocommerce-Price-amount { font-size: 20px; font-weight: 800; color: #fff; }

.tp4r-product__price {
    display: flex;
    align-items: center;
    gap: 12px;
    direction: rtl;
}
.tp4r-product__price del {
    text-decoration: none;
    order: 2;
}
.tp4r-product__price del .woocommerce-Price-amount {
    font-size: 13px;
    color: #bbb;
    text-decoration: line-through;
}
.tp4r-product__price ins {
    text-decoration: none;
    order: 1;
}
.tp4r-product__price ins .woocommerce-Price-amount {
    font-size: 22px;
    font-weight: 900;
    color: #1a1a1a;
}
.tp4r-product__price > .woocommerce-Price-amount {
    font-size: 22px;
    font-weight: 900;
    color: #1a1a1a;
}

.price-discount-badge {
    order: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    background: #ff6d00;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(255, 109, 0, 0.3);
    padding: 0 5px;
    white-space: nowrap;
    line-height: 1;
}

/* Colored Tag Pills — Product Meta */
.wp-block-woocommerce-product-meta {
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-top: 20px;
}
.wp-block-woocommerce-product-meta .wp-block-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.wc-block-components-product-sku,
.taxonomy-product_cat {
    font-size: 13px;
    color: #888;
}
.wp-block-woocommerce-product-meta .wp-block-post-terms__prefix {
    font-size: 12px;
    font-weight: 700;
    color: #555;
    margin-inline-end: 4px;
}
.wc-block-components-product-sku .sku {
    font-family: monospace;
    font-size: 12px;
    color: #999;
    background: #f0f0f0;
    padding: 3px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}
.taxonomy-product_cat a {
    color: #1a1a1a;
    font-weight: 600;
    text-decoration: none;
    background: #f5f5f5;
    padding: 3px 12px;
    border-radius: 6px;
    transition: background 0.2s;
}
.taxonomy-product_cat a:hover {
    background: #e8e8e8;
}
.taxonomy-product_tag {
    font-size: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.taxonomy-product_tag .wp-block-post-terms__prefix {
    font-size: 12px;
    margin-inline-end: 4px;
}
.taxonomy-product_tag .wp-block-post-terms__separator {
    display: none;
}
.taxonomy-product_tag a {
    font-size: 12px;
    text-decoration: none;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s;
    border: 1px solid transparent;
}
.taxonomy-product_tag a:nth-child(6n+2) { background: #fff3e0; color: #e65100; }
.taxonomy-product_tag a:nth-child(6n+3) { background: #e8f5e9; color: #2e7d32; }
.taxonomy-product_tag a:nth-child(6n+4) { background: #e3f2fd; color: #1565c0; }
.taxonomy-product_tag a:nth-child(6n+5) { background: #fce4ec; color: #c62828; }
.taxonomy-product_tag a:nth-child(6n+6) { background: #f3e5f5; color: #6a1b9a; }
.taxonomy-product_tag a:nth-child(6n+7) { background: #e0f7fa; color: #00695c; }
.taxonomy-product_tag a:hover {
    border-color: currentColor;
    transform: translateY(-1px);
}