/*
Theme Name: Soft Modern
Description: Responsive clothing and accessories storefront for WooCommerce.
Version: 1.1.0
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: soft-modern
License: GNU General Public License v2 or later
*/
:root{--sm-ink:#321c44;--sm-muted:#5d466c;--sm-purple:#6e3689;--sm-lilac:#eee4f8;--sm-sky:#d8ecf8;--sm-paper:#f9f6fc;--sm-line:#ded3e7;--sm-radius:22px}
*,*::before,*::after{box-sizing:border-box}
body{margin:0;color:var(--sm-ink);background:var(--sm-paper);font-family:Nunito,system-ui,sans-serif;line-height:1.55}
[dir="rtl"] body{font-family:Tahoma,Arial,sans-serif}
h1,h2,h3{line-height:1.15;letter-spacing:-.025em}
[dir="rtl"] :is(h1,h2,h3){letter-spacing:normal;line-height:1.35}
img{max-inline-size:100%;height:auto;vertical-align:middle}
a{color:var(--sm-purple);text-underline-offset:.18em}
button,input,select,textarea{font:inherit;max-inline-size:100%}
:focus-visible{outline:3px solid #7f459f;outline-offset:4px}
.sm-skip{position:absolute;inset-inline-start:12px;top:12px;transform:translateY(-200%);z-index:10;background:white;padding:10px}
.sm-skip:focus{transform:none}
.sm-wrap,.sm-nav,.sm-footer-inner,.sm-section{width:min(100% - 2 * clamp(16px,4vw,58px),1360px);margin-inline:auto}
.sm-content,.sm-commerce{padding-block:36px 64px;min-height:50vh}
.sm-site-header,.sm-site-footer{background:#fff}
.sm-site-header{position:relative;z-index:5;border-block-end:1px solid var(--sm-line)}
.sm-nav,.sm-footer-inner,.sm-actions{display:flex;align-items:center;gap:clamp(12px,2vw,30px)}
.sm-nav{min-height:74px;justify-content:space-between;position:relative}
.sm-brand{color:var(--sm-ink);font-size:clamp(1.35rem,3vw,2.2rem);font-weight:900;text-decoration:none;line-height:1;overflow-wrap:anywhere}
.sm-nav nav ul{list-style:none;margin:0;padding:0}
.sm-nav nav>ul{display:flex;align-items:center;gap:20px}
.sm-nav li{position:relative}
.sm-nav li a,.sm-footer-inner nav a{display:block;color:var(--sm-ink);padding:8px;text-decoration:none;font-weight:700}
.sm-nav li a:hover,.sm-footer-inner nav a:hover{text-decoration:underline}
.sm-nav .children,.sm-nav .sub-menu{display:none;position:absolute;inset-inline-start:0;top:100%;min-width:155px;background:white;border:1px solid var(--sm-line);border-radius:12px;box-shadow:0 8px 24px #2c153014}
.sm-nav li:is(:hover,:focus-within)>.children,.sm-nav li:is(:hover,:focus-within)>.sub-menu{display:block}
.sm-nav .children .children,.sm-nav .sub-menu .sub-menu{position:static;box-shadow:none;margin-inline-start:8px}
.sm-pill,.sm-menu-toggle,.sm-bag{background:var(--sm-lilac);color:var(--sm-ink);padding:8px 14px;border:0;border-radius:999px;text-decoration:none;font-weight:700;white-space:nowrap}
.sm-menu-toggle{display:none;cursor:pointer}
.sm-hero{display:grid;grid-template-columns:1fr 1.07fr;background:linear-gradient(110deg,#e8d5f5,#d5e9f7);min-height:clamp(370px,42vw,580px);overflow:hidden}
.sm-hero-copy{align-self:center;padding:clamp(24px,5vw,80px);min-width:0}
.sm-hero h1{font-size:clamp(2.25rem,5.3vw,5.25rem);margin:0 0 16px;font-weight:900;overflow-wrap:anywhere}
.sm-hero p{font-size:clamp(1rem,1.6vw,1.3rem);max-width:34rem;margin:0 0 24px}
.sm-hero img{width:100%;height:100%;object-fit:cover;object-position:center}
.sm-button,.woocommerce :is(a,button,input).button,.woocommerce #respond input#submit,.woocommerce button.button.alt,.woocommerce a.button.alt{display:inline-block;background:var(--sm-purple);color:white;border:0;border-radius:999px;padding:.68em 1.15em;font-weight:750;text-decoration:none;line-height:1.3;text-align:center;white-space:normal}
.sm-button:hover,.woocommerce :is(a,button,input).button:hover{background:#4b235f;color:white}
.sm-section{padding-block:26px}
.sm-wrap .sm-section{width:100%}
.sm-section h2{font-size:clamp(1.55rem,3vw,2.65rem);margin:0 0 20px}
.sm-category-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:16px}
.sm-category{background:var(--sm-lilac);border-radius:var(--sm-radius);padding:22px}
.sm-category:nth-child(even){background:var(--sm-sky)}
.sm-category>a{font-weight:850;font-size:1.25rem;color:var(--sm-ink)}
.sm-category ul{padding-inline-start:22px;margin-block:8px 0}
.woocommerce ul.products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(10px,2vw,22px);padding:0}
.woocommerce ul.products::before,.woocommerce ul.products::after{display:none}
.woocommerce ul.products[class] li.product{float:none;width:auto;min-width:0;margin:0;background:#fff;border-radius:var(--sm-radius);padding:clamp(10px,1.25vw,16px);overflow-wrap:anywhere}
.woocommerce ul.products li.product a img{aspect-ratio:1.12;object-fit:cover;border-radius:14px;margin:0}
.woocommerce ul.products li.product .price,.woocommerce div.product p.price{color:var(--sm-purple);font-weight:800}
.woocommerce .woocommerce-ordering,.woocommerce .woocommerce-result-count{float:none;display:inline-block;max-width:100%;margin-inline-end:12px}
.woocommerce :is(input:not([type=checkbox]):not([type=radio]),select,textarea){border:1px solid var(--sm-line);border-radius:9px;padding:7px}
.woocommerce .select2-container{max-width:100%}
.woocommerce :is(.woocommerce-message,.woocommerce-info,.woocommerce-error){overflow-wrap:anywhere}
.woocommerce .woocommerce-message .button{margin-inline-start:8px}
.woocommerce .shop_table{overflow-wrap:anywhere}
.wc-block-cart,.wc-block-checkout{max-width:100%;min-width:0}
.sm-footer-inner{min-height:135px;padding-block:24px;justify-content:space-between;flex-wrap:wrap}
.sm-footer-inner nav{display:flex;flex-wrap:wrap;gap:10px}
.sm-footer-inner p{margin-block:8px 0}
@media(max-width:900px){
 .sm-nav{flex-wrap:wrap;padding-block:10px;gap:10px}.sm-menu-toggle{display:block;order:2}.sm-actions{margin-inline-start:auto;gap:6px}
 .sm-nav nav{display:none;order:3;flex-basis:100%;max-height:65vh;overflow:auto}.sm-nav nav.sm-open{display:block}
 .sm-nav nav>ul{align-items:stretch;display:block}.sm-nav nav ul :is(.children,.sub-menu){display:block;position:static;box-shadow:none;border:0;margin-inline-start:18px}
 .woocommerce ul.products{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:650px){
 .sm-hero{grid-template-columns:1fr;min-height:auto}.sm-hero img{height:auto;aspect-ratio:1.55;object-fit:cover}
 .woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr))}
 .woocommerce div.product div.images,.woocommerce div.product div.summary,.woocommerce .woocommerce-cart-form,.woocommerce .cart-collaterals .cart_totals,.woocommerce-account .woocommerce-MyAccount-content,.woocommerce-account .woocommerce-MyAccount-navigation{float:none;width:100%;max-width:100%}
 .woocommerce #customer_details .col-1,.woocommerce #customer_details .col-2,.woocommerce form .form-row-first,.woocommerce form .form-row-last{float:none;width:100%}
 .woocommerce table.shop_table td,.woocommerce table.shop_table th{padding:8px}
 .woocommerce .woocommerce-cart-form .coupon{display:flex;gap:8px;flex-wrap:wrap}
 .woocommerce .woocommerce-cart-form .coupon .input-text{min-width:0;flex:1 1 105px}
 .woocommerce .woocommerce-message .button{float:none;margin-block-end:8px}
}
@media(max-width:340px){.sm-pill,.sm-bag,.sm-menu-toggle{padding:7px 9px}}
[dir="rtl"] .woocommerce div.product div.images{float:right}
[dir="rtl"] .woocommerce div.product div.summary{float:left}
[dir="rtl"] .woocommerce #customer_details .col-1{float:right}
[dir="rtl"] .woocommerce #customer_details .col-2{float:left}
[dir="rtl"] .woocommerce-account .woocommerce-MyAccount-navigation{float:right}
[dir="rtl"] .woocommerce-account .woocommerce-MyAccount-content{float:left}
[dir="rtl"] .woocommerce table.shop_table{text-align:right}
.woocommerce .variations td,.woocommerce .variations th{overflow-wrap:anywhere}
.woocommerce .variations select{width:100%}
.woocommerce #payment,.woocommerce .woocommerce-MyAccount-navigation,.wc-block-components-sidebar{background:#fff;border-radius:var(--sm-radius)}
.woocommerce .woocommerce-MyAccount-navigation{padding:12px}
.woocommerce .woocommerce-MyAccount-navigation ul{list-style:none;margin:0;padding:0}
.woocommerce .woocommerce-MyAccount-navigation a{display:block;padding:8px 12px;text-decoration:none}
.woocommerce .woocommerce-MyAccount-navigation .is-active a{background:var(--sm-lilac);border-radius:10px}
.woocommerce .woocommerce-MyAccount-content{margin-block-end:24px}
.wc-block-cart .wc-block-components-sidebar,.wc-block-checkout .wc-block-components-sidebar{padding:clamp(12px,2vw,24px)}
.wc-block-components-button.contained:not(.is-link){background:var(--sm-purple);color:white;border-radius:999px}
@media(max-width:768px){
 [dir="rtl"] .woocommerce div.product :is(div.images, div.summary),
 [dir="rtl"] .woocommerce #customer_details :is(.col-1,.col-2),
 [dir="rtl"] .woocommerce-account :is(.woocommerce-MyAccount-navigation,.woocommerce-MyAccount-content){float:none;width:100%}
}
.sm-nav .custom-logo,.sm-footer-inner .custom-logo{max-width:clamp(90px,16vw,170px);max-height:56px;width:auto}

/* Storefront and collection carousel */
:root{--sm-ink:#2f203c;--sm-purple:#603478;--sm-paper:#faf8fc;--sm-radius:22px}
.sm-site-header{background:#fefcfe}
.sm-brand{letter-spacing:-.06em}
.sm-nav .sm-brand::after{content:"";display:block;width:48%;height:3px;margin:5px auto 0;border-radius:3px;background:#b298dc}
.sm-slider{position:relative;width:min(100% - 2 * clamp(12px,3vw,42px),1440px);margin:clamp(12px,2.3vw,30px) auto 10px}
.sm-slider-track{display:grid;grid-auto-flow:column;grid-auto-columns:100%;overflow-x:auto;scroll-snap-type:x mandatory;border-radius:clamp(18px,3vw,36px)}
.sm-slider-ready .sm-slider-track{scrollbar-width:none}
.sm-slider-ready .sm-slider-track::-webkit-scrollbar{display:none}
.sm-slider .sm-hero{--sm-slide:#e8daf2;--sm-glow:#f3e9fa;position:relative;scroll-snap-align:start;min-width:0;grid-template-columns:1fr 1fr;min-height:0;background:radial-gradient(ellipse at 7% 10%,var(--sm-glow),transparent 68%),var(--sm-slide)}
.sm-slider .sm-hero--sky{--sm-slide:#d8eaf5;--sm-glow:#edf6fb}
.sm-slider .sm-hero--sand{--sm-slide:#eee2d8;--sm-glow:#faf0e6}
.sm-slider .sm-hero-copy{padding:clamp(25px,5vw,82px);padding-block-end:clamp(42px,6vw,92px)}
.sm-slider .sm-hero :is(h1,h2){font-size:clamp(2.05rem,5.3vw,5.25rem);font-weight:900;margin:0 0 .22em;max-inline-size:12ch;overflow-wrap:anywhere}
[dir="rtl"] .sm-slider .sm-hero :is(h1,h2){max-inline-size:15ch}
.sm-slider .sm-hero p{color:var(--sm-muted);max-width:33ch;margin-block-end:clamp(16px,2.3vw,28px)}
.sm-hero .sm-button{display:inline-flex;align-items:center;gap:.75em;padding:.85em 1.35em}
[dir="rtl"] .sm-hero .sm-button span,[dir="rtl"] .sm-slider-controls [data-step] span{display:inline-block;transform:scaleX(-1)}
.sm-hero-photo{margin:clamp(12px,2.6vw,34px);min-width:0;aspect-ratio:1.23;align-self:center;border-radius:clamp(13px,2.4vw,30px);overflow:hidden;background:var(--sm-slide)}
.sm-hero-photo img{display:block;width:100%;height:100%;object-fit:cover}
.sm-slider-controls:not([hidden]){display:flex}
.sm-slider-controls{align-items:center;justify-content:center;gap:10px;padding:10px 0 0}
.sm-slider-controls button{display:grid;place-items:center;cursor:pointer;color:var(--sm-ink);background:#fff;border:1px solid var(--sm-line);width:42px;height:42px;border-radius:50%;font-weight:800;font-size:1.45rem;line-height:1}
.sm-slider-controls button:hover{background:var(--sm-lilac)}
.sm-slider-dots{display:flex;flex-wrap:wrap;justify-content:center;max-width:60%}
.sm-slider-dots button{background:transparent;border:0;width:27px;height:38px;border-radius:0}
.sm-slider-dots button::after{content:"";width:8px;height:8px;border-radius:999px;background:#b6a4c0}
.sm-slider-dots button[aria-current]::after{width:19px;background:var(--sm-purple)}
.sm-slider-controls [data-play]{font-size:1rem}
.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.sm-section{padding-block:clamp(24px,4vw,54px)}
.sm-section h2{font-weight:900;letter-spacing:-.045em}
[dir="rtl"] .sm-section h2{letter-spacing:normal}
.woocommerce ul.products[class] li.product{border:1px solid #eadfed;box-shadow:0 6px 20px #38244409;transition:box-shadow .2s}
.woocommerce ul.products[class] li.product:hover{box-shadow:0 10px 25px #38244416}
.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:clamp(.95rem,1.5vw,1.25rem);color:var(--sm-ink);font-weight:850}
.sm-category{border:1px solid #dfd0ec;background:linear-gradient(130deg,#f1e7f9,#e8dcf2);padding:clamp(18px,3vw,36px)}
.sm-category:nth-child(even){border-color:#d0e3ef;background:linear-gradient(130deg,#edf7fc,#dbeaf5)}
.sm-category ul{list-style:none;padding-inline-start:0;display:flex;flex-wrap:wrap;gap:8px}
.sm-category li a{display:inline-block;padding:.3em .7em;border-radius:999px;background:#ffffffbd;text-decoration:none}
.sm-category li a:hover{text-decoration:underline}
@media(max-width:700px){
 .sm-slider .sm-hero{grid-template-columns:minmax(0,1fr);grid-template-rows:auto 1fr}
 .sm-slider .sm-hero-copy{padding:clamp(18px,5vw,36px);padding-block-end:10px}
 .sm-slider .sm-hero :is(h1,h2){max-inline-size:18ch;font-size:clamp(1.75rem,7vw,3.1rem)}
 .sm-hero-photo{align-self:end;aspect-ratio:1.65}
}
@media(prefers-reduced-motion:reduce){.woocommerce ul.products[class] li.product{transition:none}}
