/*
Theme Name: Hand Moroccan
Version: 1.1.1
Description: White editorial storefront for Hand Moroccan, with WooCommerce support.
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: hand-moroccan
*/
/* Keep every product gallery photo at its natural ratio without letterboxing. */
.woocommerce div.product div.images .woocommerce-product-gallery__image img:not(.zoomImg){aspect-ratio:auto!important;height:auto!important;padding:0!important;border:0!important;display:block}
.woocommerce div.product div.images .woocommerce-product-gallery__image a{padding:0;background:transparent}
.woocommerce div.product div.images .flex-viewport{border:0;background:transparent}

:root{--green:#0b3b2e;--wine:#7b1712;--gold:#a77932;--ink:#24382e;--line:#e3e7e3}*{box-sizing:border-box}body{margin:0;background:#fff;color:var(--ink);font:16px/1.7 Arial,sans-serif}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--gold);outline-offset:5px}button{cursor:pointer}img{max-width:100%;display:block}.wrap{width:min(1280px,90%);margin:auto}.announcement{text-align:center;background:var(--green);color:white;font-size:12px;letter-spacing:.17em;padding:8px}header{border-bottom:1px solid var(--line);background:white}.header-inner{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:114px}.brand{display:flex;align-items:center;gap:12px}.brand img{width:82px;height:86px;object-fit:contain}.brand span{font-family:Georgia,serif;font-size:21px;line-height:1.15;letter-spacing:.04em}.brand small{display:block;font:10px Arial;letter-spacing:.22em;margin-top:8px;color:var(--gold)}#navigation{display:flex;align-items:center;gap:25px;font-size:14px}#navigation a[aria-current=page]{color:var(--wine);border-bottom:1px solid var(--wine)}.account{font-size:14px}.btn{display:inline-flex;align-items:center;justify-content:center;background:var(--green);color:white;padding:13px 24px;border:1px solid var(--green);font-size:14px;letter-spacing:.03em;min-height:48px}.btn:hover{background:var(--wine);border-color:var(--wine)}.btn.outline{background:white;color:var(--green)}.btn.outline:hover{border-color:var(--wine);color:var(--wine)}.menu-toggle{display:none;background:white;border:1px solid var(--line);padding:8px 12px}.hero{display:grid;grid-template-columns:44% 56%;align-items:center;padding:52px 0 45px;gap:0}.hero-copy{padding:20px 42px 30px 0}.eyebrow{color:var(--gold);font-size:12px;text-transform:uppercase;letter-spacing:.2em;font-weight:bold}h1,h2,h3{font-family:Georgia,serif;font-weight:400;line-height:1.13}h1{font-size:clamp(40px,4.6vw,66px);letter-spacing:-.035em;margin:23px 0}h1 em{color:var(--wine);font-weight:400}h2{font-size:clamp(32px,3vw,43px);margin:12px 0 24px}h3{font-size:23px;margin:18px 0 10px}.hero-copy p{max-width:400px;color:#607068;margin:22px 0 30px}.actions{display:flex;gap:14px;flex-wrap:wrap}.text-link{padding:12px 0;border-bottom:1px solid var(--gold);font-size:14px}.hero-visual{position:relative}.hero-visual>img{width:100%;height:560px;object-fit:cover}.image-note{font-size:12px;color:#6f756f;margin:8px 0}.hero-caption{position:absolute;bottom:35px;left:28px;background:white;padding:15px 24px;border-left:3px solid var(--gold);font:18px Georgia}.qualities{display:flex;justify-content:space-around;gap:20px;padding:22px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-size:14px}.qualities span:first-letter{color:var(--gold)}section.collection{padding:66px 0}.section-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:30px}.section-head h2{margin-bottom:0}.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:25px}.card-image{background:#f3f4f1;overflow:hidden;aspect-ratio:4/5}.card-image img{width:100%;height:100%;object-fit:cover;transition:transform .35s}.card:hover img{transform:scale(1.035)}.card p{font-size:14px;color:#68756e;margin:0}.card .index{color:var(--gold);font-size:12px}.story{display:grid;grid-template-columns:1fr 1fr;gap:70px;align-items:center;padding:65px 0;border-top:1px solid var(--line)}.story-logo{background:#f7f8f5;min-height:390px;display:grid;place-items:center}.story-logo img{width:250px}.story p{color:#607068;max-width:490px}.page-heading{padding:54px 0 25px}.page-heading h1{font-size:50px}.shop-layout{display:grid;grid-template-columns:240px 1fr;gap:40px;padding-bottom:70px}.filters{border-top:1px solid var(--line);padding-top:20px}.filters button{display:block;border:0;background:white;text-align:left;width:100%;padding:10px 12px;font-size:14px;color:var(--ink)}.filters button.active{background:var(--green);color:white}.shop-layout .grid{grid-template-columns:repeat(3,minmax(0,1fr))}.toolbar{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:0 0 22px}.toolbar input{max-width:260px;width:100%;padding:10px;border:1px solid var(--line)}.notice{border-left:3px solid var(--gold);background:#f7f8f5;padding:16px 20px;margin:20px 0;font-size:14px}.content{padding:45px 0 75px;min-height:400px}.narrow{max-width:790px}.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:60px}.empty{padding:40px 0}.gallery{display:grid;grid-template-columns:2fr 1fr;gap:24px}.gallery img{height:450px;width:100%;object-fit:cover}.gallery img:last-child{object-fit:contain;background:#f7f8f5;padding:35px}footer{border-top:1px solid var(--line);padding:40px 0 25px}.footer-top{display:flex;justify-content:space-between;gap:30px}.footer-top p{max-width:330px;color:#68756e;font-size:14px}.footer-links{display:flex;gap:30px;font-size:14px}.copyright{border-top:1px solid var(--line);margin-top:30px;padding-top:20px;font-size:12px;color:#68756e}.whatsapp{position:fixed;bottom:24px;right:24px;border-radius:50px;background:var(--green);color:white;padding:13px 22px;box-shadow:0 5px 20px #0002;z-index:20;font-size:14px}.skip{position:absolute;left:-10000px}.skip:focus{left:15px;top:15px;background:white;z-index:99;padding:15px}.woocommerce{padding:35px 0 65px}.woocommerce ul.products li.product .button,.woocommerce button.button.alt,.woocommerce a.button.alt{background:var(--green);color:white;border-radius:0}.woocommerce input,.woocommerce textarea,.woocommerce select{padding:10px;max-width:100%}.woocommerce ul.products li.product .woocommerce-loop-product__title{font-family:Georgia;font-size:22px}.woocommerce ul.products li.product .price{color:var(--wine)}[hidden]{display:none!important}@media(max-width:1100px){.brand span{display:none}#navigation{gap:16px}.header-inner{gap:16px}.hero-visual>img{height:490px}.hero-copy{padding-right:24px}}@media(max-width:760px){.announcement{font-size:10px}.header-inner{min-height:88px;flex-wrap:wrap;padding:8px 0;gap:12px}.brand img{width:60px;height:64px}.brand span{display:block;font-size:16px}.brand small{font-size:8px}.menu-toggle{display:block;margin-left:auto}.header-inner>.account,.header-inner>.etsy{display:none}#navigation{display:none;flex-direction:column;align-items:stretch;width:100%;padding:16px 0}#navigation.open{display:flex}#navigation a{padding:8px}.hero{grid-template-columns:1fr;padding-top:22px}.hero-copy{padding:14px 0 30px}.hero-copy p{max-width:100%}h1{font-size:44px}.hero-visual>img{height:400px}.hero-caption{bottom:25px;left:18px;font-size:16px}.qualities{font-size:12px;gap:10px;text-align:center}.grid,.shop-layout .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}h3{font-size:21px}.section-head{align-items:start;gap:12px}.section-head .text-link{white-space:nowrap}.story{grid-template-columns:1fr;gap:25px;padding:35px 0}.story-logo{min-height:290px}.story-logo img{width:210px}.shop-layout{grid-template-columns:1fr;gap:20px}.filters{display:flex;overflow:auto;padding:12px 0;gap:8px}.filters button{width:auto;white-space:nowrap;border:1px solid var(--line)}.toolbar{flex-wrap:wrap}.toolbar input{max-width:none}.contact-grid,.gallery{grid-template-columns:1fr;gap:24px}.gallery img{height:340px}.footer-top{flex-direction:column}.footer-links{flex-wrap:wrap}.whatsapp{right:15px;bottom:15px}.page-heading h1{font-size:42px}.content{padding-top:25px}.woocommerce ul.products li.product{width:48%!important}.woocommerce table.shop_table{font-size:14px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}
@media(max-width:380px){.brand span{font-size:13px}.brand small{font-size:7px}.brand img{width:43px;height:48px}.brand{gap:7px}.header-inner{gap:8px}.menu-toggle{padding:7px 8px;font-size:14px}h1{font-size:39px}}

.mobile-etsy{display:none}@media(max-width:760px){.mobile-etsy{display:block}}

/* Brand contact buttons */
.btn.etsy,.mobile-etsy{background:#f1641e;color:#17251e;border-color:#f1641e}.btn.etsy:hover,.mobile-etsy:hover{background:#ff7a35;color:#17251e;border-color:#ff7a35}.mobile-etsy{padding:12px 18px}.whatsapp,.btn:has(.whatsapp-icon){display:inline-flex;align-items:center;justify-content:center;gap:9px}.whatsapp-icon{flex-shrink:0;vertical-align:middle}

/* Soft corners and multilingual layout, v1.1 */
.btn,.menu-toggle,.mobile-etsy,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.wc-block-components-button{border-radius:14px!important;transition:background .2s ease,box-shadow .2s ease,transform .2s ease}.btn:hover,.menu-toggle:hover,.woocommerce a.button:hover{transform:translateY(-2px);box-shadow:0 5px 14px #0b3b2e18}.filters button,input,select,textarea{border-radius:10px}.whatsapp{border-radius:50px}.language-bar{border-bottom:1px solid var(--line);font-size:13px}.language-bar>.wrap{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:7px 0}.currency-label{color:var(--green);direction:ltr}.language-switcher{display:flex;gap:5px;align-items:center}.language-switcher a{padding:4px 10px;border-radius:20px;line-height:1.6}.language-switcher a[aria-current=true]{background:var(--green);color:white}.language-switcher a:hover{background:#edf2ee;color:var(--green)}.hm-language-ar h1,.hm-language-ar h2,.hm-language-ar h3,html[lang=ar] h1,html[lang=ar] h2,html[lang=ar] h3{font-family:Tahoma,Arial,sans-serif;line-height:1.5;letter-spacing:0}.hm-language-ar .eyebrow,html[lang=ar] .eyebrow{letter-spacing:0}.hm-language-ar .hero-copy,html[lang=ar] .hero-copy{padding-right:0;padding-left:42px}.hm-language-ar .hero-caption,html[lang=ar] .hero-caption{left:auto;right:28px;border-left:0;border-right:3px solid var(--gold)}.hm-language-ar .filters button,html[lang=ar] .filters button{text-align:right}.hm-language-ar .brand,html[lang=ar] .brand{direction:ltr}.hm-language-ar .menu-toggle,html[lang=ar] .menu-toggle{margin-left:0;margin-right:auto}@media(max-width:760px){.hm-language-ar .hero-copy,html[lang=ar] .hero-copy{padding-left:0}.language-switcher a{padding:4px 8px}.header-inner{min-height:88px}.hm-language-ar h1,html[lang=ar] h1{font-size:39px}}

/* Accessible off-screen content must not create an RTL scroll area. */
.skip{position:absolute;left:0;top:0;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.skip:focus{width:auto;height:auto;clip-path:none;white-space:normal;padding:15px}.shop-categories{display:flex;flex-wrap:wrap;gap:10px;margin:32px 0 10px}.shop-categories a{border:1px solid var(--line);border-radius:24px;padding:8px 17px;font-size:14px}.shop-categories a:hover,.shop-categories a[aria-current=page]{background:var(--green);color:white}.hm-language-ar .hero h1 em{font-style:normal}

/* Hand Moroccan: editorial product photography */
.woocommerce ul.products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px 26px}
.woocommerce ul.products::before,.woocommerce ul.products::after{display:none!important}
.woocommerce ul.products li.product{float:none!important;width:auto!important;margin:0!important;display:flex;flex-direction:column;min-width:0}
.woocommerce ul.products li.product a.woocommerce-loop-product__link{display:block}
.woocommerce ul.products li.product a img{width:100%;height:auto;aspect-ratio:4/5;object-fit:contain;background:#f5f3ef;border:1px solid #eeeae3;border-radius:18px;margin:0 0 18px;transition:box-shadow .25s ease}
.woocommerce ul.products li.product a:hover img{box-shadow:0 10px 28px #0b3b2e16}
.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:22px;line-height:1.3;padding:0 0 10px;min-height:3em}
.woocommerce ul.products li.product .price{font-size:16px;margin-bottom:16px}
.woocommerce ul.products li.product .button{align-self:flex-start;margin-top:auto;padding:12px 20px;line-height:1.3}
.woocommerce span.onsale{background:var(--wine);color:white;border-radius:20px;min-height:0;min-width:0;line-height:1.5;padding:6px 13px;font-size:12px;top:12px;left:12px;right:auto;margin:0;z-index:3}
.woocommerce ul.products li.product .onsale{top:12px;left:12px;right:auto;margin:0}
.woocommerce div.product div.images{width:54%;margin-bottom:36px}
.woocommerce div.product div.summary{width:41%;padding-top:14px}
.woocommerce div.product div.images .flex-viewport{border-radius:20px;border:1px solid #eeeae3;background:#f5f3ef}
.woocommerce div.product div.images .woocommerce-product-gallery__image a{display:block;background:#f5f3ef}
.woocommerce div.product div.images .woocommerce-product-gallery__image img:not(.zoomImg){width:100%;height:auto;aspect-ratio:4/5;object-fit:contain;border-radius:0}
.woocommerce div.product div.images .flex-control-thumbs{display:flex;gap:10px;overflow-x:auto;padding:14px 2px 8px;margin:0;scroll-snap-type:x mandatory}
.woocommerce div.product div.images .flex-control-thumbs li{float:none;width:76px;flex:0 0 76px;margin:0;scroll-snap-align:start}
.woocommerce div.product div.images .flex-control-thumbs li img{width:76px;height:92px;object-fit:cover;border-radius:10px;border:2px solid transparent;opacity:.65;padding:2px;background:#f5f3ef}
.woocommerce div.product div.images .flex-control-thumbs li img.flex-active{border-color:var(--green);opacity:1}
.woocommerce div.product div.images .flex-control-thumbs li img:hover{opacity:1}
.woocommerce div.product div.images .woocommerce-product-gallery__trigger{top:14px;right:14px;box-shadow:0 2px 12px #0001}
.woocommerce div.product .product_title{font-size:clamp(30px,3.5vw,48px);line-height:1.15;margin-top:0}
.woocommerce div.product p.price{color:var(--wine)}
@media(max-width:760px){.woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 16px}.woocommerce ul.products li.product{width:auto!important}.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:18px}.woocommerce ul.products li.product .button{font-size:13px;padding:11px 15px}.woocommerce div.product div.images,.woocommerce div.product div.summary{float:none;width:100%}.woocommerce div.product div.images{margin-bottom:22px}.woocommerce div.product div.images .flex-control-thumbs li{flex-basis:64px;width:64px}.woocommerce div.product div.images .flex-control-thumbs li img{width:64px;height:78px}.woocommerce div.product .product_title{font-size:32px}}


/* Accessible off-screen content must not create an RTL scroll area. */
.skip{position:absolute;left:0;top:0;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.skip:focus{width:auto;height:auto;clip-path:none;white-space:normal;padding:15px}.shop-categories{display:flex;flex-wrap:wrap;gap:10px;margin:32px 0 10px}.shop-categories a{border:1px solid var(--line);border-radius:24px;padding:8px 17px;font-size:14px}.shop-categories a:hover,.shop-categories a[aria-current=page]{background:var(--green);color:white}.hm-language-ar .hero h1 em{font-style:normal}

/* Square catalogue photos: remove letterboxing. */
.woocommerce ul.products li.product a img{aspect-ratio:1/1;object-fit:cover;padding:0;}


/* Accessible off-screen content must not create an RTL scroll area. */
.skip{position:absolute;left:0;top:0;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.skip:focus{width:auto;height:auto;clip-path:none;white-space:normal;padding:15px}.shop-categories{display:flex;flex-wrap:wrap;gap:10px;margin:32px 0 10px}.shop-categories a{border:1px solid var(--line);border-radius:24px;padding:8px 17px;font-size:14px}.shop-categories a:hover,.shop-categories a[aria-current=page]{background:var(--green);color:white}.hm-language-ar .hero h1 em{font-style:normal}

/* Hand Moroccan: editorial product photography */
.woocommerce ul.products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px 26px}
.woocommerce ul.products::before,.woocommerce ul.products::after{display:none!important}
.woocommerce ul.products li.product{float:none!important;width:auto!important;margin:0!important;display:flex;flex-direction:column;min-width:0}
.woocommerce ul.products li.product a.woocommerce-loop-product__link{display:block}
.woocommerce ul.products li.product a img{width:100%;height:auto;aspect-ratio:4/5;object-fit:contain;background:#f5f3ef;border:1px solid #eeeae3;border-radius:18px;margin:0 0 18px;transition:box-shadow .25s ease}
.woocommerce ul.products li.product a:hover img{box-shadow:0 10px 28px #0b3b2e16}
.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:22px;line-height:1.3;padding:0 0 10px;min-height:3em}
.woocommerce ul.products li.product .price{font-size:16px;margin-bottom:16px}
.woocommerce ul.products li.product .button{align-self:flex-start;margin-top:auto;padding:12px 20px;line-height:1.3}
.woocommerce span.onsale{background:var(--wine);color:white;border-radius:20px;min-height:0;min-width:0;line-height:1.5;padding:6px 13px;font-size:12px;top:12px;left:12px;right:auto;margin:0;z-index:3}
.woocommerce ul.products li.product .onsale{top:12px;left:12px;right:auto;margin:0}
.woocommerce div.product div.images{width:54%;margin-bottom:36px}
.woocommerce div.product div.summary{width:41%;padding-top:14px}
.woocommerce div.product div.images .flex-viewport{border-radius:20px;border:1px solid #eeeae3;background:#f5f3ef}
.woocommerce div.product div.images .woocommerce-product-gallery__image a{display:block;background:#f5f3ef}
.woocommerce div.product div.images .woocommerce-product-gallery__image img:not(.zoomImg){width:100%;height:auto;aspect-ratio:4/5;object-fit:contain;border-radius:0}
.woocommerce div.product div.images .flex-control-thumbs{display:flex;gap:10px;overflow-x:auto;padding:14px 2px 8px;margin:0;scroll-snap-type:x mandatory}
.woocommerce div.product div.images .flex-control-thumbs li{float:none;width:76px;flex:0 0 76px;margin:0;scroll-snap-align:start}
.woocommerce div.product div.images .flex-control-thumbs li img{width:76px;height:92px;object-fit:cover;border-radius:10px;border:2px solid transparent;opacity:.65;padding:2px;background:#f5f3ef}
.woocommerce div.product div.images .flex-control-thumbs li img.flex-active{border-color:var(--green);opacity:1}
.woocommerce div.product div.images .flex-control-thumbs li img:hover{opacity:1}
.woocommerce div.product div.images .woocommerce-product-gallery__trigger{top:14px;right:14px;box-shadow:0 2px 12px #0001}
.woocommerce div.product .product_title{font-size:clamp(30px,3.5vw,48px);line-height:1.15;margin-top:0}
.woocommerce div.product p.price{color:var(--wine)}
@media(max-width:760px){.woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 16px}.woocommerce ul.products li.product{width:auto!important}.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:18px}.woocommerce ul.products li.product .button{font-size:13px;padding:11px 15px}.woocommerce div.product div.images,.woocommerce div.product div.summary{float:none;width:100%}.woocommerce div.product div.images{margin-bottom:22px}.woocommerce div.product div.images .flex-control-thumbs li{flex-basis:64px;width:64px}.woocommerce div.product div.images .flex-control-thumbs li img{width:64px;height:78px}.woocommerce div.product .product_title{font-size:32px}}


/* Accessible off-screen content must not create an RTL scroll area. */
.skip{position:absolute;left:0;top:0;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.skip:focus{width:auto;height:auto;clip-path:none;white-space:normal;padding:15px}.shop-categories{display:flex;flex-wrap:wrap;gap:10px;margin:32px 0 10px}.shop-categories a{border:1px solid var(--line);border-radius:24px;padding:8px 17px;font-size:14px}.shop-categories a:hover,.shop-categories a[aria-current=page]{background:var(--green);color:white}.hm-language-ar .hero h1 em{font-style:normal}
