/*
Theme Name: MAJEDA STYLE HOUSE
Version: 1.2.7
Author: MAJEDA STYLE HOUSE
Description: Premium editorial WooCommerce fashion theme.
Text Domain: majeda-style-house
*/
:root{--ink:#171614;--cream:#f7f4ee;--muted:#7c766d;--line:#ded8ce;--max:1240px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--cream);color:var(--ink);font-family:Arial,sans-serif;line-height:1.5}a{color:inherit;text-decoration:none}img{max-width:100%;height:auto;display:block}.container{width:min(92%,var(--max));margin:auto}.topbar{background:var(--ink);color:#fff;text-align:center;font-size:11px;letter-spacing:.14em;padding:9px}.site-header{position:sticky;top:0;z-index:20;background:rgba(247,244,238,.96);border-bottom:1px solid var(--line)}.header-inner{min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{font:26px Georgia,serif;letter-spacing:.08em}.nav{display:flex;gap:27px;font-size:11px;letter-spacing:.14em;text-transform:uppercase}.header-actions{display:flex;gap:15px;font-size:12px}.menu-toggle{display:none;background:none;border:0;font-size:24px}.hero{min-height:78vh;display:flex;align-items:center;background:linear-gradient(105deg,#201d19,#82776b);color:white}.hero-content{width:min(92%,var(--max));margin:auto}.eyebrow{font-size:10px;letter-spacing:.25em;text-transform:uppercase}.hero h1{font:400 clamp(55px,9vw,118px)/.9 Georgia,serif;margin:20px 0}.hero p{max-width:500px}.button{display:inline-block;background:var(--ink);color:white;padding:14px 23px;border:1px solid var(--ink);text-transform:uppercase;letter-spacing:.12em;font-size:10px;cursor:pointer}.button.light{background:transparent;border-color:white}.section{padding:85px 0}.section-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:28px}.section-title{font:400 42px Georgia,serif;margin:0}.categories{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.category-card{min-height:360px;padding:28px;display:flex;align-items:end;color:white;background:linear-gradient(145deg,#d8cfc2,#81776d)}.category-card:nth-child(2){background:linear-gradient(145deg,#bab0a5,#554e48)}.category-card:nth-child(3){background:linear-gradient(145deg,#e1d5c4,#9b806b)}.category-card h3{font:400 34px Georgia,serif;margin:0}.products-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:22px}.product-image{aspect-ratio:3/4;background:#e8e2d9;display:grid;place-items:center;color:#91897e;font:18px Georgia,serif}.product-card h3{font:400 18px Georgia,serif;margin:12px 0 4px}.editorial{background:var(--ink);color:white}.editorial-wrap{display:grid;grid-template-columns:1.15fr .85fr;min-height:560px}.editorial-copy{padding:75px;display:flex;flex-direction:column;justify-content:center}.editorial-copy h2{font:400 58px/1 Georgia,serif;margin:18px 0}.editorial-image{background:linear-gradient(145deg,#8f8175,#302c28)}.story{display:grid;grid-template-columns:1fr 1fr;gap:70px;align-items:center}.story h2{font:400 54px/1 Georgia,serif}.newsletter{background:#e9e2d7;text-align:center;padding:75px 20px}.newsletter h2{font:400 42px Georgia,serif}.newsletter form{display:flex;max-width:560px;margin:25px auto}.newsletter input{flex:1;padding:15px;border:1px solid var(--line)}.footer{background:var(--ink);color:#eee;padding:55px 0}.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:35px}.footer p,.footer a{color:#aaa;font-size:13px}.copyright{border-top:1px solid #373431;margin-top:35px;padding-top:20px;color:#777;font-size:11px}.site-main{min-height:55vh;padding:65px 0}.page-title{font:400 48px Georgia,serif;margin:0 0 35px}.woocommerce ul.products,.woocommerce-page ul.products{display:grid!important;grid-template-columns:repeat(4,1fr);gap:22px;margin:0!important}.woocommerce ul.products li.product,.woocommerce-page ul.products li.product{width:auto!important;margin:0!important}.woocommerce ul.products li.product a img{aspect-ratio:3/4;object-fit:cover;background:#e8e2d9}.woocommerce button.button,.woocommerce a.button,.woocommerce input.button{background:var(--ink);color:#fff;border-radius:0;padding:13px 20px;text-transform:uppercase;letter-spacing:.08em;font-size:11px}.woocommerce input,.woocommerce select,.woocommerce textarea{border:1px solid var(--line);padding:12px;background:#fff}
@media(max-width:900px){.nav{display:none}.menu-toggle{display:block}.categories,.story,.editorial-wrap{grid-template-columns:1fr}.products-grid,.woocommerce ul.products,.woocommerce-page ul.products{grid-template-columns:repeat(2,1fr)!important}.editorial-copy{padding:55px 25px}.footer-grid{grid-template-columns:1fr 1fr}.hero{min-height:70vh}}
@media(max-width:560px){.products-grid,.woocommerce ul.products,.woocommerce-page ul.products{grid-template-columns:1fr 1fr!important;gap:12px}.section{padding:60px 0}.section-title{font-size:34px}.category-card{min-height:260px}.newsletter form{display:block}.newsletter input,.newsletter .button{width:100%}.footer-grid{grid-template-columns:1fr}}

.story-section{padding:100px 0}.story-grid{display:grid;grid-template-columns:1fr 1fr;gap:75px;align-items:center}.story-photo{min-height:600px;background:#e4ddd3 center/cover no-repeat}.story-copy .eyebrow{margin-bottom:38px}.story-copy h2{font:400 clamp(44px,5vw,68px)/.95 Georgia,serif;margin:0 0 135px}.story-copy p{font-size:16px;max-width:570px;color:#292621;margin:0}.hero{position:relative;background-position:center;background-size:cover;background-repeat:no-repeat;background-image:var(--hero-image,linear-gradient(105deg,#201d19,#82776b))}.hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(20,18,16,.72),rgba(20,18,16,.15))}.hero-content{position:relative;z-index:1}.editorial-image{background-position:center;background-size:cover}
@media(max-width:900px){.story-grid{grid-template-columns:1fr}.story-photo{min-height:480px}.story-copy h2{margin-bottom:55px}}
@media(max-width:560px){.story-section{padding:65px 0}.story-photo{min-height:380px}.story-copy h2{margin-bottom:45px}}

/* v1.2.3: render the uploaded Hero image directly at its original resolution */
.hero{overflow:hidden;background:linear-gradient(105deg,#201d19,#82776b);}
.hero-image{position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:cover;object-position:center center;max-width:none;z-index:0;}
.hero.has-hero-image{background:none;}
.hero.has-hero-image:before{z-index:1;}
.hero-content{position:relative;z-index:2;}

/* Mobile-only hero controls: desktop layout remains unchanged */
.mobile-hero-image{display:none!important}
@media(max-width:767px){
 html,body{max-width:100%;overflow-x:hidden}
 .hero{width:100%;min-height:var(--majeda-mobile-hero-height,520px);height:var(--majeda-mobile-hero-height,520px);max-height:85svh;align-items:center}
 .hero .desktop-hero-image{display:none!important}
 .hero .mobile-hero-image{display:block!important;object-fit:cover;object-position:center center}
 .hero-content{width:88%;text-align:var(--majeda-mobile-hero-align,left);margin:0 auto}
 .hero h1{font-size:var(--majeda-mobile-title-size,42px);line-height:1.02;overflow-wrap:anywhere}
 .hero p{max-width:100%;font-size:14px}
 .hero .eyebrow{font-size:9px;letter-spacing:.15em}
 .hero .button{max-width:100%;white-space:normal}
}




/* Desktop banner fix: preserve the full source image ratio; mobile rules remain unchanged */
@media (min-width: 768px) {
  .hero.has-hero-image {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 0 !important;
    overflow: visible !important;
  }
  .hero.has-hero-image > img.desktop-hero-image {
    display: block !important;
    position: static !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: none !important;
    object-fit: initial !important;
    object-position: initial !important;
    aspect-ratio: auto !important;
  }
  .hero.has-hero-image > img.mobile-hero-image { display: none !important; }
  .hero.has-hero-image > .hero-content { display: none !important; }
}
