﻿/* Patine Osta — approved home design v2. UTF-8 / RTL / MVC dynamic data */
@font-face{font-family:PatineYekan;src:url('../fonts/iranyekan/iranyekan.woff2') format('woff2');font-display:swap;font-weight:400}
@font-face{font-family:PatineYekan;src:url('../fonts/iranyekan/iranyekan_bold.woff') format('woff');font-display:swap;font-weight:700}
.html-home-page, .html-home-page button,.html-home-page input{font-family:PatineYekan,Tahoma,sans-serif!important}
.html-home-page{--po-green:#1c6048;--po-emerald:#41ba80;--po-dark:#1c3029;--po-cream:#f8f5ed;--po-muted:#77817a}
.html-home-page .po-home{color:var(--po-dark);background:#fff;direction:rtl;font-family:PatineYekan,Tahoma,sans-serif;overflow:hidden}
.po-home *, .po-home *:before, .po-home *:after{box-sizing:border-box}
.po-home a{text-decoration:none!important}
.po-hero{height:480px;position:relative;isolation:isolate;background:linear-gradient(100deg,#3b674e 0%,#234a3a 65%,#173e30 100%);color:#fff;overflow:hidden}
.po-hero-art{position:absolute;inset:0 42% 0 0;background-image:linear-gradient(90deg,rgba(23,62,48,0) 47%,#214838 100%),url('../images/patine-redesign/hero-atmosphere.webp');background-repeat:no-repeat;background-position:center;background-size:cover;z-index:-1}
.po-hero-content{position:relative;width:min(1170px,90%);margin:auto;padding:105px 0 30px;text-align:right}
.po-eyebrow,.po-section-kicker{color:#b1ebcd;font-weight:700;font-size:13px;letter-spacing:.1px}
.po-hero h1{font-size:clamp(30px,3.6vw,55px);font-weight:700;line-height:1.55;color:#fff;margin:12px 0}
.po-hero p{max-width:440px;font-size:15px;line-height:2.1;color:#e6f0e7;margin:0 0 24px}
.po-hero-actions,.po-endcap-actions{display:flex;gap:12px;flex-wrap:wrap}
.po-btn{min-height:45px;min-width:147px;padding:11px 19px;display:inline-flex;align-items:center;justify-content:center;gap:12px;border-radius:9px;font-size:13px;font-weight:700;transition:transform .2s ease,background-color .2s ease}
.po-btn:hover{transform:translateY(-2px)}
.po-btn-primary{color:#fff!important;background:#42b978}
.po-btn-primary:hover{background:#279d60}
.po-btn-cream{color:#1d4b36!important;background:#f6f5ec}
.po-hero-decoration{position:absolute;bottom:75px;left:10%;font-size:21px;line-height:2.1;color:#fff5df;font-style:italic;transform:rotate(-5deg);opacity:.93}
.po-section{max-width:1260px;width:calc(100% - 68px);margin:0 auto;padding:42px 0 20px}
.po-section-head{display:flex;align-items:end;justify-content:space-between;gap:14px;margin-bottom:22px}
.po-section-head h2{font-size:25px;font-weight:700;line-height:1.5;color:#202d26;margin:0}
.po-section-head>a{font-weight:700;color:#27694d;font-size:12px}
.po-category-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:15px}
.po-category-card{display:block;background:#f8f5ef;border-radius:13px;overflow:hidden;color:#1c3029;box-shadow:0 2px 15px rgba(22,52,41,.055);transition:transform .2s}
.po-category-card:hover{transform:translateY(-4px)}
.po-category-image{height:155px;background:#e8e4dc}
.po-category-image img{width:100%;height:100%;object-fit:cover;display:block}
.po-category-copy{text-align:center;padding:14px 10px 17px}
.po-category-copy h3{color:#1e2f26;font-size:16px;font-weight:700;margin:0 0 6px}
.po-category-copy span{font-size:11px;color:#758078}
.po-products-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:15px}
.po-product-item{min-width:0;border:1px solid #e7ebe7;border-radius:12px;background:#fff;box-shadow:0 3px 15px rgba(20,55,43,.055);padding:8px;transition:transform .2s,box-shadow .2s}
.po-product-item:hover{transform:translateY(-3px);box-shadow:0 9px 22px rgba(20,55,43,.1)}
.po-product-item .ec-product-inner{width:100%;padding:0!important;border:0!important;box-shadow:none!important}
.po-product-item .ec-pro-image-outer{border-radius:9px;overflow:hidden;background:#f6f4ef}
.po-product-item .ec-pro-image .image{display:block}
.po-product-item .ec-pro-image img.main-image{width:100%!important;max-width:100%;height:195px!important;object-fit:contain!important}
.po-product-item .ec-pro-image img.hover-image{display:none!important}
.po-product-item .ec-pro-content{padding:13px 5px 9px!important;text-align:right}
.po-product-item .ec-pro-title,.po-product-item .ec-pro-title a{font-size:13px!important;line-height:1.9!important;font-weight:700!important;color:#25372c!important}
.po-product-item .new-price{font-size:15px!important;font-weight:700;color:#19553e!important}
.po-product-item .old-price{font-size:11px!important;color:#969b95}
.po-product-item .ec-pro-actions{opacity:1!important;visibility:visible!important}
.po-product-item .ec-pro-actions a.wishlist{background:#fff;border-radius:7px}
.po-courses{margin-top:12px;background:linear-gradient(180deg,#fafbf9,#fff)}
.po-courses .po-section-kicker{color:#41835f;display:block;margin:0 0 6px}
.po-courses-feed{min-height:70px}
.po-courses-feed .ec-product-inner,.po-courses-feed .ec-blog-inner{border:1px solid #e5eae4;border-radius:12px;overflow:hidden;background:#fff}
.po-benefits{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;background:#f5f0e7;margin:30px 0 2px;padding:30px max(4%,calc((100vw - 1260px)/2));direction:rtl}
.po-benefits>div{display:grid;grid-template-columns:52px 1fr;grid-template-rows:auto auto;column-gap:12px;padding:0 20px;border-left:1px solid #d8d5cb}
.po-benefits>div:last-child{border:0}
.po-benefit-icon{grid-row:1/3;align-self:center;display:flex;align-items:center;justify-content:center;font-size:30px;color:var(--po-green)}
.po-benefits strong{font-size:14px;font-weight:700;line-height:1.8}
.po-benefits small{font-size:11px;line-height:1.9;color:#737b72}
.po-stories-feed{display:grid;gap:14px}
.po-stories-feed img{border-radius:9px;object-fit:cover}
.po-endcap{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:38px max(5%,calc((100vw - 1260px)/2));background:#e0eee3;margin-top:34px}
.po-endcap .po-section-kicker{color:#368160}
.po-endcap h2{font-size:24px;line-height:1.8;color:#204c39;margin:8px 0 0}
/* Style existing header/footer globally only while rendering the homepage */
.html-home-page .ec-header{background:#fff!important}
.html-home-page .header-top{background:#1d513d!important;color:#fff!important}
.html-home-page .ec-header a{transition:color .2s}
.html-home-page .ec-header a:hover{color:#28a16a!important}
@media(max-width:1150px){.po-category-grid,.po-products-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.po-hero{height:425px}.po-hero-content{padding-top:85px}}
@media(max-width:820px){.po-category-grid,.po-products-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.po-benefits{grid-template-columns:repeat(2,1fr);row-gap:20px}.po-benefits>div:nth-child(2){border:0}.po-hero-art{inset:0 25% 0 0;opacity:.46}.po-hero-decoration{display:none}.po-hero-content{padding-top:75px}.po-hero{height:390px}}
@media(max-width:580px){.po-section{width:calc(100% - 28px);padding-top:28px}.po-section-head h2{font-size:19px}.po-category-grid,.po-products-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.po-category-image{height:110px}.po-category-copy h3{font-size:13px}.po-product-item .ec-pro-image img.main-image{height:140px!important}.po-hero{height:375px}.po-hero-art{inset:0;opacity:.25}.po-hero-content{width:90%;padding-top:55px}.po-hero h1{font-size:30px}.po-hero p{font-size:13px;max-width:300px}.po-btn{min-width:120px;font-size:12px}.po-benefits{padding:22px 10px;column-gap:5px}.po-benefits>div{grid-template-columns:34px 1fr;padding:0 6px;column-gap:6px}.po-benefit-icon{font-size:24px}.po-benefits strong{font-size:12px}.po-benefits small{font-size:10px}.po-endcap{display:block;padding:29px 18px}.po-endcap h2{font-size:19px}.po-endcap-actions{margin-top:17px}}
@media(prefers-reduced-motion:reduce){.po-home *{transition:none!important;animation:none!important}}

/* v3 - real slider via home_page_top widget. Visual only; no dummy slides. */
.patine-home-redesign .po-hero-dynamic{width:min(1700px,calc(100% - 44px));margin:24px auto 0;direction:rtl}
.patine-home-redesign .po-hero-dynamic .ec-main-slider{padding:0!important;margin:0!important}
.patine-home-redesign .po-hero-dynamic .ec-slider{border-radius:23px!important;overflow:hidden;box-shadow:0 8px 32px rgba(25,58,43,.12);background:#244e3c}
.patine-home-redesign .po-hero-dynamic .ec-slide-item,
.patine-home-redesign .po-hero-dynamic .slide-1,
.patine-home-redesign .po-hero-dynamic .slide-2,
.patine-home-redesign .po-hero-dynamic .slide-3{min-height:390px;height:clamp(390px,31vw,540px)!important;background-size:cover!important;background-position:center center!important}
.patine-home-redesign .po-hero-dynamic .swiper-slide{overflow:hidden}
.patine-home-redesign .po-hero-dynamic .ec-slide-content{direction:rtl;text-align:right}
.patine-home-redesign .po-hero-dynamic .ec-slide-title{line-height:1.55;font-weight:800}
.patine-home-redesign .po-hero-dynamic .ec-slide-desc{line-height:2}
.patine-home-redesign .po-hero-dynamic .ec-slide-btn a,
.patine-home-redesign .po-hero-dynamic .ec-slide-btn .btn{background:#43bc83;border-radius:9px;border:0;padding:12px 24px;color:#fff}
.patine-home-redesign .po-hero-dynamic .swiper-pagination-bullet-active{background:#45bd83}
@media(max-width:767px){
 .patine-home-redesign .po-hero-dynamic{width:calc(100% - 24px);margin-top:12px}
 .patine-home-redesign .po-hero-dynamic .ec-slider{border-radius:13px!important}
 .patine-home-redesign .po-hero-dynamic .ec-slide-item,
 .patine-home-redesign .po-hero-dynamic .slide-1,
 .patine-home-redesign .po-hero-dynamic .slide-2,
 .patine-home-redesign .po-hero-dynamic .slide-3{height:360px!important;min-height:360px;background-position:center!important}
 .patine-home-redesign .po-hero-dynamic .ec-slide-title{font-size:27px!important}
 .patine-home-redesign .po-hero-dynamic .ec-slide-desc{font-size:13px!important}
}


/* ========================================================================
   Patine Osta V26 — full-bleed dynamic homepage hero (reference matched)
   The original DB-backed home_page_top widget and its content stay intact.
   This block affects only the homepage slider, not the other content.
   ======================================================================== */
.patine-home-redesign .po-home .po-hero-dynamic {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
}
.patine-home-redesign .po-home .po-hero-dynamic .ec-main-slider,
.patine-home-redesign .po-home .po-hero-dynamic .ec-slider {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: hidden;
}
.patine-home-redesign .po-home .po-hero-dynamic .swiper-container,
.patine-home-redesign .po-home .po-hero-dynamic .swiper-slide,
.patine-home-redesign .po-home .po-hero-dynamic .ec-slide-item,
.patine-home-redesign .po-home .po-hero-dynamic .slider-wrapper {
    border-radius: 0 !important;
}
@media (min-width: 768px) {
    .patine-home-redesign .po-home .po-hero-dynamic .ec-slide-item,
    .patine-home-redesign .po-home .po-hero-dynamic .slide-1,
    .patine-home-redesign .po-home .po-hero-dynamic .slide-2,
    .patine-home-redesign .po-home .po-hero-dynamic .slide-3 {
        height: clamp(360px, 25.2vw, 520px) !important;
        min-height: 360px !important;
        background-position: center center !important;
        background-size: cover !important;
    }
}
@media (max-width: 767px) {
    .patine-home-redesign .po-home .po-hero-dynamic {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .patine-home-redesign .po-home .po-hero-dynamic .ec-slider {
        border-radius: 0 !important;
    }
}
