/* =========================================================
   Teddyworld - home.css
   עיצוב עמוד הבית בלבד
   תואם למבנה הקיים של front-page.php
   ========================================================= */

.home {
    background: #f7f1ea;
}

.home .site-main {
    overflow: hidden;
}

.home .site-container {
    width: calc(100% - 28px);
    max-width: 1180px;
    margin-right: auto;
    margin-left: auto;
}

.tw-home {
    padding-bottom: 24px;
    color: #2d2018;
}

.tw-home *,
.tw-home *::before,
.tw-home *::after {
    box-sizing: border-box;
}

.tw-home img,
.tw-home svg {
    max-width: 100%;
}

.tw-home h1,
.tw-home h2,
.tw-home h3,
.tw-home p {
    overflow-wrap: break-word;
}

/* Hero */

.tw-home-hero {
    padding: 8px 0;
}

.tw-home-hero-card {
    position: relative;
    height: 270px;
    min-height: 270px;
    overflow: hidden;
    background:
        radial-gradient(circle at 68% 25%, rgba(255, 233, 205, 0.85), transparent 34%),
        linear-gradient(145deg, #c89b70, #7b4c2f);
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(68, 39, 22, 0.12);
}

.tw-home-hero-image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    object-position: center 43%;
}

.tw-home-hero-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to top,
        rgba(48, 24, 11, 0.86) 0%,
        rgba(48, 24, 11, 0.50) 34%,
        rgba(48, 24, 11, 0.06) 68%,
        rgba(48, 24, 11, 0) 100%
    );
}

.tw-home-hero-card:not(.has-image) .tw-home-hero-shade {
    background: linear-gradient(
        to top,
        rgba(48, 24, 11, 0.82),
        rgba(48, 24, 11, 0.12)
    );
}

.tw-home-hero-content {
    position: absolute;
    right: 16px;
    bottom: 12px;
    left: 16px;
    z-index: 2;
    color: #ffffff;
    text-align: right;
}

.tw-home-kicker {
    display: none;
    margin: 0 0 7px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.tw-home-hero-content h1 {
    max-width: 280px;
    margin: 0 0 5px;
    color: #ffffff;
    font-size: clamp(26px, 7.8vw, 34px);
    line-height: 1.04;
    letter-spacing: -0.035em;
}

.tw-home-hero-content p:not(.tw-home-kicker) {
    margin: 0 0 8px;
    color: rgba(255, 255, 255, 0.94);
    font-size: 11px;
    line-height: 1.35;
}

.tw-home-primary-button {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 7px 15px;
    background: rgba(57, 29, 13, 0.84);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 999px;
    box-shadow: 0 8px 22px rgba(35, 17, 8, 0.20);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    backdrop-filter: blur(8px);
}

.tw-home-primary-button svg {
    display: block;
    flex: 0 0 17px;
    width: 17px !important;
    height: 17px !important;
}

.tw-home-primary-button:hover,
.tw-home-primary-button:focus {
    background: #4c260f;
    color: #ffffff;
}

/* יתרונות */

.tw-home-benefits {
    padding: 0 0 6px;
}

.tw-home-benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 7px 0;
    background: rgba(255, 253, 250, 0.78);
    border-top: 1px solid #eadfd6;
    border-bottom: 1px solid #eadfd6;
}

.tw-home-benefit {
    min-width: 0;
    padding: 3px 6px;
    text-align: center;
}

.tw-home-benefit + .tw-home-benefit {
    border-right: 1px solid #eadfd6;
}

.tw-home-benefit svg {
    display: block;
    width: 20px !important;
    height: 20px !important;
    margin: 0 auto 4px;
    color: #684128;
}

.tw-home-benefit strong {
    display: block;
    color: #302219;
    font-size: 9.5px;
    line-height: 1.2;
}

.tw-home-benefit span {
    display: block;
    margin-top: 2px;
    color: #85736a;
    font-size: 7.5px;
    line-height: 1.35;
}

/* מסר אמון */

.tw-home-trust-line {
    padding: 4px 0 30px;
}

.tw-home-trust-line p {
    margin: 0;
    color: #38271e;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.55;
    text-align: center;
}

.tw-home-trust-line span {
    display: inline-block;
    margin-right: 4px;
    color: #a86d48;
    font-size: 20px;
    vertical-align: -2px;
}

/* אזורים וכותרות */

.tw-home-products-section {
    padding: 8px 0 36px;
}

.tw-home-why-us,
.tw-home-faq {
    padding: 30px 0 42px;
}

.tw-home-section-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.tw-home-section-title span,
.tw-home-centered-title span,
.tw-home-story-copy > span,
.tw-home-contact-card span,
.tw-home-promo-content > span {
    display: block;
    margin-bottom: 5px;
    color: #8b6a54;
    font-size: 11px;
    font-weight: 700;
}

.tw-home-section-title h2,
.tw-home-centered-title h2,
.tw-home-story-copy h2,
.tw-home-contact-card h2,
.tw-home-promo-content h2 {
    margin: 0;
    color: #2c2018;
    font-size: 25px;
    line-height: 1.18;
    letter-spacing: -0.025em;
}

.tw-home-section-title h2 em,
.tw-home-centered-title h2 em {
    color: #9b694a;
    font-style: normal;
    font-weight: 400;
}

.tw-home-section-title > a {
    flex: 0 0 auto;
    padding-bottom: 2px;
    color: #6a3d23;
    border-bottom: 1px solid currentColor;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.tw-home-centered-title {
    margin-bottom: 22px;
    text-align: center;
}

.tw-home-products-section .tw-home-section-title span {
    display: none;
}

.tw-home-products-section .tw-home-section-title h2 {
    font-size: 21px;
}

/* מוצרים */

.tw-home-products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.tw-home-product-card {
    min-width: 0;
    overflow: hidden;
    background: #fffdfb;
    border: 1px solid #eadfd6;
    border-radius: 14px;
    box-shadow: 0 7px 18px rgba(69, 43, 27, 0.055);
}

.tw-home-product-card a {
    color: inherit;
    text-decoration: none;
}

.tw-home-product-image {
    position: relative;
    display: block;
    aspect-ratio: 0.84;
    overflow: hidden;
    background: #eee4da;
}

.tw-home-product-image img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: contain;
    transition: transform 0.35s ease;
}

.tw-home-product-card:hover .tw-home-product-image img {
    transform: scale(1.025);
}

.tw-home-sale-badge {
    position: absolute;
    top: 7px;
    right: 7px;
    z-index: 2;
    padding: 3px 7px;
    background: #4b2917;
    color: #ffffff;
    border-radius: 999px;
    font-size: 8px;
    font-weight: 700;
}

.tw-home-heart {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 2;
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    background: rgba(255, 255, 255, 0.88);
    color: #57331e;
    border: 1px solid rgba(92, 57, 35, 0.15);
    border-radius: 50%;
    font-size: 17px;
    line-height: 1;
}

.tw-home-product-info {
    padding: 9px 8px 10px;
}

.tw-home-product-info h3 {
    display: -webkit-box;
    min-height: 31px;
    margin: 0 0 3px;
    overflow: hidden;
    color: #2d211a;
    font-size: 11px;
    line-height: 1.4;
    text-align: center;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.tw-home-product-info p {
    margin: 0 0 7px;
    color: #8c7c72;
    font-size: 8px;
    line-height: 1.4;
    text-align: center;
}

.tw-home-product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
}

.tw-home-product-price {
    min-width: 0;
    color: #2e2018;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.tw-home-product-price del {
    display: none;
}

.tw-home-product-price ins {
    text-decoration: none;
}

.tw-home-product-price .woocommerce-Price-currencySymbol {
    margin-right: 1px;
    font-size: 0.85em;
}

.tw-home-product-plus {
    display: grid;
    flex: 0 0 auto;
    width: 23px;
    height: 23px;
    place-items: center;
    background: #f4e9de;
    color: #4f2d19;
    border-radius: 50%;
    font-size: 17px;
    line-height: 1;
}

.tw-home-products-cta {
    margin-top: 18px;
    text-align: center;
}

.tw-home-secondary-button {
    display: inline-flex;
    min-width: 180px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    background: #5a3019;
    color: #ffffff;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.tw-home-secondary-button:hover,
.tw-home-secondary-button:focus {
    background: #43210f;
    color: #ffffff;
}

.tw-home-empty-products {
    padding: 34px 18px;
    background: #fffaf5;
    color: #7b6b61;
    border: 1px solid #eadfd6;
    border-radius: 16px;
    text-align: center;
}

/* באנר שיווקי */

.tw-home-promo {
    padding: 14px 0 42px;
}

.tw-home-promo-card {
    position: relative;
    min-height: 260px;
    overflow: hidden;
    background: linear-gradient(140deg, #9b6846, #482717);
    border-radius: 20px;
    box-shadow: 0 14px 30px rgba(67, 38, 22, 0.12);
}

.tw-home-promo-image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    object-position: center;
}

.tw-home-promo-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        90deg,
        rgba(40, 20, 10, 0.87),
        rgba(40, 20, 10, 0.28)
    );
}

.tw-home-promo-content {
    position: absolute;
    right: 20px;
    bottom: 22px;
    left: 20px;
    z-index: 2;
    max-width: 300px;
}

.tw-home-promo-content > span {
    color: rgba(255, 255, 255, 0.78);
}

.tw-home-promo-content h2 {
    color: #ffffff;
    font-size: 25px;
}

.tw-home-promo-content p {
    margin: 8px 0 16px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 12px;
    line-height: 1.6;
}

.tw-home-promo-content a {
    display: inline-flex;
    min-height: 39px;
    align-items: center;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.94);
    color: #4c2916;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

/* למה לבחור בנו */

.tw-home-why-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.tw-home-why-grid article {
    min-width: 0;
    padding: 18px 7px;
    background: rgba(255, 253, 250, 0.62);
    border: 1px solid #eadfd6;
    border-radius: 14px;
    text-align: center;
}

.tw-home-why-icon {
    display: grid;
    width: 34px;
    height: 34px;
    margin: 0 auto 10px;
    place-items: center;
    background: #f2e6dc;
    color: #6a3f26;
    border-radius: 50%;
    font-size: 18px;
}

.tw-home-why-grid h3 {
    margin: 0 0 7px;
    color: #35251c;
    font-size: 11px;
    line-height: 1.35;
}

.tw-home-why-grid p {
    margin: 0;
    color: #817168;
    font-size: 8px;
    line-height: 1.55;
}

/* נתוני אמון */

.tw-home-stats {
    padding: 4px 0 42px;
}

.tw-home-stats-card {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    background: linear-gradient(110deg, #fffaf5, #f1e3d7);
    border: 1px solid #e7d9cd;
    border-radius: 18px;
    box-shadow: 0 10px 26px rgba(69, 43, 27, 0.07);
}

.tw-home-stat {
    min-width: 0;
    padding: 18px 7px 16px;
    text-align: center;
}

.tw-home-stat + .tw-home-stat {
    border-right: 1px solid #e3d4c7;
}

.tw-home-stat strong,
.tw-home-stat span {
    display: block;
}

.tw-home-stat strong {
    margin-bottom: 6px;
    color: #5a3019;
    font-size: clamp(22px, 6.2vw, 30px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.045em;
    white-space: nowrap;
}

.tw-home-stat span {
    color: #76645a;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.4;
}

/* סיפור המותג */

.tw-home-story {
    padding: 6px 0 42px;
}

.tw-home-story-card {
    display: grid;
    gap: 24px;
    padding: 30px 22px;
    background: #efe2d6;
    border-radius: 20px;
}

.tw-home-story-copy {
    text-align: right;
}

.tw-home-story-copy h2 {
    font-size: 25px;
}

.tw-home-story-copy p {
    margin: 12px 0 0;
    color: #75645a;
    font-size: 13px;
    line-height: 1.78;
}

.tw-home-story-copy a {
    display: inline-flex;
    min-height: 41px;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    padding: 9px 17px;
    background: #5a3019;
    color: #ffffff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.tw-home-story-points {
    display: grid;
    gap: 9px;
}

.tw-home-story-points article {
    padding: 15px 16px;
    background: rgba(255, 253, 250, 0.64);
    border: 1px solid rgba(112, 75, 51, 0.12);
    border-radius: 13px;
}

.tw-home-story-points strong {
    display: block;
    margin-bottom: 4px;
    color: #3b291f;
    font-size: 12px;
}

.tw-home-story-points span {
    display: block;
    color: #7b6b61;
    font-size: 10px;
    line-height: 1.55;
}

/* שאלות נפוצות */

.tw-home-faq-title {
    margin-bottom: 10px;
}

.tw-home-faq-list {
    overflow: hidden;
    background: #fffdfb;
    border: 1px solid #eadfd6;
    border-radius: 16px;
}

.tw-home-faq-list details + details {
    border-top: 1px solid #eadfd6;
}

.tw-home-faq-list summary {
    position: relative;
    padding: 17px 18px 17px 46px;
    color: #35251c;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.tw-home-faq-list summary::-webkit-details-marker {
    display: none;
}

.tw-home-faq-list summary::after {
    position: absolute;
    top: 50%;
    left: 18px;
    content: "+";
    color: #6c422a;
    font-size: 20px;
    font-weight: 400;
    transform: translateY(-50%);
}

.tw-home-faq-list details[open] summary::after {
    content: "−";
}

.tw-home-faq-list p {
    margin: 0;
    padding: 0 18px 17px;
    color: #7a6a61;
    font-size: 12px;
    line-height: 1.75;
}

/* יצירת קשר */

.tw-home-contact {
    padding: 4px 0 48px;
}

.tw-home-contact-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 27px 22px;
    background: #5a3019;
    color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 14px 30px rgba(55, 29, 14, 0.15);
}

.tw-home-contact-card span {
    color: rgba(255, 255, 255, 0.68);
}

.tw-home-contact-card h2 {
    color: #ffffff;
    font-size: 24px;
}

.tw-home-contact-card p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    line-height: 1.65;
}

.tw-home-contact-card > a {
    display: inline-flex;
    align-self: flex-start;
    min-width: 128px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    background: #fffaf5;
    color: #4d2815;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

/* מסכים קטנים מאוד */

@media screen and (max-width: 360px) {
    .home .site-container {
        width: calc(100% - 20px);
    }

    .tw-home-hero-content {
        right: 18px;
        left: 18px;
    }

    .tw-home-products-grid,
    .tw-home-why-grid {
        gap: 6px;
    }

    .tw-home-product-info {
        padding-right: 6px;
        padding-left: 6px;
    }

    .tw-home-product-price {
        font-size: 10px;
    }
}

/* טאבלט */

@media screen and (min-width: 768px) {
    .home .site-container {
        width: calc(100% - 48px);
    }

    .tw-home-hero {
        padding-top: 22px;
        padding-bottom: 16px;
    }

    .tw-home-hero-card {
        height: 500px;
        min-height: 500px;
        border-radius: 28px;
    }

    .tw-home-hero-content {
        right: 46px;
        bottom: 46px;
        left: 46px;
    }

    .tw-home-kicker {
        display: block;
    }

    .tw-home-hero-content h1 {
        max-width: 520px;
        font-size: 62px;
    }

    .tw-home-hero-content p:not(.tw-home-kicker) {
        font-size: 17px;
    }

    .tw-home-primary-button {
        min-height: 50px;
        padding-right: 26px;
        padding-left: 26px;
        font-size: 15px;
    }

    .tw-home-benefits {
        padding-bottom: 24px;
    }

    .tw-home-benefits-grid {
        padding-top: 22px;
        padding-bottom: 22px;
    }

    .tw-home-benefit strong {
        font-size: 14px;
    }

    .tw-home-benefit span {
        font-size: 11px;
    }

    .tw-home-section-title h2,
    .tw-home-centered-title h2,
    .tw-home-story-copy h2,
    .tw-home-contact-card h2 {
        font-size: 34px;
    }

    .tw-home-products-section {
        padding-top: 30px;
        padding-bottom: 42px;
    }

    .tw-home-products-section .tw-home-section-title span {
        display: block;
    }

    .tw-home-products-section .tw-home-section-title h2 {
        font-size: 34px;
    }

    .tw-home-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }

    .tw-home-product-card {
        border-radius: 18px;
    }

    .tw-home-product-info {
        padding: 14px 13px 15px;
    }

    .tw-home-product-info h3 {
        min-height: auto;
        font-size: 15px;
    }

    .tw-home-product-info p {
        font-size: 11px;
    }

    .tw-home-product-price {
        font-size: 15px;
    }

    .tw-home-product-plus {
        width: 31px;
        height: 31px;
        font-size: 20px;
    }

    .tw-home-promo-card {
        min-height: 360px;
        border-radius: 26px;
    }

    .tw-home-promo-content {
        right: 38px;
        bottom: 40px;
        max-width: 430px;
    }

    .tw-home-promo-content h2 {
        font-size: 38px;
    }

    .tw-home-promo-content p {
        font-size: 15px;
    }

    .tw-home-why-grid {
        gap: 18px;
    }

    .tw-home-why-grid article {
        padding: 28px 18px;
        border-radius: 18px;
    }

    .tw-home-why-grid h3 {
        font-size: 15px;
    }

    .tw-home-why-grid p {
        font-size: 11px;
    }

    .tw-home-stats {
        padding-top: 16px;
        padding-bottom: 54px;
    }

    .tw-home-stat {
        padding: 26px 12px 23px;
    }

    .tw-home-stat strong {
        font-size: 38px;
    }

    .tw-home-stat span {
        font-size: 12px;
    }

    .tw-home-story-card {
        grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
        align-items: center;
        gap: 36px;
        padding: 48px 36px;
    }

    .tw-home-story-copy p {
        font-size: 15px;
    }

    .tw-home-story-points strong {
        font-size: 14px;
    }

    .tw-home-story-points span {
        font-size: 11px;
    }

    .tw-home-contact-card {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 38px 40px;
    }

    .tw-home-contact-card > a {
        align-self: center;
    }
}

/* מחשב */

@media screen and (min-width: 1024px) {
    .tw-home-hero-card {
        height: 560px;
        min-height: 560px;
    }

    .tw-home-hero-content {
        right: 68px;
        bottom: 62px;
    }

    .tw-home-hero-content h1 {
        max-width: 650px;
        font-size: 76px;
    }

    .tw-home-products-section,
    .tw-home-why-us,
    .tw-home-faq {
        padding-top: 54px;
        padding-bottom: 68px;
    }

    .tw-home-products-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 16px;
    }

    .tw-home-product-info h3 {
        font-size: 14px;
    }

    .tw-home-product-price {
        font-size: 14px;
    }

    .tw-home-promo {
        padding-top: 28px;
        padding-bottom: 70px;
    }

    .tw-home-promo-card {
        min-height: 440px;
    }

    .tw-home-promo-content {
        right: 58px;
        bottom: 54px;
        max-width: 520px;
    }

    .tw-home-promo-content h2 {
        font-size: 48px;
    }

    .tw-home-stats {
        padding-top: 20px;
        padding-bottom: 70px;
    }

    .tw-home-stat {
        padding-top: 31px;
        padding-bottom: 28px;
    }

    .tw-home-stat strong {
        font-size: 44px;
    }

    .tw-home-stat span {
        font-size: 13px;
    }

    .tw-home-centered-title {
        margin-bottom: 32px;
    }

    .tw-home-why-grid article {
        padding: 38px 24px;
    }

    .tw-home-why-grid h3 {
        font-size: 18px;
    }

    .tw-home-why-grid p {
        font-size: 13px;
    }
/* =========================================================
   עמוד הבית בלבד – תמונות מוצרים גבוהות ועדינות כמו בסקיצה
   ========================================================= */

@media screen and (max-width: 767px) {

    body.home .tw-home-products-section .tw-home-product-image {
        aspect-ratio: 3 / 4 !important;
        overflow: hidden;
        background: #eee4da;
    }

    body.home .tw-home-products-section .tw-home-product-image img {
        display: block;
        width: 100%;
        height: 100%;
        margin: 0;
        object-fit: contain !important;
        object-position: center center;
        transform: scale(1.06);
    }

    body.home .tw-home-products-section
    .tw-home-product-card:hover
    .tw-home-product-image img {
        transform: scale(1.06);
    }

    body.home .tw-home-products-section .tw-home-product-info {
        padding: 8px 7px 9px;
    }
}
}