/* =========================================================
   RePe Home Content
   Replaces WoodMart demo homepage content under Hero
   ========================================================= */

.repe-home-main {
    --repe-olive-dark: #2E3927;
    --repe-olive: #546142;
    --repe-olive-soft: #AABAA6;
    --repe-cream: #FAF8F5;
    --repe-beige: #E8D3C5;
    --repe-gold: #C9A46A;
    --repe-text: #26301F;

    width: 100%;
    background: linear-gradient(180deg, #FAF8F5 0%, #F3EEE7 100%);
    color: var(--repe-text);
    padding: 34px 0 0;
}

.repe-section {
    width: min(1320px, calc(100% - 48px));
    margin: 0 auto 54px;
}

.repe-section-head {
    text-align: center;
    margin-bottom: 28px;
}

.repe-section-head span,
.repe-why-text span,
.repe-consult-box span {
    display: inline-flex;
    color: var(--repe-olive);
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 9px;
}

.repe-section-head h2,
.repe-why-text h2,
.repe-consult-box h2 {
    margin: 0;
    color: var(--repe-olive-dark);
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.45;
    font-weight: 950;
}

.repe-section-head p,
.repe-why-text p,
.repe-consult-box p {
    margin: 13px auto 0;
    max-width: 720px;
    color: rgba(38,48,31,.76);
    font-size: 15px;
    line-height: 2;
    font-weight: 650;
}

.repe-category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.repe-category-card {
    min-height: 178px;
    border-radius: 24px;
    padding: 24px;
    text-decoration: none !important;
    color: var(--repe-olive-dark) !important;
    background:
        radial-gradient(circle at top left, rgba(201,164,106,.18), transparent 36%),
        linear-gradient(180deg, rgba(255,255,255,.72), rgba(232,211,197,.42));
    border: 1px solid rgba(84,97,66,.13);
    box-shadow: 0 16px 36px rgba(32,35,28,.06);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: all .22s ease;
}

.repe-category-card:hover {
    transform: translateY(-5px);
    border-color: rgba(201,164,106,.38);
    box-shadow: 0 22px 48px rgba(32,35,28,.10);
}

.repe-category-card strong {
    font-size: 19px;
    font-weight: 950;
    margin-bottom: 10px;
}

.repe-category-card small {
    font-size: 13px;
    line-height: 1.9;
    color: rgba(38,48,31,.74);
    font-weight: 650;
}

.repe-why-section {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 30px;
    align-items: center;
    padding: 42px;
    border-radius: 30px;
    background:
        radial-gradient(circle at 92% 8%, rgba(170,186,166,.26), transparent 34%),
        linear-gradient(135deg, #F8F4EE, #E9DFD4);
    border: 1px solid rgba(201,164,106,.18);
}

.repe-why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.repe-why-grid div,
.repe-blog-grid article {
    border-radius: 20px;
    padding: 20px;
    background: rgba(250,248,245,.68);
    border: 1px solid rgba(84,97,66,.12);
}

.repe-why-grid strong,
.repe-blog-grid strong,
.repe-product-placeholder strong {
    display: block;
    color: var(--repe-olive-dark);
    font-size: 16px;
    font-weight: 950;
    margin-bottom: 8px;
}

.repe-why-grid small,
.repe-blog-grid small,
.repe-product-placeholder small {
    color: rgba(38,48,31,.72);
    font-size: 13px;
    line-height: 1.9;
    font-weight: 650;
}

.repe-consult-box {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
    padding: 34px;
    border-radius: 28px;
    background:
        linear-gradient(90deg, rgba(46,57,39,.96), rgba(84,97,66,.94));
    color: var(--repe-cream);
    box-shadow: 0 18px 46px rgba(32,35,28,.14);
}

.repe-consult-box span,
.repe-consult-box h2,
.repe-consult-box p {
    color: var(--repe-cream);
}

.repe-consult-box p {
    margin-right: 0;
    opacity: .86;
}

.repe-consult-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.repe-home-btn {
    min-height: 48px;
    padding: 0 22px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 950;
    transition: all .22s ease;
    white-space: nowrap;
}

.repe-home-btn-primary {
    background: var(--repe-gold);
    color: var(--repe-olive-dark) !important;
}

.repe-home-btn-secondary {
    background: rgba(250,248,245,.10);
    color: var(--repe-cream) !important;
    border: 1px solid rgba(250,248,245,.32);
}

.repe-home-btn:hover {
    transform: translateY(-2px);
}

.repe-product-placeholder {
    min-height: 150px;
    border-radius: 26px;
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    background: rgba(255,255,255,.70);
    border: 1px dashed rgba(84,97,66,.28);
}

.repe-product-placeholder a {
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--repe-olive-dark);
    color: var(--repe-cream) !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 950;
}

.repe-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

@media (max-width: 1024px) {
    .repe-category-grid,
    .repe-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .repe-why-section,
    .repe-consult-box {
        grid-template-columns: 1fr;
    }

    .repe-consult-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .repe-home-main {
        padding-top: 24px;
    }

    .repe-section {
        width: min(100% - 28px, 1320px);
        margin-bottom: 38px;
    }

    .repe-category-grid,
    .repe-why-grid,
    .repe-blog-grid {
        grid-template-columns: 1fr;
    }

    .repe-why-section,
    .repe-consult-box {
        padding: 24px;
        border-radius: 24px;
    }

    .repe-product-placeholder {
        flex-direction: column;
        align-items: flex-start;
    }

    .repe-product-placeholder a,
    .repe-home-btn {
        width: 100%;
    }
}

/* =========================================================
   RePe Home Polish V2
   Spacing, premium product placeholders, consultation refinement
   ========================================================= */

.repe-home-main {
    padding-top: 22px !important;
}

.repe-categories-section {
    margin-top: 0 !important;
}

.repe-section {
    margin-bottom: 48px !important;
}

.repe-section-head {
    margin-bottom: 24px !important;
}

.repe-category-card {
    min-height: 166px !important;
}

.repe-why-section {
    margin-top: 12px !important;
    box-shadow: 0 18px 50px rgba(32,35,28,.07);
}

.repe-consult-section {
    margin-top: -6px !important;
}

.repe-consult-box {
    position: relative;
    overflow: hidden;
    min-height: 185px;
    padding: 38px 40px !important;
    background:
        radial-gradient(circle at 10% 25%, rgba(201,164,106,.22), transparent 28%),
        radial-gradient(circle at 90% 15%, rgba(170,186,166,.14), transparent 34%),
        linear-gradient(115deg, #26301F 0%, #3C4A31 54%, #546142 100%) !important;
}

.repe-consult-box::after {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(250,248,245,.13);
    border-radius: 22px;
    pointer-events: none;
}

.repe-consult-box > * {
    position: relative;
    z-index: 2;
}

.repe-consult-box h2 {
    font-size: clamp(27px, 3.2vw, 43px) !important;
}

.repe-consult-box p {
    max-width: 760px !important;
}

.repe-home-btn-primary {
    box-shadow: 0 12px 28px rgba(201,164,106,.24);
}

.repe-home-btn-secondary {
    backdrop-filter: blur(8px);
}

.repe-coming-products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.repe-coming-card {
    min-height: 235px;
    padding: 24px;
    border-radius: 26px;
    background:
        radial-gradient(circle at top right, rgba(201,164,106,.18), transparent 34%),
        linear-gradient(180deg, rgba(255,255,255,.82), rgba(232,211,197,.36));
    border: 1px solid rgba(84,97,66,.13);
    box-shadow: 0 16px 38px rgba(32,35,28,.06);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: all .22s ease;
}

.repe-coming-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 52px rgba(32,35,28,.10);
    border-color: rgba(201,164,106,.38);
}

.repe-coming-badge {
    align-self: flex-start;
    margin-bottom: auto;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(84,97,66,.09);
    color: #546142;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .04em;
}

.repe-coming-card strong {
    display: block;
    color: #2E3927;
    font-size: 19px;
    font-weight: 950;
    margin-bottom: 10px;
}

.repe-coming-card small {
    color: rgba(38,48,31,.72);
    font-size: 13px;
    line-height: 1.9;
    font-weight: 650;
    min-height: 50px;
}

.repe-coming-card a {
    margin-top: 18px;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    background: #2E3927;
    color: #FAF8F5 !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 950;
    width: fit-content;
}

.repe-products-note {
    margin-top: 18px;
    border-radius: 22px;
    padding: 20px 22px;
    background: rgba(255,255,255,.66);
    border: 1px dashed rgba(84,97,66,.22);
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: center;
}

.repe-products-note strong {
    color: #2E3927;
    font-size: 15px;
    font-weight: 950;
    white-space: nowrap;
}

.repe-products-note small {
    color: rgba(38,48,31,.72);
    font-size: 13px;
    line-height: 1.8;
    font-weight: 650;
}

.repe-products-note a {
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(84,97,66,.10);
    color: #2E3927 !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 950;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.repe-blog-section {
    margin-bottom: 78px !important;
}

.repe-blog-grid article {
    min-height: 126px;
    transition: all .22s ease;
}

.repe-blog-grid article:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(32,35,28,.07);
}

@media (max-width: 1024px) {
    .repe-coming-products {
        grid-template-columns: repeat(2, 1fr);
    }

    .repe-products-note {
        grid-template-columns: 1fr;
    }

    .repe-products-note strong {
        white-space: normal;
    }

    .repe-products-note a {
        width: fit-content;
    }
}

@media (max-width: 640px) {
    .repe-home-main {
        padding-top: 16px !important;
    }

    .repe-section {
        margin-bottom: 36px !important;
    }

    .repe-coming-products {
        grid-template-columns: 1fr;
    }

    .repe-consult-box {
        padding: 28px 24px !important;
    }

    .repe-coming-card {
        min-height: 210px;
    }

    .repe-products-note a {
        width: 100%;
        justify-content: center;
    }

    .repe-blog-section {
        margin-bottom: 56px !important;
    }
}

/* =========================================================
   RePe Final Bottom Spacing Fix
   ========================================================= */

.repe-blog-section {
    margin-bottom: 44px !important;
}

.repe-home-main {
    padding-bottom: 0 !important;
}

.main-page-wrapper,
.site-content,
.content-layout-wrapper {
    padding-bottom: 0 !important;
}

@media (max-width: 640px) {
    .repe-blog-section {
        margin-bottom: 34px !important;
    }
}

/* =========================================================
   RePe Guide Section Bottom Cream + White Separator
   Requested: more cream area under guide + small white gap before footer
   ========================================================= */

.repe-home-main {
    padding-bottom: 34px !important;
    background:
        linear-gradient(180deg, #FAF8F5 0%, #F3EEE7 88%, #F3EEE7 100%) !important;
}

/* Make the guide/education cream area feel deeper before it ends */
.repe-blog-section {
    margin-bottom: 0 !important;
    padding-bottom: 64px !important;
}

/* Add a small clean white separation before the footer */
.repe-home-main::after {
    content: "";
    display: block;
    height: 26px;
    width: 100%;
    background: #ffffff;
    margin-top: 0;
}

/* Keep WoodMart wrapper from adding strange extra spacing */
.main-page-wrapper,
.site-content,
.content-layout-wrapper {
    padding-bottom: 0 !important;
}

@media (max-width: 640px) {
    .repe-home-main {
        padding-bottom: 24px !important;
    }

    .repe-blog-section {
        padding-bottom: 48px !important;
    }

    .repe-home-main::after {
        height: 20px;
    }
}
/* =========================================================
   RePe Live WooCommerce Products V3
   Real product cards on homepage; 4 desktop / 2 tablet-mobile
   ========================================================= */

.repe-products-section {
    position: relative;
}

.repe-products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.repe-product-card {
    min-width: 0;
    overflow: hidden;
    border-radius: 24px;
    background: rgba(255,255,255,.82);
    border: 1px solid rgba(84,97,66,.13);
    box-shadow: 0 14px 34px rgba(32,35,28,.06);
    display: flex;
    flex-direction: column;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.repe-product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(201,164,106,.38);
    box-shadow: 0 22px 46px rgba(32,35,28,.10);
}

.repe-product-card__image {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #fff;
    text-decoration: none !important;
}

.repe-product-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 14px;
    transition: transform .28s ease;
}

.repe-product-card:hover .repe-product-card__image img {
    transform: scale(1.035);
}

.repe-product-card__sale {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--repe-gold);
    color: var(--repe-olive-dark);
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 950;
}

.repe-product-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 17px 18px 18px;
}

.repe-product-card__stock {
    margin-bottom: 8px;
    color: var(--repe-olive);
    font-size: 11px;
    line-height: 1.6;
    font-weight: 900;
}

.repe-product-card__title {
    margin: 0 0 12px;
    min-height: 56px;
    color: var(--repe-olive-dark);
    font-size: 15px;
    line-height: 1.85;
    font-weight: 900;
}

.repe-product-card__title a {
    color: inherit !important;
    text-decoration: none !important;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.repe-product-card__price {
    margin-top: auto;
    margin-bottom: 14px;
    color: var(--repe-olive-dark);
    font-size: 15px;
    line-height: 1.7;
    font-weight: 950;
}

.repe-product-card__price del {
    margin-left: 6px;
    color: rgba(38,48,31,.48);
    font-size: 12px;
    font-weight: 700;
}

.repe-product-card__price ins {
    color: var(--repe-olive-dark);
    text-decoration: none;
}

.repe-product-card__button,
.repe-product-card__button.button {
    width: 100%;
    min-height: 43px;
    margin: 0 !important;
    padding: 0 14px !important;
    border: 0 !important;
    border-radius: 13px !important;
    background: var(--repe-olive-dark) !important;
    color: var(--repe-cream) !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
    font-weight: 950 !important;
    transition: transform .2s ease, background .2s ease !important;
}

.repe-product-card__button:hover,
.repe-product-card__button.button:hover {
    background: var(--repe-olive) !important;
    color: var(--repe-cream) !important;
    transform: translateY(-1px);
}

.repe-product-card .added_to_cart {
    margin-top: 8px;
    color: var(--repe-olive-dark) !important;
    font-size: 12px;
    font-weight: 900;
    text-align: center;
}

.repe-products-actions {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.repe-products-all-btn {
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    background: rgba(84,97,66,.10);
    border: 1px solid rgba(84,97,66,.14);
    color: var(--repe-olive-dark) !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 950;
    transition: transform .2s ease, background .2s ease;
}

.repe-products-all-btn:hover {
    background: rgba(84,97,66,.16);
    transform: translateY(-2px);
}

.repe-products-empty {
    padding: 26px;
    border-radius: 22px;
    background: rgba(255,255,255,.68);
    border: 1px dashed rgba(84,97,66,.24);
    text-align: center;
}

.repe-products-empty strong,
.repe-products-empty small {
    display: block;
}

.repe-products-empty strong {
    margin-bottom: 8px;
    color: var(--repe-olive-dark);
    font-size: 15px;
    font-weight: 950;
}

.repe-products-empty small {
    color: rgba(38,48,31,.72);
    font-size: 13px;
    line-height: 1.8;
    font-weight: 650;
}

@media (max-width: 1024px) {
    .repe-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (max-width: 640px) {
    .repe-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .repe-product-card {
        border-radius: 18px;
    }

    .repe-product-card__image img {
        padding: 9px;
    }

    .repe-product-card__body {
        padding: 12px;
    }

    .repe-product-card__stock {
        margin-bottom: 5px;
        font-size: 10px;
    }

    .repe-product-card__title {
        min-height: 48px;
        margin-bottom: 8px;
        font-size: 12px;
        line-height: 1.75;
    }

    .repe-product-card__price {
        margin-bottom: 10px;
        font-size: 12px;
    }

    .repe-product-card__button,
    .repe-product-card__button.button {
        min-height: 39px;
        padding: 0 8px !important;
        border-radius: 11px !important;
        font-size: 10px !important;
    }

    .repe-products-actions {
        margin-top: 18px;
    }

    .repe-products-all-btn {
        width: 100%;
    }
}

@media (max-width: 360px) {
    .repe-products-grid {
        gap: 8px;
    }

    .repe-product-card__body {
        padding: 10px;
    }
}
