/*
Theme Name: Storefront Child
Template: storefront
Version: 1.0
*/

/* ══════════════════════════════════
   הסתר הכל מהכותרת חוץ מחיפוש
══════════════════════════════════ */

.site-branding,
.site-header-cart,
.main-navigation,
.storefront-product-search,
.widget_product_search,
.storefront-handheld-footer-bar,
header .woocommerce-product-search,
.secondary-navigation {
    display: none !important;
}

/* ══════════════════════════════════
   כותרת - רק שורת חיפוש
══════════════════════════════════ */

.site-header {
    background: #1a2332 !important;
    padding: 0 !important;
    border-bottom: 3px solid #e74c3c;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.site-header .col-full {
    max-width: 100% !important;
    width: 100% !important;
    padding: 14px 30px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

/* ══════════════════════════════════
   שורת חיפוש
══════════════════════════════════ */

.topbiz-search {
    width: 100%;
    max-width: 600px;
}

.topbiz-search form {
    display: flex !important;
    background: #fff !important;
    border-radius: 30px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 15px rgba(0,0,0,0.3) !important;
}

.topbiz-search input[type="search"] {
    flex: 1 !important;
    border: none !important;
    outline: none !important;
    padding: 12px 22px !important;
    font-size: 15px !important;
    background: transparent !important;
    box-shadow: none !important;
    direction: rtl !important;
    color: #333 !important;
}

.topbiz-search input[type="search"]::placeholder {
    color: #aaa !important;
}

.topbiz-search button {
    background: #e74c3c !important;
    border: none !important;
    color: #fff !important;
    padding: 12px 26px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
    white-space: nowrap;
}

.topbiz-search button:hover {
    background: #c0392b !important;
}

/* ══════════════════════════════════
   תוכן - פריסה מלאה
══════════════════════════════════ */

.col-full {
    max-width: 100% !important;
    width: 100% !important;
}

.site-content {
    padding: 0 !important;
}

.site-content .col-full {
    padding: 0 !important;
}

.content-area {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* הסר כותרת עמוד מיותרת */
.page-title,
.entry-header,
.woocommerce-breadcrumb {
    display: none !important;
}

/* ══════════════════════════════════
   מוצרים
══════════════════════════════════ */

ul.products li.product {
    border-radius: 10px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07) !important;
    transition: box-shadow 0.2s, transform 0.2s !important;
    background: #fff !important;
    border: 1px solid #eee !important;
}

ul.products li.product:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.13) !important;
    transform: translateY(-3px) !important;
}

.woocommerce a.button,
.woocommerce button.button {
    background: #e74c3c !important;
    color: #fff !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    border: none !important;
}

.woocommerce a.button:hover { background: #c0392b !important; }

/* ══════════════════════════════════
   הסתרת מחבר ותאריך
══════════════════════════════════ */

.entry-meta, .posted-on, .byline, .entry-footer, .post-edit-link {
    display: none !important;
}

/* ══════════════════════════════════
   פוטר
══════════════════════════════════ */

.site-footer {
    background: #1a2332 !important;
    color: #aaa !important;
    direction: rtl !important;
    text-align: center;
    padding: 20px !important;
    border-top: 3px solid #e74c3c;
}

.site-footer a { color: #e74c3c !important; }

/* ══════════════════════════════════
   מובייל
══════════════════════════════════ */

@media (max-width: 768px) {
    .site-header .col-full { padding: 10px 15px !important; }
    .topbiz-search { max-width: 100%; }
}

/* ══════════════════════════════════
   Placeholder תמונת מוצר
══════════════════════════════════ */

.topbiz-placeholder-wrap {
    display: block !important;
    text-decoration: none !important;
    margin-bottom: 10px;
}

.topbiz-placeholder {
    background: linear-gradient(135deg, #f0f4f8 0%, #e8edf2 100%);
    border: 2px dashed #c0cdd8;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 15px;
    min-height: 180px;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
}

.topbiz-placeholder:hover {
    background: linear-gradient(135deg, #e8f4fd 0%, #d6eaf8 100%);
    border-color: #e74c3c;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231,76,60,0.15);
}

.topbiz-placeholder-icon {
    font-size: 36px;
    margin-bottom: 10px;
    display: block;
}

.topbiz-placeholder-text {
    font-size: 14px;
    color: #555;
    font-weight: 600;
    line-height: 1.5;
    display: block;
    margin-bottom: 12px;
    direction: rtl;
}

.topbiz-placeholder-btn {
    background: #e74c3c;
    color: #fff !important;
    padding: 7px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    display: inline-block;
    transition: background 0.2s;
}

.topbiz-placeholder:hover .topbiz-placeholder-btn {
    background: #c0392b;
}

/* דף מוצר בודד - גדול יותר */
.topbiz-placeholder-single {
    width: 100%;
    max-width: 500px;
    margin-bottom: 20px;
}

.topbiz-placeholder.large {
    min-height: 300px;
    padding: 40px 20px;
}

.topbiz-placeholder.large .topbiz-placeholder-icon {
    font-size: 56px;
}

.topbiz-placeholder.large .topbiz-placeholder-text {
    font-size: 16px;
}

.topbiz-placeholder.large .topbiz-placeholder-btn {
    font-size: 15px;
    padding: 10px 25px;
}

/* ══════════════════════════════════
   פריסת דף מוצר בודד
══════════════════════════════════ */

/* הסתר gallery מקורי */
.woocommerce-product-gallery {
    display: none !important;
}

/* wrapper שמכיל תמונה + טקסט */
.topbiz-product-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 30px !important;
    padding: 20px !important;
    width: 100% !important;
    direction: rtl !important;
}

/* placeholder - צד ימין */
.topbiz-single-placeholder {
    flex: 0 0 280px !important;
    width: 280px !important;
}

.topbiz-single-placeholder img {
    width: 280px !important;
    height: 220px !important;
    display: block !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12) !important;
}

/* summary - צד שמאל, ממולא */
.topbiz-product-row .summary {
    flex: 1 !important;
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: right !important;
    direction: rtl !important;
}

/* כותרת, מחיר - יישור ימין */
.topbiz-product-row .summary h1,
.topbiz-product-row .summary .price,
.topbiz-product-row .summary p,
.topbiz-product-row .summary .short-description {
    text-align: right !important;
    direction: rtl !important;
}

/* tabs ו-related מתחת לכל */
.woocommerce div.product .woocommerce-tabs,
.woocommerce div.product .related,
.woocommerce div.product .upsells {
    clear: both !important;
    width: 100% !important;
    padding: 0 20px !important;
}

/* מובייל */
@media (max-width: 768px) {
    .topbiz-product-row {
        flex-direction: column !important;
        padding: 12px !important;
    }
    .topbiz-single-placeholder {
        width: 100% !important;
        flex: none !important;
    }
    .topbiz-single-placeholder img {
        width: 100% !important;
        height: auto !important;
        max-height: 220px !important;
    }
}

/* יישור טקסט disclaimer לימין */
.woocommerce div.product div.summary p,
.woocommerce div.product div.summary .short-description,
.woocommerce div.product div.summary .woocommerce-product-details__short-description {
    text-align: right !important;
    direction: rtl !important;
}

/* ══════════════════════════════════
   רווחים כלליים - קל ואחיד
══════════════════════════════════ */

ul.products {
    gap: 12px !important;
    margin: 0 !important;
    padding: 10px !important;
}

ul.products li.product {
    margin: 0 !important;
    padding: 10px !important;
}

/* ══════════════════════════════════
   מוצרים קשורים - 5 בשורה תקין
══════════════════════════════════ */

.related.products,
.upsells.products {
    padding: 0 10px !important;
    margin-top: 30px !important;
    clear: both !important;
}

.related.products h2,
.upsells.products h2 {
    font-size: 20px !important;
    margin-bottom: 12px !important;
    direction: rtl !important;
}

.related.products ul.products,
.upsells.products ul.products {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 12px !important;
    padding: 0 !important;
}

.related.products ul.products li.product,
.upsells.products ul.products li.product {
    padding: 10px !important;
    margin: 0 !important;
    width: auto !important;
    float: none !important;
}

.related.products ul.products li.product .topbiz-placeholder-wrap img,
.upsells.products ul.products li.product .topbiz-placeholder-wrap img {
    width: 100% !important;
    height: 130px !important;
    object-fit: contain !important;
}

.related.products ul.products li.product .woocommerce-loop-product__title,
.upsells.products ul.products li.product .woocommerce-loop-product__title {
    font-size: 13px !important;
    line-height: 1.4 !important;
    margin: 6px 0 4px !important;
    direction: rtl !important;
}

.related.products ul.products li.product .price,
.upsells.products ul.products li.product .price {
    font-size: 14px !important;
}

.related.products ul.products li.product .button,
.upsells.products ul.products li.product .button {
    font-size: 12px !important;
    padding: 6px 10px !important;
    width: 100% !important;
    text-align: center !important;
}

/* הגבל ל-10 מוצרים */
.related.products ul.products li.product:nth-child(n+11),
.upsells.products ul.products li.product:nth-child(n+11) {
    display: none !important;
}

@media (max-width: 768px) {
    .related.products ul.products,
    .upsells.products ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
