/* עיצוב דף הבית – אחד לאחד כמו בתמונות */

.hp-wrap {
    margin: 0 -0.5rem;
    padding: 1rem 0.5rem 2rem;
}

/* באנר סגול עם חצים */
.hp-purple-banner {
    background: linear-gradient(90deg, #5c2d91 0%, #7b3fb8 100%);
    color: #fff;
    padding: 1.5rem 3rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.hp-banner-arrow {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.75rem;
    padding: 0.25rem;
    cursor: pointer;
}
.hp-banner-arrow:hover { opacity: 0.85; }
.hp-purple-content { text-align: center; flex: 1; }
.hp-purple-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.2rem 0;
    color: #fff;
}
.hp-purple-sub { font-size: 1rem; margin: 0; opacity: 0.95; }
.hp-purple-visual {
    font-size: 3rem;
    opacity: 0.9;
}

/* קרוסלה סגולה – מסלול + שקפים */
.hp-purple-carousel {
    background: linear-gradient(90deg, #5c2d91 0%, #7b3fb8 100%);
    color: #fff;
    padding: 1.5rem 3rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.hp-purple-carousel-viewport {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.hp-purple-carousel-track {
    display: flex;
    flex-direction: row;
    transition: transform 0.45s ease;
    will-change: transform;
}
.hp-purple-slide {
    flex-shrink: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.5rem;
}
.hp-purple-content-inner {
    text-align: center;
    flex: 1;
    max-width: 100%;
}
.hp-purple-carousel-skel {
    min-height: 5.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #5c2d91 0%, #7b3fb8 100%);
    opacity: 0.85;
    animation: hp-main-grid-skel-shine 1.4s ease-in-out infinite;
}

/* גריד ראשי – כרטיסים לבנים כמו בתמונה (4 עמודות, כותרת + 2x2 או תמונה + קישור כחול) */
.hp-main-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}
@media (max-width: 575.98px) {
    .hp-main-grid {
        grid-template-columns: 1fr;
    }
}
@media (min-width: 768px) {
    .hp-main-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
}
.hp-card {
    background: #fff;
    border: none;
    border-radius: 10px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.hp-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 1rem 0;
    line-height: 1.35;
}
.hp-card-body { flex: 1; margin-bottom: 0.75rem; min-height: 0; }
.hp-quad {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
.hp-quad-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.hp-quad-img {
    width: 100%;
    aspect-ratio: 1;
    background: #f0f0f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #666;
}
.hp-quad-img-inner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}
.hp-quad-label {
    font-size: 0.75rem;
    color: #333;
    margin-top: 0.35rem;
    font-weight: 400;
}
.hp-single {
    width: 100%;
    aspect-ratio: 1;
    background: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: #666;
}
.hp-single > a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    border-radius: 8px;
    background: #fff;
}
.hp-single > a .hp-quad-img-inner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}
.hp-card-link {
    font-size: 0.9rem;
    color: #007185;
    text-decoration: none;
    margin-top: auto;
}
.hp-card-link:hover { color: #c7511f; text-decoration: underline; }

/* סקלטון לשורות הראשונות בגריד (טעינת AJAX) – שיימר נע */
.hp-card-skeleton .hp-card-skeleton-title {
    height: 1.15rem;
    margin-bottom: 1rem;
    border-radius: 6px;
    max-width: 78%;
    background: linear-gradient(
        90deg,
        #e4e4e4 0%,
        #ececec 35%,
        #f6f6f6 50%,
        #ececec 65%,
        #e4e4e4 100%
    );
    background-size: 240% 100%;
    animation: hp-main-grid-skel-shine 1.4s ease-in-out infinite;
}
.hp-card-skeleton .hp-card-skeleton-body {
    min-height: 12rem;
    border-radius: 8px;
    background: linear-gradient(
        90deg,
        #e6e6e6 0%,
        #eeeeee 35%,
        #f8f8f8 50%,
        #eeeeee 65%,
        #e6e6e6 100%
    );
    background-size: 240% 100%;
    animation: hp-main-grid-skel-shine 1.4s ease-in-out infinite;
    animation-delay: 0.12s;
}
@keyframes hp-main-grid-skel-shine {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: -100% 0;
    }
}

/* סקשן עם כותרת */
.hp-section-row {
    margin-bottom: 1.5rem;
}
.hp-section-heading {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.5rem 0;
}
.hp-section-sub {
    font-size: 0.95rem;
    color: #444;
    margin: 0 0 1rem 0;
}

/* שורת טיילס – 7 כרטיסים (העתיד בידיים / טרנדים) – כמו בתמונה */
.hp-tiles-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
@media (min-width: 576px) {
    .hp-tiles-row { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 992px) {
    .hp-tiles-row { grid-template-columns: repeat(7, 1fr); gap: 1.25rem; }
}
.hp-tile {
    background: #e8e8e8;
    border: none;
    border-radius: 14px;
    padding: 1rem;
    text-decoration: none;
    color: #1a1a1a;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.hp-tile:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
    color: #1a1a1a;
}
.hp-tile-img {
    width: 100%;
    aspect-ratio: 1;
    margin: 0 0 0.75rem 0;
    background: #f5f5f5;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    color: #555;
}
.hp-tile-img--photo {
    padding: 0;
    overflow: hidden;
    background: #fff;
}
.hp-tile-img--photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
    display: block;
}
.hp-tile-name {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: start;
}

/* שורת מבצעים – 6 כרטיסי מוצר */
.hp-deals-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
@media (min-width: 576px) {
    .hp-deals-row { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 992px) {
    .hp-deals-row { grid-template-columns: repeat(6, 1fr); }
}

/* שורת מגבים לרכב – 4 כרטיסים (כמו hp-deals-row, אבל 4 בדסקטופ) */
.hp-wipers-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
@media (min-width: 576px) {
    .hp-wipers-row { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
    .hp-wipers-row { grid-template-columns: repeat(4, 1fr); }
}
/* מגבים – אזור תמונה 128×128 מקסימום (מתכווץ ברוחב כרטיס אם צר מדי) */
.hp-wipers-row .hp-deal-img {
    width: min(128px, 100%);
    aspect-ratio: 1;
    height: auto;
    max-height: none;
    min-height: 0;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0.5rem;
    box-sizing: border-box;
}
.hp-wipers-row .hp-deal-card {
    padding: 0.65rem 0.75rem 0.75rem;
}
.hp-deal-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    text-decoration: none;
    color: #1a1a1a;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.hp-deal-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); color: #1a1a1a; }
/* כרטיס חיפוש מגבים לפי רכב – צהוב בהיר אחיד (כמו ריבוע האייקון) */
.hp-deal-card--cp {
    background: #fff3cd;
    border-color: #ffe082;
    color: #1a1a1a;
}
.hp-deal-card--cp:hover {
    background: #ffecb3;
    border-color: #ffd54f;
    color: #1a1a1a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.hp-deal-card--cp .hp-deal-img {
    background: #fff3cd;
    color: #1a1a1a;
}
.hp-deal-card--cp:hover .hp-deal-img {
    background: #ffecb3;
}
.hp-deal-card--cp .hp-deal-title {
    color: #1a1a1a;
    font-weight: 600;
}
.hp-deal-img {
    width: 100%;
    aspect-ratio: 1;
    max-height: 6rem;
    background: #fff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #555;
    margin-bottom: 0.5rem;
}
.hp-deal-img--photo {
    padding: 0;
    overflow: hidden;
    background: #fff;
}
.hp-deal-img--photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
    display: block;
}
.hp-deal-title {
    font-size: 0.8rem;
    line-height: 1.3;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* שלד לסקשני קידום (העתיד בידיים / מבצעים / טרנדים) – AJAX */
.hp-promo-row-host[aria-busy="true"] .hp-promo-skel-heading {
    height: 1.35rem;
    max-width: 12rem;
    margin-bottom: 0.5rem;
    border-radius: 6px;
    background: linear-gradient(90deg, #e0e0e0 0%, #ececec 40%, #f4f4f4 50%, #ececec 60%, #e0e0e0 100%);
    background-size: 240% 100%;
    animation: hp-main-grid-skel-shine 1.4s ease-in-out infinite;
}
.hp-promo-row-host[aria-busy="true"] .hp-promo-skel-sub {
    height: 0.95rem;
    max-width: 10rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    background: linear-gradient(90deg, #dedede 0%, #e8e8e8 40%, #f0f0f0 50%, #e8e8e8 60%, #dedede 100%);
    background-size: 240% 100%;
    animation: hp-main-grid-skel-shine 1.4s ease-in-out infinite;
    animation-delay: 0.08s;
}
.hp-promo-tile-skel {
    pointer-events: none;
    cursor: default;
}
.hp-promo-row-host[aria-busy="true"] .hp-promo-skel-tile-img {
    background: linear-gradient(90deg, #ddd 0%, #e8e8e8 40%, #f2f2f2 50%, #e8e8e8 60%, #ddd 100%) !important;
    background-size: 240% 100% !important;
    animation: hp-main-grid-skel-shine 1.4s ease-in-out infinite;
}
.hp-promo-row-host[aria-busy="true"] .hp-promo-skel-tile-name {
    display: block;
    height: 0.85rem;
    width: 70%;
    margin-top: 0.25rem;
    border-radius: 4px;
    background: linear-gradient(90deg, #d8d8d8 0%, #e4e4e4 40%, #ececec 50%, #e4e4e4 60%, #d8d8d8 100%);
    background-size: 240% 100%;
    animation: hp-main-grid-skel-shine 1.4s ease-in-out infinite;
    animation-delay: 0.1s;
}
.hp-promo-deal-skel {
    pointer-events: none;
    cursor: default;
    box-shadow: none !important;
}
.hp-promo-row-host[aria-busy="true"] .hp-promo-skel-deal-img {
    background: linear-gradient(90deg, #e8e8e8 0%, #f0f0f0 40%, #f8f8f8 50%, #f0f0f0 60%, #e8e8e8 100%) !important;
    background-size: 240% 100% !important;
    animation: hp-main-grid-skel-shine 1.4s ease-in-out infinite;
}
.hp-promo-row-host[aria-busy="true"] .hp-promo-skel-deal-title {
    display: block;
    height: 2.2rem;
    width: 100%;
    margin-bottom: 0;
    border-radius: 4px;
    background: linear-gradient(90deg, #e2e2e2 0%, #eaeaea 40%, #f2f2f2 50%, #eaeaea 60%, #e2e2e2 100%);
    background-size: 240% 100%;
    animation: hp-main-grid-skel-shine 1.4s ease-in-out infinite;
    animation-delay: 0.06s;
}
