/* יישור גובה קוביות מוצרים באסטרה */
.woocommerce ul.products li.product {
    display: flex;
    flex-direction: column;
}

/* עוטף תוכן המוצר */
.woocommerce ul.products li.product .astra-shop-summary-wrap {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* כפתור הוספה לסל תמיד בתחתית */
.woocommerce ul.products li.product .button {
    margin-top: auto;
}
/* ===== כותרת ומידע בסיסי ===== */
.product_title.entry-title {
    font-size: 32px !important;
    color: #1a1a1a !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin-bottom: 16px !important;
    margin-top: 0 !important;
}

/* דירוג וביקורות */
.woocommerce-product-rating {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e0e0e0;
    flex-wrap: wrap;
}

.star-rating {
    color: #ffa500 !important;
    font-size: 18px !important;
}

.woocommerce-review-link {
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.woocommerce-review-link:hover {
    color: #ff6b00;
}

/* SKU */
.product_meta .sku_wrapper {
    color: #999;
    font-size: 14px;
}

/* ===== מלאי ===== */
.stock {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.stock.in-stock {
    background: #d4edda;
    color: #155724;
}

.stock.in-stock:before {
    content: "✓";
    margin-left: 4px;
}

.stock.out-of-stock {
    background: #fff3cd;
    color: #856404;
}

/* ===== מחיר - עיצוב מלא ===== */
.summary .price {
    background: linear-gradient(135deg, #fff5ec 0%, #ffe8d6 100%) !important;
    padding: 25px !important;
    border-radius: 15px !important;
    border: 2px solid #ff6b00 !important;
    margin-bottom: 24px !important;
    display: block !important;
}

.price del {
    color: #999 !important;
    font-size: 25px !important;
    opacity: 1 !important;
    margin-left: 15px;
}

.price del .woocommerce-Price-amount {
    text-decoration: line-through;
}

.price ins {
    background: none !important;
    text-decoration: none !important;
}

.price ins .woocommerce-Price-amount,
.price > .woocommerce-Price-amount {
    font-size: 25px !important;
    color: #ff6b00 !important;
    font-weight: 800 !important;
}

/* תג חיסכון */
.price-save-badge {
    display: inline-block;
    background: #27ae60;
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    margin-right: 10px;
}

/* ===== תג משלוח חינם ===== */
.ap-free-shipping-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
    order: -999 !important; /* מאלץ להיות בראש */
}

.ap-free-shipping-badge i {
    font-size: 18px;
}

/* סגנונות צבעים */
.ap-badge-green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.ap-badge-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.ap-badge-orange {
    background: linear-gradient(135deg, #ff6b00 0%, #ea580c 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(255, 107, 0, 0.3);
}

.ap-badge-red {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

/* אנימציה עדינה */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

/* תיקון מיקום - אחרי מחיר */
.summary .price {
    order: -1000 !important;
}

.summary .ap-free-shipping-badge {
    order: -999 !important;
    width: 100%;
}

.summary {
    display: flex !important;
    flex-direction: column !important;
}

/* ===== תיאור קצר ===== */
.woocommerce-product-details__short-description {
    background: #f8f9fa !important;
    padding: 20px !important;
    border-radius: 10px !important;
    border-right: 4px solid #ff6b00 !important;
    margin-bottom: 24px !important;
    line-height: 1.6;
}

.woocommerce-product-details__short-description p {
    margin-bottom: 0;
}

.woocommerce-product-details__short-description ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.woocommerce-product-details__short-description li {
    position: relative;
    padding-right: 28px;
    margin-bottom: 12px;
    display: flex;
    align-items: start;
}

.woocommerce-product-details__short-description li:before {
    content: "✓";
    position: absolute;
    right: 0;
    color: #ff6b00;
    font-weight: bold;
    font-size: 16px;
    margin-top: 3px;
}

/* ===== כמות ===== */
.quantity {
    margin-bottom: 16px;
}

.quantity .qty {
    width: 70px;
    height: 40px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
}

/* ===== כפתור הוסף לעגלה ===== */
.single_add_to_cart_button {
    width: 100% !important;
    background: linear-gradient(135deg, #ff6b00 0%, #ff8c00 100%) !important;
    color: #fff !important;
    padding: 18px 30px !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 16px;
}

.single_add_to_cart_button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 0, 0.3);
}

.single_add_to_cart_button:before {
    content: "🛒 ";
    margin-left: 8px;
}

/* ===== אופציית התקנה ===== */
.installation-option {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #2196f3;
    margin-bottom: 20px;
}

.installation-option label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.installation-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.installation-option strong {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
}

.installation-details {
    font-size: 14px;
    line-height: 1.6;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(33, 150, 243, 0.3);
}

.installation-price {
    color: #2196f3;
    font-weight: 700;
    font-size: 18px;
    display: block;
    margin-top: 8px;
}

/* ===== קופסת ביקור בחנות ===== */
.store-visit-box {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #fff;
    padding: 25px;
    border-radius: 15px;
    margin-top: 20px;
}

.store-visit-box h3 {
    margin-bottom: 15px;
    font-size: 20px;
    color: #fff;
}

.store-visit-box .store-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.store-visit-box .store-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.store-visit-box .store-info-item i {
    color: #ff6b00;
    width: 20px;
}

.store-visit-box a,
.store-visit-box .btn-store {
    display: inline-block;
    background: #fff;
    color: #2c3e50;
    padding: 12px 25px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.store-visit-box a:hover,
.store-visit-box .btn-store:hover {
    background: #ff6b00;
    color: #fff;
}

/* ===== Meta מוצר ===== */
.product_meta {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    margin-top: 24px;
    font-size: 14px;
}

.product_meta > span {
    display: block;
    margin-bottom: 8px;
    color: #666;
}

.product_meta a {
    color: #ff6b00;
    text-decoration: none;
}

/* ===== טאבים ===== */
.woocommerce-tabs {
    flex: 1 1 100%;
    width: 100%;
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 3px 20px rgba(0,0,0,0.08);
    margin-top: 0;
    margin-bottom: 40px;
}

.woocommerce-tabs .tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
    padding: 0;
    list-style: none;
}

.woocommerce-tabs .tabs li {
    margin: 0;
}

.woocommerce-tabs .tabs li a {
    display: block;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    text-decoration: none;
    position: relative;
    transition: color 0.3s;
}

.woocommerce-tabs .tabs li.active a,
.woocommerce-tabs .tabs li a:hover {
    color: #ff6b00;
}

.woocommerce-tabs .tabs li.active a:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #ff6b00;
}

/* טבלת מפרט */
.woocommerce-product-attributes {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce-product-attributes tr {
    border-bottom: 1px solid #e0e0e0;
}

.woocommerce-product-attributes th,
.woocommerce-product-attributes td {
    padding: 15px 10px;
    text-align: right;
}

.woocommerce-product-attributes th {
    font-weight: 600;
    width: 30%;
    color: #666;
}

/* ביקורות */
.comment-text {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;

}/* =========================================
   FIX – ביטול גלילה אופקית במובייל
   Autopower
   ========================================= */

@media (max-width: 768px) {

    /* הגנה כללית */
    html, body {
        max-width: 100%;
        overflow-x: hidden;
    }

    /* תיקון padding + width */
    .related.products,
    .upsells.products,
    .cross-sells {
        padding-left: 16px !important;
        padding-right: 16px !important;
        box-sizing: border-box;
    }

    /* Grid שלא חורג */
    .related.products ul.products,
    .upsells.products ul.products,
    .cross-sells ul.products {
        width: 100% !important;
        margin: 0 auto !important;
        box-sizing: border-box;
    }

    /* כרטיס מוצר */
    .related.products li.product,
    .upsells.products li.product,
    .cross-sells li.product {
        width: 100% !important;
        box-sizing: border-box !important;
    }
    transition: transform 0.3s ease;
}

.ah-cat-card:hover .ah-cat-img img {
    transform: scale(1.1);
}

/* במובייל - גובה קטן יותר */
@media (max-width: 768px) {
    .ah-cat-img {
        height: 200px;
.ah-products-grid.columns-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.ah-products-grid.columns-4 li.product {
    display: block;
}

@media (max-width: 1024px) {
    .ah-products-grid.columns-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .ah-products-grid.columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .ah-products-grid.columns-4 {
        grid-template-columns: 1fr;
    }
	.ah-products-grid.columns-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.ah-products-grid.columns-4 li.product {
    display: block;
}

@media (max-width: 1024px) {
    .ah-products-grid.columns-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .ah-products-grid.columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .ah-products-grid.columns-4 {
        grid-template-columns: 1fr;
    }
}