/*
Theme Name: Solatec Solar Energy
Description: Theme for Solatec Solar Energy with a built-in shop (products, cart, cash-on-delivery orders, accounts). Does NOT need WooCommerce. Editable from Appearance > Customize.
Version: 2.0.0
Requires at least: 6.5
Requires PHP: 7.4
Author: Solatec
Text Domain: solatec
*/
:root{--orange:#F7931E;--red:#E8541E;--green:#7AC943;--green-d:#5FA02A;--dark:#3A3A3A;--ink:#2B2B2B;--cream:#FFF8F0}
*{box-sizing:border-box}
body{margin:0;font-family:'Poppins',sans-serif;color:var(--dark);background:var(--cream);line-height:1.6}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto}
.container{max-width:1280px;margin:0 auto;padding:0 48px}
.btn,.button,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce #respond input#submit{display:inline-block;padding:14px 28px;border-radius:999px;font-weight:600;font-size:15px;border:0;cursor:pointer;background:var(--orange);color:var(--ink);font-family:inherit;transition:filter .2s}
.btn:hover,.button:hover,.woocommerce a.button:hover,.woocommerce button.button:hover{filter:brightness(.93);color:var(--ink)}
.btn-dark{background:var(--dark);color:#fff}
.btn-dark:hover{color:#fff}
.btn-outline{background:transparent;border:2px solid #fff;color:#fff;padding:12px 26px}
.btn-outline:hover{color:#fff}
.woocommerce a.button.add_to_cart_button,.woocommerce a.button.product_type_simple,.woocommerce button.single_add_to_cart_button,.woocommerce a.button.alt,.woocommerce button.button.alt{background:var(--green);color:var(--ink);padding:10px 20px;font-size:14px}
.woocommerce a.added_to_cart{display:inline-block;margin-left:8px;font-size:14px;color:var(--green-d);font-weight:600}
/* top bar + header */
.topbar{background:var(--dark);color:#fff;font-size:13px;padding:10px 0}
.topbar .container{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap}
.site-header{background:#fff;padding:18px 0;position:sticky;top:0;z-index:50;box-shadow:0 2px 10px rgba(0,0,0,.05)}
.site-header .container{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap}
.logo-text{font-weight:700;font-size:26px;letter-spacing:1px;line-height:1.1}
.logo-text .a{color:var(--green-d)}.logo-text .s{color:var(--red)}
.logo-text small{display:block;font-size:10px;letter-spacing:4px;font-weight:500}
.custom-logo{max-height:64px;width:auto}
.main-nav ul{list-style:none;margin:0;padding:0;display:flex;gap:28px;flex-wrap:wrap;font-weight:500;font-size:15px}
.main-nav a:hover,.main-nav .current-menu-item>a{color:var(--red)}
.header-actions{display:flex;gap:12px}
.header-actions .btn{padding:10px 20px}
.cart-count{margin-left:2px}
/* hero */
.hero{background:linear-gradient(120deg,var(--dark) 45%,var(--red) 130%);color:#fff;padding:90px 0}
.hero .container{display:flex;align-items:center;justify-content:space-between;gap:40px;flex-wrap:wrap}
.hero-text{max-width:560px}
.eyebrow{color:var(--green);font-weight:600;letter-spacing:2px;font-size:13px;text-transform:uppercase}
.hero h1{font-size:52px;line-height:1.1;margin:14px 0 18px}
.hero h1 span{color:var(--orange)}
.hero p{font-size:17px;color:#F3E9DF;margin:0 0 30px}
.hero-btns{display:flex;gap:12px;flex-wrap:wrap}
.hero-img{width:460px;max-width:100%;height:320px;border-radius:24px;object-fit:cover;border:2px solid rgba(247,147,30,.6)}
.hero-ph{width:460px;max-width:100%;height:320px;border-radius:24px;border:2px dashed var(--orange);display:flex;align-items:center;justify-content:center;color:#FFE3C2;font-size:14px}
/* sections */
.section{padding:56px 0 24px}
.section h2{font-size:32px;margin:0 0 28px}
.grid{display:grid;gap:20px}
.grid-cats{grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}
.grid-products{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
.card{background:#fff;border-radius:16px;padding:20px;box-shadow:0 2px 12px rgba(58,58,58,.08);display:block}
.card .thumb{height:170px;border-radius:12px;background:linear-gradient(135deg,#FFE3C2,#FBF0E3);overflow:hidden;display:flex;align-items:center;justify-content:center}
.card .thumb img{width:100%;height:100%;object-fit:cover}
.card h3{margin:16px 0 4px;font-size:17px}
.card .more{color:var(--green-d);font-size:14px}
.price{font-weight:700;color:#C2410C;margin-bottom:14px}
.price del{color:#8a8a8a;font-weight:400;margin-right:6px}
.price ins{text-decoration:none}
.features{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:24px;padding:40px 0 64px}
.features div{padding-top:16px;border-top:4px solid var(--green)}
.features div:nth-child(2){border-color:var(--orange)}.features div:nth-child(3){border-color:var(--red)}
.features h3{margin:0 0 8px}.features p{margin:0}
.cta{background:var(--orange);border-radius:24px;padding:48px;display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;margin-bottom:64px}
.cta h2{margin:0;font-size:32px;max-width:640px;color:var(--ink)}
/* footer */
.site-footer{background:var(--dark);color:#EDE6DE;padding:48px 0;font-size:14px}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:32px}
.site-footer h4{color:#fff;margin:0 0 10px}
.site-footer ul{list-style:none;margin:0;padding:0}
.site-footer li{margin-bottom:6px}
.site-footer a:hover{color:var(--orange)}
.copy{margin-top:32px;padding-top:20px;border-top:1px solid rgba(255,255,255,.15);font-size:13px}
/* inner pages */
.page-wrap{padding:48px 0 64px}
.page-wrap h1.entry-title{font-size:36px;margin-top:0}
.woocommerce ul.products li.product{background:#fff;border-radius:16px;padding:16px;box-shadow:0 2px 12px rgba(58,58,58,.08)}
.woocommerce ul.products li.product .price,.woocommerce div.product p.price{color:#C2410C;font-weight:700}
.woocommerce-message,.woocommerce-info{border-top-color:var(--green)}
@media(max-width:800px){.container{padding:0 20px}.hero h1{font-size:36px}.footer-grid{grid-template-columns:1fr}.cta{padding:28px}}
/* header search */
.hsearch input[type=search]{border:2px solid #E7DED3;border-radius:999px;padding:9px 16px;font-family:inherit;font-size:14px;width:170px;background:#fff}
.hsearch input[type=search]:focus{outline:0;border-color:var(--orange)}
.screen-reader-text{position:absolute;left:-9999px}
/* single product */
.woocommerce div.product{background:#fff;border-radius:16px;padding:28px;box-shadow:0 2px 12px rgba(58,58,58,.08)}
.woocommerce div.product .product_title{font-size:30px;margin-top:0}
.woocommerce div.product p.price,.woocommerce div.product span.price{font-size:24px}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active{border-bottom-color:#fff}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a{color:var(--red)}
.woocommerce span.onsale{background:var(--red);color:#fff;border-radius:999px;min-height:auto;min-width:auto;line-height:1;padding:8px 14px}
.woocommerce .quantity .qty{border:2px solid #E7DED3;border-radius:10px;padding:10px}
/* cart + checkout */
.woocommerce table.shop_table{border-radius:12px;background:#fff;border-color:#EFE6DB}
.woocommerce a.checkout-button,.woocommerce #payment #place_order,.wc-block-cart__submit-button,.wc-block-components-checkout-place-order-button{background:var(--green)!important;color:var(--ink)!important;border-radius:999px!important;font-weight:600}
.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,.wc-block-components-text-input input{border-radius:10px}
.woocommerce-message::before,.woocommerce-info::before{color:var(--green-d)}
.woocommerce nav.woocommerce-pagination ul li span.current{background:var(--orange);color:var(--ink)}
.woocommerce .woocommerce-breadcrumb{font-size:13px;margin-bottom:20px}

/* ================= MOTION ================= */
@keyframes fadeUp{from{opacity:0;transform:translateY(28px)}to{opacity:1;transform:none}}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes floaty{0%,100%{transform:translateY(0)}50%{transform:translateY(-12px)}}
@keyframes glow{0%,100%{box-shadow:0 0 0 0 rgba(247,147,30,.55)}70%{box-shadow:0 0 0 16px rgba(247,147,30,0)}}
@keyframes bump{0%{transform:scale(1)}40%{transform:scale(1.7)}100%{transform:scale(1)}}
@keyframes bgshift{0%,100%{background-position:0% 50%}50%{background-position:100% 50%}}

/* hero: entrance + living background */
.hero{background-size:180% 180%;animation:bgshift 14s ease-in-out infinite;position:relative;overflow:hidden}
.hero-text>*{opacity:0;animation:fadeUp .8s cubic-bezier(.2,.7,.2,1) forwards}
.hero-text>*:nth-child(1){animation-delay:.1s}
.hero-text>*:nth-child(2){animation-delay:.25s}
.hero-text>*:nth-child(3){animation-delay:.4s}
.hero-text>*:nth-child(4){animation-delay:.55s}
.hero-media{position:relative;width:460px;max-width:100%;opacity:0;animation:fadeIn 1s .35s ease forwards;transform:translateY(var(--py,0))}
.hero-media .sun{position:absolute;width:560px;height:560px;left:50%;top:50%;margin:-280px 0 0 -280px;border-radius:50%;z-index:0;pointer-events:none;
  background:repeating-conic-gradient(rgba(247,147,30,.6) 0 4deg,transparent 4deg 12deg);
  -webkit-mask:radial-gradient(circle,transparent 56%,#000 57%,#000 72%,transparent 73%);
  mask:radial-gradient(circle,transparent 56%,#000 57%,#000 72%,transparent 73%);
  animation:spin 50s linear infinite}
.hero-img,.hero-ph{position:relative;z-index:1;animation:floaty 6s ease-in-out infinite}
.hero h1 span{display:inline-block;background:linear-gradient(90deg,var(--orange),#FFD08A,var(--orange));background-size:200% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:bgshift 4s linear infinite}

/* buttons */
.btn,.woocommerce a.button,.woocommerce button.button{position:relative;overflow:hidden;transition:transform .2s,filter .2s,box-shadow .2s}
.btn:hover,.woocommerce a.button:hover,.woocommerce button.button:hover{transform:translateY(-2px);box-shadow:0 8px 18px rgba(0,0,0,.18)}
.btn::after{content:"";position:absolute;top:0;left:-60%;width:40%;height:100%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.55),transparent);transform:skewX(-20deg);transition:left .6s}
.btn:hover::after{left:130%}
.hero-btns .btn:first-child,.cta .btn{animation:glow 2.4s infinite}

/* header */
.site-header{transition:padding .25s,box-shadow .25s}
.site-header.scrolled{padding:8px 0;box-shadow:0 6px 20px rgba(0,0,0,.12)}
.main-nav a{position:relative}
.main-nav a::after{content:"";position:absolute;left:0;bottom:-4px;height:2px;width:0;background:var(--orange);transition:width .25s}
.main-nav a:hover::after,.main-nav .current-menu-item>a::after{width:100%}
.cart-count{display:inline-block}
.cart-count.bump{animation:bump .5s ease}

/* scroll reveal (only when JS is on) */
.js .reveal{opacity:0;transform:translateY(34px);transition:opacity .7s ease var(--d,0ms),transform .7s cubic-bezier(.2,.7,.2,1) var(--d,0ms)}
.js .reveal.in{opacity:1;transform:none}

/* cards */
.card{transition:transform .3s,box-shadow .3s}
.card:hover{transform:translateY(-8px);box-shadow:0 16px 32px rgba(232,84,30,.18)}
.card .thumb img{transition:transform .5s}
.card:hover .thumb img{transform:scale(1.08)}
.card .more{display:inline-block;transition:transform .25s}
.card:hover .more{transform:translateX(6px)}
.features div{transition:transform .3s}
.features div:hover{transform:translateY(-6px)}
.cta{background:linear-gradient(110deg,var(--orange),#FFB155,var(--orange));background-size:200% 100%;animation:bgshift 8s ease-in-out infinite}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important}
  .hero-text>*,.hero-media{opacity:1!important}
  .js .reveal{opacity:1;transform:none}
}
@media(max-width:800px){.hero-media .sun{width:420px;height:420px;margin:-210px 0 0 -210px}}

/* logo + social */
.custom-logo{max-height:72px;width:auto;display:block;transition:max-height .25s}
.site-header.scrolled .custom-logo{max-height:52px}
.footer-logo{display:inline-block;background:#fff;border-radius:14px;padding:8px 12px;margin-bottom:14px}
.footer-logo .custom-logo{max-height:80px}
.topbar a:hover{color:var(--orange)}
.topbar-right{display:flex;align-items:center;gap:16px}
.social{display:inline-flex;gap:10px;align-items:center}
.social a{width:34px;height:34px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:rgba(255,255,255,.12);color:#fff;transition:background .2s,transform .2s}
.social a:hover{background:var(--orange);color:var(--ink);transform:translateY(-3px)}
.topbar .social a{width:26px;height:26px;background:transparent}
.topbar .social svg{width:16px;height:16px}
.site-footer .social{margin-top:14px}

/* ================= INNER PAGES ================= */
@keyframes popIn{from{opacity:0;transform:scale(.97) translateY(12px)}to{opacity:1;transform:none}}
.page-hero{position:relative;overflow:hidden;color:#fff;padding:64px 0 56px;background:linear-gradient(120deg,var(--dark) 50%,var(--red) 140%);background-size:180% 180%;animation:bgshift 14s ease-in-out infinite}
.page-hero .container{position:relative;z-index:1}
.page-hero .sun{position:absolute;right:-120px;top:50%;width:420px;height:420px;margin-top:-210px;border-radius:50%;pointer-events:none;
  background:repeating-conic-gradient(rgba(247,147,30,.5) 0 4deg,transparent 4deg 12deg);
  -webkit-mask:radial-gradient(circle,transparent 56%,#000 57%,#000 72%,transparent 73%);mask:radial-gradient(circle,transparent 56%,#000 57%,#000 72%,transparent 73%);
  animation:spin 50s linear infinite}
.page-hero .crumbs{font-size:13px;color:#F3E9DF;opacity:0;animation:fadeUp .7s .05s forwards}
.page-hero .crumbs a:hover{color:var(--orange)}
.page-hero h1{font-size:44px;margin:8px 0 10px;opacity:0;animation:fadeUp .8s .15s forwards}
.page-hero p{max-width:620px;margin:0;color:#F3E9DF;font-size:17px;opacity:0;animation:fadeUp .8s .3s forwards}
.eyebrow.dark{color:var(--green-d)}

/* products page */
.chips{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:32px}
.chip{border:2px solid #E7DED3;background:#fff;color:var(--dark);border-radius:999px;padding:10px 22px;font-family:inherit;font-weight:600;font-size:14px;cursor:pointer;transition:all .2s}
.chip:hover{border-color:var(--orange);transform:translateY(-2px)}
.chip.active{background:var(--orange);border-color:var(--orange);color:var(--ink);box-shadow:0 6px 16px rgba(247,147,30,.35)}
.cat-block{margin-bottom:56px}
.cat-block.pop{animation:popIn .5s ease}
.cat-head{display:flex;align-items:baseline;justify-content:space-between;gap:16px;border-bottom:3px solid var(--orange);padding-bottom:10px;margin-bottom:12px}
.cat-head h2{margin:0;font-size:28px}
.more-link{color:var(--green-d);font-weight:600;font-size:14px;transition:transform .2s;display:inline-block}
.more-link:hover{transform:translateX(5px)}
.cat-desc{margin:0 0 18px}
.notice-box{background:#fff;border-left:5px solid var(--orange);padding:18px 22px;border-radius:10px}
[hidden]{display:none!important}

/* about page */
.split{display:grid;grid-template-columns:1.1fr .9fr;gap:56px;align-items:center;margin-bottom:64px}
.split-text h2{font-size:34px;margin:6px 0 16px}
.split-text p{margin:0 0 14px;font-size:16px}
.split-media{position:relative;display:flex;align-items:center;justify-content:center;min-height:320px}
.split-media img,.media-ph{position:relative;z-index:1;width:100%;max-height:420px;object-fit:cover;border-radius:24px;box-shadow:0 18px 40px rgba(58,58,58,.18)}
.media-ph{height:320px;background:linear-gradient(135deg,#FFE3C2,#FBF0E3);display:flex;align-items:center;justify-content:center;text-align:center;padding:20px;font-size:14px;color:#6B5B4B}
.ring{position:absolute;width:115%;aspect-ratio:1;border-radius:50%;
  background:repeating-conic-gradient(rgba(247,147,30,.35) 0 4deg,transparent 4deg 12deg);
  -webkit-mask:radial-gradient(circle,transparent 58%,#000 59%,#000 72%,transparent 73%);mask:radial-gradient(circle,transparent 58%,#000 59%,#000 72%,transparent 73%);animation:spin 60s linear infinite}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:20px;background:var(--dark);color:#fff;border-radius:24px;padding:40px;margin-bottom:64px;text-align:center}
.stats strong{display:block;font-size:44px;color:var(--orange);line-height:1.1}
.stats span{font-size:14px;color:#EDE6DE}
.duo{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:24px;margin-bottom:24px}
.duo .card{border-top:4px solid var(--green)}
.duo .card:nth-child(2){border-top-color:var(--red)}
.duo h3{margin:0 0 8px;font-size:22px}.duo p{margin:0}
.extra{margin-bottom:40px}

/* contact page */
.contact-grid{display:grid;grid-template-columns:.8fr 1.2fr;gap:32px;align-items:start}
.contact-info{display:grid;gap:16px}
.card.info{display:flex;gap:16px;align-items:center;padding:18px 20px}
.card.info h3{margin:0 0 2px;font-size:15px}
.card.info a,.card.info span{font-size:15px}
.card.info a:hover{color:var(--red)}
.dot{width:14px;height:14px;border-radius:50%;background:var(--orange);flex:none;animation:glow 2.4s infinite}
.dot.green{background:var(--green)}.dot.red{background:var(--red)}
.social-card .social a{background:var(--dark)}
.social-card .social a:hover{background:var(--orange)}
.contact-form{padding:32px}
.contact-form h2{margin:0 0 18px;font-size:28px}
.contact-form label{display:block;font-weight:500;font-size:14px;margin-bottom:16px}
.contact-form input,.contact-form textarea{display:block;width:100%;margin-top:6px;padding:12px 14px;border:2px solid #E7DED3;border-radius:12px;font-family:inherit;font-size:15px;background:#fff;transition:border-color .2s,box-shadow .2s}
.contact-form input:focus,.contact-form textarea:focus{outline:0;border-color:var(--orange);box-shadow:0 0 0 4px rgba(247,147,30,.18)}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.hp{position:absolute;left:-9999px;height:0;overflow:hidden}
.alert{padding:14px 18px;border-radius:12px;margin-bottom:18px;font-weight:500;animation:popIn .4s ease}
.alert.ok{background:#EAF7DD;color:#2F5D10}
.alert.bad{background:#FDE7DF;color:#8A2B0B}
.map{margin-top:40px;border-radius:20px;overflow:hidden;box-shadow:0 2px 12px rgba(58,58,58,.1)}
.map iframe{display:block;width:100%;height:380px;border:0}

@media(max-width:800px){
  .split,.contact-grid,.row2{grid-template-columns:1fr}
  .page-hero h1{font-size:32px}
  .page-hero .sun{width:300px;height:300px;margin-top:-150px;right:-120px}
  .main-nav ul{gap:16px}
}
@media (prefers-reduced-motion:reduce){.page-hero .crumbs,.page-hero h1,.page-hero p{opacity:1!important}}

/* footer bottom bar */
.copy{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}
.footer-links ul{display:flex;gap:22px;flex-wrap:wrap;justify-content:flex-end}
.footer-links li{margin:0}
.footer-links a{position:relative}
.footer-links a::after{content:"";position:absolute;left:0;bottom:-3px;height:2px;width:0;background:var(--orange);transition:width .25s}
.footer-links a:hover::after{width:100%}
.site-footer h4{text-transform:uppercase;letter-spacing:1px;font-size:14px;color:var(--orange)}
@media(max-width:800px){.footer-links ul{justify-content:flex-start}}

/* bigger logo */
.custom-logo{max-height:110px}
.site-header.scrolled .custom-logo{max-height:70px}
.footer-logo .custom-logo{max-height:110px}
@media(max-width:800px){.custom-logo{max-height:80px}.site-header.scrolled .custom-logo{max-height:56px}.footer-logo .custom-logo{max-height:90px}}

/* header: menu, search and cart aligned with the bottom of the logo */
.site-header .container{align-items:flex-end}
.main-nav{padding-bottom:10px}
.header-actions{align-items:flex-end;padding-bottom:6px}

/* add-to-cart buttons aligned at the bottom of every card */
.grid-products .card{display:flex;flex-direction:column}
.grid-products .card .card-btn{margin-top:auto;padding-top:6px}
.woocommerce ul.products li.product{display:flex;flex-direction:column}
.woocommerce ul.products li.product .button{margin-top:auto;align-self:flex-start}
.woocommerce ul.products li.product .price{margin-bottom:14px}

/* ===== Shop / category pages: equal cards, aligned buttons ===== */
.woocommerce ul.products::before,.woocommerce ul.products::after,.woocommerce-page ul.products::before,.woocommerce-page ul.products::after{content:none!important;display:none!important}
.woocommerce ul.products,.woocommerce-page ul.products{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:20px;margin:0 0 30px;padding:0}
.woocommerce ul.products[class*="columns-"] li.product,.woocommerce-page ul.products[class*="columns-"] li.product{width:auto!important;float:none!important;margin:0!important;display:flex;flex-direction:column;position:relative}
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link{display:block}
.woocommerce ul.products li.product a img{width:100%;height:220px;object-fit:contain;margin:0 0 12px;border-radius:12px;background:#fff}
.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:17px;line-height:1.35;padding:0;margin:8px 0 6px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.woocommerce ul.products li.product .price{display:block;margin-bottom:14px}
.woocommerce ul.products li.product .button{margin-top:auto;align-self:flex-start;min-width:160px;text-align:center}

/* Homepage / Products page cards: same title height + same button size */
.grid-products .card h3{line-height:1.35;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.grid-products .card .button{min-width:160px;text-align:center}

/* ===== Mobile: 2 equal cards per row, same size, buttons aligned ===== */
@media(max-width:600px){
  .woocommerce ul.products,.woocommerce-page ul.products,.grid-products{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px}
  .woocommerce ul.products li.product,.grid-products .card{padding:12px;border-radius:14px}
  .woocommerce ul.products li.product a img,.grid-products .card .thumb{height:140px}
  .woocommerce ul.products li.product .woocommerce-loop-product__title,.grid-products .card h3{font-size:14px;line-height:1.35;margin:8px 0 4px}
  .woocommerce ul.products li.product .price,.grid-products .card .price{font-size:14px;margin-bottom:10px}
  .woocommerce ul.products li.product .button,.grid-products .card .button{width:100%;min-width:0;align-self:stretch;padding:10px 8px;font-size:13px;text-align:center}
  .woocommerce span.onsale{font-size:11px;padding:6px 10px;top:6px;right:6px}
}

/* force every row of product cards to the same height */
.woocommerce ul.products,.woocommerce-page ul.products,.grid-products{grid-auto-rows:1fr}
.woocommerce ul.products li.product{height:100%}

/* hero image: no frame */
.hero-img{border:0!important;border-radius:0!important;object-fit:contain;background:none}

/* hero: image behind the rotating sun ring */
.hero-media .sun{z-index:2}
.hero-img,.hero-ph{z-index:1}

/* About page: smaller image, sitting under the rotating ring */
.split-media{min-height:520px}
.split-media img,.media-ph{width:70%;max-height:340px;border-radius:20px}
.media-ph{height:260px}
.ring{z-index:2;pointer-events:none}
@media(max-width:800px){.split-media{min-height:380px}.ring{width:100%}.split-media img,.media-ph{width:62%}}

/* About page: image a bit bigger */
.split-media img,.media-ph{width:84%;max-height:400px}
.media-ph{height:300px}
@media(max-width:800px){.split-media img,.media-ph{width:74%}}

/* ===== My Account: login + register ===== */
.woocommerce-account .u-columns.col2-set{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:start}
.woocommerce-account .u-columns.col2-set::before,.woocommerce-account .u-columns.col2-set::after{content:none!important;display:none!important}
.woocommerce-account .u-columns .u-column1,.woocommerce-account .u-columns .u-column2{float:none!important;width:auto!important;background:#fff;border-radius:16px;padding:28px;box-shadow:0 2px 12px rgba(58,58,58,.08);animation:fadeUp .7s both}
.woocommerce-account .u-columns .u-column2{animation-delay:.15s;border-top:4px solid var(--green)}
.woocommerce-account .u-columns .u-column1{border-top:4px solid var(--orange)}
.woocommerce-account .u-columns h2{font-size:26px;margin:0 0 16px}
.woocommerce form.login,.woocommerce form.register{border:0;padding:0;margin:0;border-radius:0}
.woocommerce form .form-row input.input-text{border:2px solid #E7DED3;padding:12px 14px;font-family:inherit;font-size:15px;transition:border-color .2s,box-shadow .2s}
.woocommerce form .form-row input.input-text:focus{outline:0;border-color:var(--orange);box-shadow:0 0 0 4px rgba(247,147,30,.18)}
.woocommerce form.login .button,.woocommerce form.register .button{width:100%;padding:14px;margin-top:6px}
.woocommerce form.register .woocommerce-form-register__submit{background:var(--green);color:var(--ink)}
.woocommerce-account .lost_password{margin:12px 0 0}
.woocommerce-account .lost_password a:hover{color:var(--red)}
@media(max-width:800px){.woocommerce-account .u-columns.col2-set{grid-template-columns:1fr}}

/* ===== Account dropdown (My Account / Logout) ===== */
.main-nav li{position:relative}
.main-nav .solatec-account>a{display:inline-flex;align-items:center;gap:6px}
.main-nav .solatec-account>a::before{content:"\25BE";order:2;font-size:12px}
.main-nav ul.sub-menu{position:absolute;top:100%;left:0;min-width:170px;background:#fff;border-radius:12px;box-shadow:0 12px 28px rgba(58,58,58,.18);padding:8px;margin:0;list-style:none;display:flex;flex-direction:column;flex-wrap:nowrap;gap:0;opacity:0;visibility:hidden;transform:translateY(8px);transition:opacity .2s,transform .2s,visibility .2s;z-index:60}
.main-nav li:hover>ul.sub-menu,.main-nav li:focus-within>ul.sub-menu{opacity:1;visibility:visible;transform:none}
.main-nav ul.sub-menu a{display:block;padding:10px 14px;border-radius:8px;white-space:nowrap}
.main-nav ul.sub-menu a::after{display:none}
.main-nav ul.sub-menu a:hover{background:var(--cream);color:var(--red)}
@media(max-width:800px){
  .main-nav .solatec-account{display:flex;align-items:center;gap:12px}
  .main-nav .solatec-account>a::before{display:none}
  .main-nav ul.sub-menu{position:static;opacity:1;visibility:visible;transform:none;box-shadow:none;background:transparent;padding:0;min-width:0}
  .main-nav ul.sub-menu .solatec-acc-home{display:none}
  .main-nav ul.sub-menu a{padding:0;color:var(--red)}
}

/* ===== Login / Register boxes ===== */
.auth-box{max-width:520px;margin:0 auto;background:#fff;border-radius:16px;padding:32px;box-shadow:0 2px 12px rgba(58,58,58,.08);border-top:4px solid var(--orange);animation:fadeUp .7s both}
.auth-box--register{border-top-color:var(--green)}
.auth-box h2{font-size:28px;margin:0 0 18px}
.auth-box .lost_password{text-align:center;margin:16px 0 0}
.auth-box .lost_password a:hover{color:var(--red)}
.auth-switch{text-align:center;margin:20px 0 0;padding-top:18px;border-top:1px solid #EFE6DB}
.auth-switch a{color:var(--red);font-weight:600}
.auth-switch a:hover{text-decoration:underline}
.auth-box .woocommerce-form-login__rememberme{display:inline-flex;align-items:center;gap:8px;margin-bottom:12px}
.auth-box .woocommerce-privacy-policy-text{font-size:13px;color:#6B5B4B}
.auth-box .button{width:100%;padding:14px}
.auth-box--register .button{background:var(--green);color:var(--ink)}

/* Add to cart buttons centered in every product card */
.grid-products .card .card-btn{text-align:center}
.woocommerce ul.products li.product .button{align-self:center}
.woocommerce ul.products li.product .added_to_cart,.grid-products .card .added_to_cart{display:block;margin:8px 0 0;text-align:center;align-self:center}

/* Single product: SKU / Category / Brand each on its own line */
.woocommerce div.product .product_meta{margin-top:18px;padding-top:14px;border-top:1px solid #EFE6DB;font-size:14px}
.woocommerce div.product .product_meta>span{display:block;margin-bottom:6px}
.woocommerce div.product .product_meta a{color:var(--red);font-weight:500}
.woocommerce div.product .product_meta a:hover{text-decoration:underline}

/* ================= GALLERY ================= */
/* WordPress Gallery block: clean grid, rounded cards, hover zoom + orange overlay */
.wp-block-gallery.has-nested-images{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px!important;margin:0 0 32px}
.wp-block-gallery.has-nested-images figure.wp-block-image{width:auto!important;flex:none!important;margin:0!important;position:relative;overflow:hidden;border-radius:16px;aspect-ratio:4/3;background:#fff;box-shadow:0 2px 12px rgba(58,58,58,.1);transition:transform .3s,box-shadow .3s}
.wp-block-gallery.has-nested-images figure.wp-block-image img{width:100%!important;height:100%!important;object-fit:cover;display:block;transition:transform .6s}
.wp-block-gallery.has-nested-images figure.wp-block-image:hover{transform:translateY(-6px);box-shadow:0 16px 32px rgba(232,84,30,.22)}
.wp-block-gallery.has-nested-images figure.wp-block-image:hover img{transform:scale(1.1)}
.wp-block-gallery.has-nested-images figure.wp-block-image::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(232,84,30,.6),transparent 55%);opacity:0;transition:opacity .3s;pointer-events:none}
.wp-block-gallery.has-nested-images figure.wp-block-image::before{content:"+";position:absolute;right:14px;bottom:14px;width:38px;height:38px;border-radius:50%;background:var(--orange);color:var(--ink);display:flex;align-items:center;justify-content:center;font-size:24px;font-weight:700;line-height:1;z-index:2;transform:scale(0);transition:transform .3s;pointer-events:none}
.wp-block-gallery.has-nested-images figure.wp-block-image:hover::after{opacity:1}
.wp-block-gallery.has-nested-images figure.wp-block-image:hover::before{transform:scale(1)}
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption{z-index:3;font-family:inherit;font-size:13px}
.wp-lightbox-overlay .scrim{background-color:rgba(43,43,43,.94)!important}

@media(max-width:600px){
  .wp-block-gallery.has-nested-images{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  .wp-block-gallery.has-nested-images figure.wp-block-image{border-radius:12px}
}

/* Gallery lightbox (built into the theme) */
.wp-block-gallery figure{cursor:zoom-in}
.sl-lightbox{position:fixed;inset:0;z-index:99999;background:rgba(43,43,43,.94);display:flex;align-items:center;justify-content:center;opacity:0;visibility:hidden;transition:opacity .25s,visibility .25s}
.sl-lightbox.open{opacity:1;visibility:visible}
.sl-lightbox img{max-width:92vw;max-height:84vh;border-radius:14px;box-shadow:0 20px 60px rgba(0,0,0,.5);transform:scale(.96);transition:transform .3s}
.sl-lightbox.open img{transform:none}
.sl-btn{position:absolute;width:46px;height:46px;border:0;border-radius:50%;background:var(--orange);color:var(--ink);font-size:26px;font-weight:700;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;font-family:inherit;transition:transform .2s}
.sl-btn:hover{transform:scale(1.12)}
.sl-close{top:18px;right:18px}
.sl-prev{left:18px;top:50%;margin-top:-23px}
.sl-next{right:18px;top:50%;margin-top:-23px}
.sl-count{position:absolute;bottom:16px;left:0;right:0;text-align:center;color:#EDE6DE;font-size:14px}
@media(max-width:600px){.sl-prev,.sl-next{top:auto;bottom:14px;margin-top:0}.sl-prev{left:14px}.sl-next{right:14px}.sl-count{bottom:26px}}

/* hide WordPress' own lightbox button/overlay (the theme lightbox is used instead) */
.wp-block-gallery .lightbox-trigger,.wp-lightbox-overlay{display:none!important}

/* Product cards (home + Products page): show the whole photo, no cropping */
.grid-products .card .thumb{background:#fff}
.grid-products .card .thumb img{object-fit:contain}
@media(min-width:601px){.grid-products .card .thumb{height:200px}}

/* Product photos: smaller, with breathing space, never cropped */
.grid-products .card .thumb{padding:22px;box-sizing:border-box}
.grid-products .card .thumb img{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain}
.grid-products .card:hover .thumb img{transform:scale(1.03)}
@media(min-width:601px){.grid-products .card .thumb{height:190px}}
@media(max-width:600px){.grid-products .card .thumb{padding:10px}}
.woocommerce ul.products li.product a img{padding:14px;box-sizing:border-box;height:210px}

/* Category page with sub-categories */
.sub-actions{margin:0 0 24px}

/* Sub-category filter inside a section */
.subchips{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 22px}
.subchip{border:2px solid #E7DED3;background:#fff;color:var(--dark);border-radius:999px;padding:7px 16px;font-family:inherit;font-weight:600;font-size:13px;cursor:pointer;transition:all .2s}
.subchip:hover{border-color:var(--green);transform:translateY(-2px)}
.subchip.active{background:var(--green);border-color:var(--green);color:var(--ink)}
.sub-block{margin-bottom:34px}
.sub-block.pop{animation:popIn .5s ease}
.sub-head{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin:0 0 14px}
.sub-head h3{margin:0;font-size:21px}

/* Sub-category buttons + headings only show when the parent is selected (not in "All") */
.cat-block:not(.focused) .subchips,.cat-block:not(.focused) .sub-head{display:none}
.cat-block:not(.focused) .sub-block{margin-bottom:20px}

/* Back link on category pages */
.back-link{display:inline-flex;align-items:center;gap:8px;margin:0 0 22px;padding:9px 18px;border-radius:999px;background:#fff;border:2px solid #E7DED3;font-weight:600;font-size:14px;transition:transform .2s,border-color .2s,box-shadow .2s}
.back-link:hover{border-color:var(--orange);transform:translateX(-3px);box-shadow:0 6px 16px rgba(247,147,30,.25)}

/* Back to top button */
.to-top{position:fixed;right:22px;bottom:calc(22px + env(safe-area-inset-bottom,0px));width:56px;height:56px;border:0;border-radius:50%;background:var(--red);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:90;box-shadow:0 8px 22px rgba(232,84,30,.45);opacity:0;visibility:hidden;transform:translateY(20px) scale(.8);transition:opacity .3s,visibility .3s,transform .3s,box-shadow .3s,background .2s}
.to-top.show{opacity:1;visibility:visible;transform:none}
.to-top:hover{transform:translateY(-4px);box-shadow:0 12px 28px rgba(232,84,30,.55);background:var(--orange);color:var(--ink)}
.to-top svg{transition:transform .25s}
.to-top:hover svg{transform:translateY(-2px)}
@media(max-width:600px){.to-top{width:48px;height:48px;right:16px}}

/* ===== Homepage ad banners ===== */
.ad-banner-wrap{padding:36px 0 0}
.ad-banner{display:block;border-radius:20px;overflow:hidden;box-shadow:0 4px 18px rgba(58,58,58,.12);transition:transform .3s,box-shadow .3s;position:relative}
.ad-banner img{display:block;width:100%;height:auto}
a.ad-banner:hover{transform:translateY(-5px);box-shadow:0 16px 32px rgba(232,84,30,.22)}
a.ad-banner::after{content:"";position:absolute;top:0;left:-60%;width:40%;height:100%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.35),transparent);transform:skewX(-20deg);transition:left .7s;pointer-events:none}
a.ad-banner:hover::after{left:130%}
@media(max-width:600px){.ad-banner-wrap{padding-top:24px}.ad-banner{border-radius:14px}}

/* ===== 404 page (Page not found) ===== */
.notfound{max-width:680px;margin:0 auto;text-align:center;padding:44px 32px}
.notfound.card:hover{transform:none;box-shadow:0 2px 12px rgba(58,58,58,.08)}
.notfound-code{font-size:110px;line-height:1;font-weight:700;background:linear-gradient(120deg,var(--orange),var(--red));-webkit-background-clip:text;background-clip:text;color:transparent;animation:floaty 4s ease-in-out infinite}
.notfound h2{margin:14px 0 10px;font-size:26px}
.notfound p{margin:0 auto 26px;max-width:520px;color:#666}
.notfound .hero-btns{justify-content:center}
@media(max-width:600px){.notfound{padding:32px 20px}.notfound-code{font-size:80px}.notfound h2{font-size:21px}.notfound .hero-btns .btn{width:100%;text-align:center}}
@media (prefers-reduced-motion:reduce){.notfound-code{animation:none}}

/* ================= SHOP WITHOUT WOOCOMMERCE (v2.0) ================= */
.button{line-height:1.2;text-align:center}
.button:disabled,.button[disabled]{cursor:not-allowed;opacity:.6;transform:none!important;box-shadow:none!important}
.button.add-to-cart,.btn-green{background:var(--green);color:var(--ink)}
.button.add-to-cart{padding:10px 20px;font-size:14px;min-width:160px}
.button.add-to-cart.added{background:var(--green-d);color:#fff}
.button.out-of-stock{background:#E7DED3;color:#6B5B4B;padding:10px 20px;font-size:14px;min-width:160px}
.button.ask-price{background:var(--dark);color:#fff;padding:10px 20px;font-size:14px;min-width:160px}
.button.ask-price:hover{color:#fff}
.btn-wa{background:#25D366;color:#fff}
.btn-wa:hover{color:#fff}
.btn-block{display:block;width:100%}
.btn.disabled{pointer-events:none;opacity:.5}
.muted{color:#6B5B4B}.small{font-size:13px}
.product-card{position:relative}
.badge-sale{position:absolute;top:12px;left:12px;z-index:3;background:var(--red);color:#fff;border-radius:999px;font-size:12px;font-weight:600;padding:5px 12px;line-height:1}
.card.is-out .thumb{opacity:.55}
.no-img{display:block;width:100%;height:100%;min-height:120px;background:linear-gradient(135deg,#FFE3C2,#FBF0E3)}
.grid-products .card .thumb img{object-fit:contain;padding:10px}

/* pagination */
.pagination{margin:34px 0 0}
.nav-links{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
.nav-links .page-numbers{min-width:42px;height:42px;padding:0 12px;border-radius:999px;background:#fff;border:2px solid #E7DED3;display:inline-flex;align-items:center;justify-content:center;font-weight:600}
.nav-links .page-numbers.current,.nav-links a.page-numbers:hover{background:var(--orange);border-color:var(--orange);color:var(--ink)}

/* forms (login, register, checkout, account) */
.sform label{display:block;font-weight:500;font-size:14px;margin-bottom:16px}
.sform input[type=text],.sform input[type=email],.sform input[type=tel],.sform input[type=password],.sform input[type=number],.sform textarea,.sform select{display:block;width:100%;margin-top:6px;padding:12px 14px;border:2px solid #E7DED3;border-radius:12px;font-family:inherit;font-size:15px;background:#fff;transition:border-color .2s,box-shadow .2s}
.sform input:focus,.sform textarea:focus{outline:0;border-color:var(--orange);box-shadow:0 0 0 4px rgba(247,147,30,.18)}
.sform label.check{display:flex;align-items:center;gap:8px}
.sform label.check input{width:auto;margin:0}
.sform .button{padding:14px 28px}
.pw-wrap{position:relative;display:block}
.pw-wrap input{padding-right:46px!important}
.pw-eye{position:absolute;right:8px;top:50%;margin-top:3px;transform:translateY(-50%);width:34px;height:34px;border:0;background:transparent;cursor:pointer;border-radius:8px}
.pw-eye::before{content:"";position:absolute;inset:8px;border:2px solid #8a7a6a;border-radius:50% 0;transform:rotate(45deg)}
.pw-eye.on::after{content:"";position:absolute;left:6px;right:6px;top:16px;height:2px;background:#8a7a6a;transform:rotate(-40deg)}
.auth-box .alert{margin-bottom:18px}

/* toast after "Add to cart" */
.cart-toast{position:fixed;left:50%;bottom:24px;z-index:95;display:flex;align-items:center;gap:14px;background:#fff;border-radius:16px;padding:14px 16px;box-shadow:0 14px 40px rgba(58,58,58,.25);max-width:min(520px,calc(100% - 32px));transform:translate(-50%,140%);opacity:0;transition:transform .35s cubic-bezier(.2,.7,.2,1),opacity .35s;font-size:14px}
.cart-toast.show{transform:translate(-50%,0);opacity:1}
.cart-toast .ok{flex:none;width:34px;height:34px;border-radius:50%;background:var(--green);color:var(--ink);display:flex;align-items:center;justify-content:center;font-weight:700}
.cart-toast .btn{padding:10px 18px;font-size:14px;white-space:nowrap;margin-left:auto}

/* quantity box */
.qty-box{display:inline-flex;align-items:center;border:2px solid #E7DED3;border-radius:999px;background:#fff;overflow:hidden}
.qty-box button{width:38px;height:42px;border:0;background:transparent;font-size:20px;cursor:pointer;color:var(--dark)}
.qty-box button:hover{background:var(--cream);color:var(--red)}
.qty-box input{width:52px;height:42px;border:0;text-align:center;font-family:inherit;font-size:16px;font-weight:600;-moz-appearance:textfield;appearance:textfield}
.qty-box input::-webkit-outer-spin-button,.qty-box input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}

/* single product */
.sp-product{display:grid;grid-template-columns:1fr 1fr;gap:40px;background:#fff;border-radius:16px;padding:32px;box-shadow:0 2px 12px rgba(58,58,58,.08);margin-bottom:28px}
.sp-main{position:relative;border-radius:14px;background:#fff;display:flex;align-items:center;justify-content:center;min-height:320px;overflow:hidden}
.sp-main img{width:100%;max-height:480px;object-fit:contain;display:block}
.sp-zoom{display:block;width:100%;cursor:zoom-in}
.sp-thumbs{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.sp-thumb{width:72px;height:72px;padding:4px;border:2px solid #E7DED3;border-radius:10px;background:#fff;cursor:pointer;transition:border-color .2s}
.sp-thumb img{width:100%;height:100%;object-fit:contain}
.sp-thumb.active,.sp-thumb:hover{border-color:var(--orange)}
.sp-info .product_title{font-size:30px;line-height:1.2;margin:6px 0 12px}
.sp-price{font-size:26px;margin-bottom:6px}
.sp-stock{display:inline-block;font-size:13px;font-weight:600;padding:4px 12px;border-radius:999px;margin-bottom:14px}
.sp-stock.in{background:#EAF7DD;color:#2F5D10}.sp-stock.out{background:#FDE7DF;color:#8A2B0B}
.sp-short{margin-bottom:16px}
.sp-buy{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin:8px 0 6px}
.sp-buy .button{padding:13px 26px;font-size:15px}
.product_meta{margin-top:18px;padding-top:14px;border-top:1px solid #EFE6DB;font-size:14px}
.product_meta>span{display:block;margin-bottom:6px}
.product_meta a{color:var(--red);font-weight:500}
.product_meta a:hover{text-decoration:underline}
.sp-desc{padding:28px;margin-bottom:10px}
.sp-desc h2{margin:0 0 12px}
.sp-desc.card:hover{transform:none}
.sp-related{padding-top:30px}

/* cart */
.table-wrap{overflow-x:auto}
.cart-table{width:100%;border-collapse:separate;border-spacing:0 10px}
.cart-table td{background:#fff;padding:14px;vertical-align:middle}
.cart-table td:first-child{border-radius:14px 0 0 14px}
.cart-table td:last-child{border-radius:0 14px 14px 0}
.c-img img,.c-img .no-img{width:72px;height:72px;object-fit:contain;border-radius:10px;min-height:0}
.c-name a{font-weight:600}
.c-unit{font-size:13px;color:#6B5B4B}
.c-total{font-weight:700;color:#C2410C;white-space:nowrap}
.c-remove{width:36px;height:36px;border-radius:50%;border:0;background:var(--cream);font-size:20px;cursor:pointer}
.c-remove:hover{background:var(--red);color:#fff}
.is-out td,.is-out .s-name{opacity:.75}
strong.out{color:#8A2B0B;font-size:13px}
.cart-foot{display:flex;flex-wrap:wrap;gap:16px 24px;align-items:center;justify-content:flex-end;margin-top:10px}
.cart-foot.card:hover{transform:none}
.cart-total{font-size:20px;display:flex;gap:14px;align-items:baseline;margin-right:auto}
.cart-total strong{color:#C2410C;font-size:26px}
.cart-foot .alert{width:100%;margin:0}
.cart-empty{background:#fff;border-radius:16px;padding:40px;text-align:center;box-shadow:0 2px 12px rgba(58,58,58,.08)}
.cart-loading{color:#6B5B4B}

/* checkout */
.checkout-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:28px;align-items:start}
.checkout-form{padding:32px}
.checkout-form h2,.order-summary h2{margin:0 0 18px;font-size:26px}
.checkout-form.card:hover,.order-summary.card:hover,.account-card.card:hover,.thanks.card:hover{transform:none}
.checkout-form.is-empty .place-order,.checkout-form.is-blocked .place-order{opacity:.5;pointer-events:none}
.order-summary{padding:28px;position:sticky;top:130px}
.pay-box{background:var(--cream);border-left:4px solid var(--green);border-radius:10px;padding:14px 16px;margin:4px 0 18px;font-size:14px}
.pay-box p{margin:4px 0 0}
.place-order{width:100%;padding:16px;font-size:16px}
.summary-list{list-style:none;margin:0;padding:0}
.summary-list li{display:grid;grid-template-columns:52px 1fr auto;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid #EFE6DB;font-size:14px}
.summary-list img,.summary-list .no-img{width:52px;height:52px;object-fit:contain;border-radius:8px;min-height:0}
.summary-list em{color:#6B5B4B;font-style:normal}
.s-price{font-weight:600;white-space:nowrap}
.summary-total{display:flex;justify-content:space-between;align-items:baseline;padding:16px 0 8px;font-size:18px}
.summary-total strong{color:#C2410C;font-size:24px}

/* thank you + order tables */
.thanks{max-width:640px;margin:0 auto;text-align:center;padding:40px 32px}
.thanks-icon{width:72px;height:72px;margin:0 auto 10px;border-radius:50%;background:var(--green);color:var(--ink);font-size:36px;display:flex;align-items:center;justify-content:center;animation:popIn .5s ease}
.thanks h2{margin:0 0 8px}
.thanks .hero-btns{justify-content:center}
.order-table{width:100%;border-collapse:collapse;margin:18px 0;text-align:left;font-size:14px}
.order-table th,.order-table td{padding:10px 8px;border-bottom:1px solid #EFE6DB}
.order-table td:last-child,.order-table th:last-child{text-align:right;white-space:nowrap}
.order-table tr.total th{font-size:17px;color:#C2410C}
.account-head{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:22px}
.account-head h2{margin:0}
.account-card{padding:28px;margin-bottom:24px}
.account-card h3{margin:0 0 14px;font-size:22px}
.status{display:inline-block;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:600;background:#eee}
.status.s-new{background:#FFE9D1;color:#8a4b00}.status.s-processing{background:#e2f0ff;color:#0b4a8a}.status.s-shipped{background:#efe2ff;color:#55208a}.status.s-completed{background:#EAF7DD;color:#2F5D10}.status.s-cancelled{background:#FDE7DF;color:#8A2B0B}

@media(max-width:800px){
  .sp-product,.checkout-grid{grid-template-columns:1fr}
  .sp-product{padding:20px;gap:24px}
  .sp-info .product_title{font-size:24px}
  .order-summary{position:static}
  .checkout-form,.order-summary,.account-card{padding:20px}
  .cart-table td{padding:10px}
  .c-img img,.c-img .no-img{width:56px;height:56px}
}
@media(max-width:600px){
  .cart-table tr{display:grid;grid-template-columns:64px 1fr auto;background:#fff;border-radius:14px;margin-bottom:10px}
  .cart-table td,.cart-table td:first-child,.cart-table td:last-child{border-radius:0;background:transparent}
  .cart-table .c-img{grid-column:1;grid-row:1/3}
  .cart-table .c-name{grid-column:2;grid-row:1}
  .cart-table .c-del{grid-column:3;grid-row:1;text-align:right}
  .cart-table .c-qty{grid-column:2;grid-row:2;padding-top:0}
  .cart-table .c-total{grid-column:3;grid-row:2;padding-top:0;align-self:center}
  .cart-total{width:100%}
  .cart-foot .btn{width:100%;text-align:center}
  .button.add-to-cart,.button.out-of-stock,.button.ask-price{min-width:0}
  .sp-buy .button{flex:1}
  .cart-toast{flex-wrap:wrap}
  .cart-toast .btn{width:100%;text-align:center}
}

/* ================= Profile icon in the header (instead of "My Account" in the menu) ================= */
.header-actions{align-items:center}
.icon-btn{width:44px;height:44px;flex:none;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;color:var(--dark);background:var(--cream);border:2px solid #EFE3D3;transition:background .2s,color .2s,border-color .2s,transform .2s}
.icon-btn:hover{background:var(--orange);border-color:var(--orange);color:#fff;transform:translateY(-2px)}
.account-btn{position:relative}
.account-btn.is-in::after{content:"";position:absolute;top:6px;right:6px;width:10px;height:10px;border-radius:50%;background:var(--green);border:2px solid #fff}
@media(max-width:600px){.icon-btn{width:40px;height:40px}}

/* ================= MY ACCOUNT (profile) - same content as Al Jarra, Solatec colours ================= */
.account .icon{flex:none;display:block}
.account-notice{display:flex;align-items:center;gap:10px;padding:14px 18px;border-radius:14px;margin:0 0 20px;font-weight:500;animation:popIn .4s ease}
.account-notice--ok{background:#EAF7DD;color:#2F5D10}
.account-notice--error{background:#FDE7DF;color:#8A2B0B}

/* login / register / lost password card */
.auth-card{max-width:540px;margin:0 auto;background:#fff;border-radius:22px;padding:36px;box-shadow:0 10px 34px rgba(58,58,58,.10);border-top:5px solid var(--orange);animation:fadeUp .6s both}
.auth-card[data-auth="register"]{border-top-color:var(--green)}
.auth-panel[hidden]{display:none!important}
.auth-panel{animation:fadeIn .35s ease}
.auth-icon{width:64px;height:64px;margin:0 auto 12px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#FFE9D1;color:var(--red)}
.auth-icon .icon{width:30px;height:30px}
.auth-icon--green{background:#EAF7DD;color:var(--green-d)}
.auth-card h2{text-align:center;font-size:28px;margin:0 0 6px}
.auth-lead{text-align:center;color:#6B5B4B;margin:0 0 22px}
.auth-row{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin:-4px 0 18px;font-size:14px}
.auth-row label.check{margin:0}
.auth-row a,.auth-switch a{color:var(--red);font-weight:600}
.auth-row a:hover,.auth-switch a:hover{text-decoration:underline}
.auth-switch{text-align:center;margin:20px 0 0;padding-top:18px;border-top:1px solid #EFE6DB}

/* logged in: sidebar + panel */
.account-layout{display:grid;grid-template-columns:290px minmax(0,1fr);gap:28px;align-items:start}
.account-nav{background:#fff;border-radius:22px;padding:18px;box-shadow:0 2px 14px rgba(58,58,58,.07);position:sticky;top:130px}
.account-user{display:flex;align-items:center;gap:12px;padding:6px 6px 16px;margin-bottom:10px;border-bottom:1px solid #EFE6DB}
.account-avatar{width:50px;height:50px;flex:none;border-radius:50%;background:linear-gradient(135deg,var(--orange),var(--red));color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:18px;box-shadow:0 0 0 4px #FFE9D1}
.account-user__text{display:flex;flex-direction:column;min-width:0;line-height:1.35}
.account-user__text strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account-user__text span{font-size:13px;color:#6B5B4B;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account-menu{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}
.account-menu a{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:14px;color:var(--dark);transition:background .2s,transform .2s,color .2s}
.account-menu a:hover{background:var(--cream);transform:translateX(3px)}
.account-menu a.is-active{background:var(--orange);color:var(--ink)}
.account-menu__icon{width:38px;height:38px;flex:none;border-radius:12px;background:#FFE9D1;color:var(--red);display:flex;align-items:center;justify-content:center}
.account-menu a.is-active .account-menu__icon{background:rgba(255,255,255,.35);color:var(--ink)}
.account-menu__text{display:flex;flex-direction:column;line-height:1.25;font-weight:600;font-size:15px;min-width:0}
.account-menu__text small{font-weight:400;font-size:12px;opacity:.75}
.account-menu__count{margin-left:auto;min-width:24px;height:24px;padding:0 7px;border-radius:12px;background:var(--green);color:var(--ink);font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center}
.account-menu__logout{margin-top:6px;padding-top:8px;border-top:1px solid #EFE6DB}
.account-menu__logout a:hover{background:#FDE7DF;color:#8A2B0B}
.account-menu__logout .account-menu__icon{background:#FDE7DF;color:#B23A12}
.account-panel{background:#fff;border-radius:22px;padding:34px;box-shadow:0 2px 14px rgba(58,58,58,.07);min-width:0;animation:fadeUp .5s both}
.account-title{font-size:28px;margin:0 0 6px}
.account-lead{color:#6B5B4B;margin:0 0 22px}
.account-sub{font-size:18px;margin:30px 0 12px}

/* dashboard */
.account-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:22px}
.stat{background:var(--cream);border-radius:16px;padding:18px;display:flex;flex-direction:column;gap:4px;border-left:4px solid var(--orange)}
.stat:nth-child(2){border-left-color:var(--green)}
.stat:nth-child(3){border-left-color:var(--red)}
.stat__num{font-size:30px;font-weight:700;line-height:1.1;color:var(--dark)}
.stat__num--sm{font-size:22px}
.stat__label{font-size:13px;color:#6B5B4B}
.account-tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.account-tile{display:flex;flex-direction:column;gap:4px;padding:20px;border-radius:18px;border:2px solid #EFE6DB;background:#fff;transition:border-color .2s,transform .2s,box-shadow .2s}
.account-tile:hover{border-color:var(--orange);transform:translateY(-3px);box-shadow:0 10px 24px rgba(247,147,30,.15)}
.account-tile span:last-child{font-size:13px;color:#6B5B4B}
.account-tile__icon{width:50px;height:50px;border-radius:14px;background:#FFE9D1;color:var(--red);display:flex;align-items:center;justify-content:center;margin-bottom:8px}
.account-tile--shop{background:linear-gradient(135deg,#3A3A3A,#2B2B2B);border-color:transparent;color:#fff}
.account-tile--shop span:last-child{color:#E7DED3}
.account-tile--shop .account-tile__icon{background:var(--orange);color:var(--ink)}

/* orders */
.orders-list{display:flex;flex-direction:column;gap:12px}
.order-card{border:2px solid #EFE6DB;border-radius:16px;background:#fff;overflow:hidden;transition:border-color .2s}
.order-card[open]{border-color:var(--orange)}
.order-card summary{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:16px 18px;cursor:pointer;list-style:none}
.order-card summary::-webkit-details-marker{display:none}
.order-card__no{font-weight:700}
.order-card__date,.order-card__qty{font-size:14px;color:#6B5B4B}
.order-card__total{margin-left:auto;font-weight:700;color:#C2410C}
.order-card__chev{display:flex;transition:transform .25s}
.order-card[open] .order-card__chev{transform:rotate(180deg)}
.order-card__body{padding:0 18px 16px;border-top:1px dashed #EFE6DB}
.order-items{list-style:none;margin:12px 0;padding:0}
.order-items li{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid #F4ECE2;font-size:14px}
.order-items li em{font-style:normal;color:#6B5B4B}
.order-items__total{font-size:16px!important;border-bottom:0!important}
.order-items__total strong{color:#C2410C}
.order-card__addr{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:13px;color:#6B5B4B;margin:0}
.order-status{display:inline-block;padding:4px 12px;border-radius:999px;font-size:12px;font-weight:600;background:#eee}
.order-status--new{background:#FFE9D1;color:#8a4b00}
.order-status--processing{background:#e2f0ff;color:#0b4a8a}
.order-status--shipped{background:#efe2ff;color:#55208a}
.order-status--completed{background:#EAF7DD;color:#2F5D10}
.order-status--cancelled{background:#FDE7DF;color:#8A2B0B}
.account-empty{text-align:center;padding:30px 10px}
.account-empty__icon{width:92px;height:92px;margin:0 auto 14px;border-radius:50%;background:#FFE9D1;color:var(--red);display:flex;align-items:center;justify-content:center}
.account-empty__icon .icon{width:40px;height:40px}
.account-empty h3{margin:0 0 6px}

/* details form */
.account-fieldset{border:2px solid #EFE6DB;border-radius:16px;padding:18px 18px 4px;margin:0 0 18px}
.account-fieldset legend{padding:0 8px;font-weight:700;color:var(--red)}
.sform input:disabled{background:var(--cream);color:#6B5B4B}

@media(max-width:900px){
  .account-layout{grid-template-columns:1fr}
  .account-nav{position:static}
  .account-menu{flex-direction:row;overflow-x:auto;gap:6px;padding-bottom:4px}
  .account-menu li{flex:none}
  .account-menu__text small{display:none}
  .account-menu__logout{margin:0;padding:0;border:0}
}
@media(max-width:600px){
  .auth-card,.account-panel{padding:22px}
  .account-stats{grid-template-columns:1fr 1fr 1fr;gap:8px}
  .stat{padding:12px}
  .stat__num{font-size:22px}.stat__num--sm{font-size:15px}
  .account-tiles{grid-template-columns:1fr}
  .account-menu__icon{width:34px;height:34px}
  .order-card summary{gap:8px 12px}
}

/* ================= Home: rotating sun ring a bit smaller ================= */
.hero-media .sun{width:480px;height:480px;margin:-240px 0 0 -240px}
@media(max-width:800px){.hero-media .sun{width:360px;height:360px;margin:-180px 0 0 -180px}}
/* hero picture smaller too, so the space between the picture and the sun ring stays like before */
.hero-media{width:395px}
.hero-img,.hero-ph{width:395px;height:275px}
@media(max-width:800px){.hero-media{max-width:86%;margin-left:auto;margin-right:auto}}

/* ================= Home: brands moving in a loop ================= */
.brands-section h2{margin-bottom:6px}
.brands-lead{color:#6B5B4B;margin:0 0 22px}
.brands-marquee{position:relative;overflow:hidden;padding:10px 0;
  -webkit-mask:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);mask:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent)}
.brands-track{display:flex;width:max-content;animation:brands-move var(--dur,40s) linear infinite}
.brands-marquee:hover .brands-track{animation-play-state:paused}
.brands-group{display:flex;gap:22px;padding-right:22px;flex:none}
.brand-item{flex:none;width:170px;height:96px;background:#fff;border-radius:18px;border:2px solid #EFE6DB;display:flex;align-items:center;justify-content:center;padding:14px 18px;transition:border-color .25s,transform .25s,box-shadow .25s}
.brand-item img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;filter:grayscale(1);opacity:.75;transition:filter .25s,opacity .25s}
.brand-item:hover{border-color:var(--orange);transform:translateY(-4px);box-shadow:0 10px 22px rgba(247,147,30,.18)}
.brand-item:hover img{filter:none;opacity:1}
.brand-name{font-weight:700;font-size:18px;color:var(--dark);letter-spacing:.5px;text-align:center}
@keyframes brands-move{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media(max-width:600px){.brand-item{width:130px;height:76px;padding:10px 12px}.brands-group{gap:14px;padding-right:14px}}
@media(prefers-reduced-motion:reduce){
  .brands-track{animation:none;width:auto}
  .brands-group{flex-wrap:wrap;justify-content:center;padding:0}
  .brands-group[aria-hidden]{display:none}
  .brands-marquee{-webkit-mask:none;mask:none}
}

/* ================= Product card: clearer animation ================= */
.grid-products .card{border:2px solid transparent;transition:transform .35s cubic-bezier(.2,.7,.2,1),box-shadow .35s,border-color .35s}
.grid-products .card:hover{transform:translateY(-10px);border-color:var(--orange);box-shadow:0 22px 40px rgba(232,84,30,.22)}
.grid-products .card .thumb{position:relative;overflow:hidden}
.grid-products .card .thumb img{transition:transform .6s cubic-bezier(.2,.7,.2,1)}
.grid-products .card:hover .thumb img{transform:scale(1.12) rotate(-1.5deg)}
/* light shine passing over the photo */
.grid-products .card .thumb::after{content:"";position:absolute;top:0;left:-75%;width:50%;height:100%;pointer-events:none;
  background:linear-gradient(100deg,transparent,rgba(255,255,255,.75),transparent);transform:skewX(-20deg)}
.grid-products .card:hover .thumb::after{animation:card-shine .8s ease}
@keyframes card-shine{to{left:130%}}
.grid-products .card h3 a{transition:color .25s}
.grid-products .card:hover h3 a{color:var(--red)}
.grid-products .card .price{transition:transform .3s}
.grid-products .card:hover .price{transform:scale(1.06)}
.grid-products .card .button.add-to-cart{transition:transform .25s,background .25s,color .25s,box-shadow .25s}
.grid-products .card:hover .button.add-to-cart{background:var(--green-d);color:#fff;box-shadow:0 8px 18px rgba(95,160,42,.35)}
.grid-products .card .button.add-to-cart:active{transform:scale(.95)}
.badge-sale{animation:sale-pulse 2s ease-in-out infinite}
@keyframes sale-pulse{0%,100%{transform:scale(1)}50%{transform:scale(1.1)}}
/* phones (no mouse): small press effect */
@media(hover:none){.grid-products .card:active{transform:scale(.98);border-color:var(--orange)}}
@media(prefers-reduced-motion:reduce){
  .grid-products .card:hover,.grid-products .card:hover .thumb img,.grid-products .card:hover .price{transform:none}
  .grid-products .card:hover .thumb::after,.badge-sale{animation:none}
}

/* ================= Product page: description inside the same box as the product ================= */
.sp-product .sp-desc{grid-column:1/-1;margin:4px 0 0;padding:26px 0 0;border-top:2px solid #EFE6DB;background:none;box-shadow:none;border-radius:0}
.sp-product .sp-desc h2{font-size:22px;margin:0 0 12px;display:inline-block;position:relative;padding-bottom:6px}
.sp-product .sp-desc h2::after{content:"";position:absolute;left:0;bottom:0;width:48px;height:3px;border-radius:3px;background:var(--orange)}
.sp-product .sp-desc .entry-content{max-width:none}

/* ================= Contact page: map inside a card next to the form (like Al Jarra) ================= */
.contact-card--map{display:flex;flex-direction:column;align-items:stretch;gap:14px;padding:18px;border-top:4px solid var(--orange)}
.contact-card--map:hover{transform:translateY(-4px)}
.contact-card__map-head{display:flex;align-items:center;gap:14px;padding:0 4px;flex-wrap:wrap}
.contact-card__map-head h3{margin:0 0 2px;font-size:15px}
.contact-card__map-head span{font-size:14px;color:#6B5B4B}
.map-pin{width:42px;height:42px;flex:none;border-radius:12px;background:#FFE9D1;color:var(--red);display:flex;align-items:center;justify-content:center}
.map-open{margin-left:auto;font-size:13px;font-weight:600;color:var(--red);white-space:nowrap}
.map-open:hover{text-decoration:underline}
.contact-card__map{border-radius:14px;overflow:hidden;height:230px;background:var(--cream)}
.contact-card__map iframe{width:100%;height:100%;border:0;display:block;filter:sepia(.25) saturate(.9);transition:filter .4s}
.contact-card--map:hover .contact-card__map iframe{filter:none}
@media(max-width:600px){.map-open{margin-left:0;width:100%}.contact-card__map{height:260px}}

/* ================= Contact page: both columns the same height ================= */
@media(min-width:801px){
  .contact-grid{align-items:stretch}
  .contact-info{display:flex;flex-direction:column;gap:16px}
  .contact-card--map{flex:1 1 auto}
  .contact-card__map{flex:1 1 auto;min-height:230px;height:auto}
  .contact-form{display:flex;flex-direction:column}
  .contact-form form{flex:1 1 auto;display:flex;flex-direction:column}
  .contact-form form label:has(textarea){flex:1 1 auto;display:flex;flex-direction:column}
  .contact-form textarea{flex:1 1 auto;min-height:150px;resize:vertical}
  .contact-form .btn{align-self:flex-start}
}

/* ================= Contact page: both columns the same height ================= */
@media(min-width:801px){
  .contact-grid{align-items:stretch}
  .contact-info{display:flex;flex-direction:column;gap:16px}
  .contact-form{height:100%;display:flex;flex-direction:column}
  .contact-form form{flex:1;display:flex;flex-direction:column}
  .contact-form form label:has(textarea){flex:1;display:flex;flex-direction:column}
  .contact-form form textarea{flex:1;min-height:140px}
  .contact-form form .btn{align-self:flex-start}
  /* the map card takes the space left, so the left column ends with the form */
  .contact-card--map{flex:1}
  .contact-card--map .contact-card__map{flex:1;min-height:230px;height:auto}
}

/* placeholders */
.contact-form ::placeholder,.sform ::placeholder{color:#B3A595;opacity:1;font-size:14px}
.contact-form :focus::placeholder,.sform :focus::placeholder{color:#CFC3B5}

/* ================= Product cards always the same size (even when there are only 1-2 products) ================= */
.grid-products{grid-template-columns:repeat(auto-fill,minmax(240px,1fr))}

/* ================= Shop page: results count + sorting ================= */
.shop-toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;margin:0 0 22px}
.result-count{margin:0;color:#6B5B4B;font-size:15px}
.shop-ordering select{appearance:none;-webkit-appearance:none;padding:11px 42px 11px 16px;border:2px solid #E7DED3;border-radius:999px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23E8541E' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 16px center;font-family:inherit;font-size:14px;font-weight:500;color:var(--dark);cursor:pointer;transition:border-color .2s,box-shadow .2s}
.shop-ordering select:hover,.shop-ordering select:focus{outline:0;border-color:var(--orange);box-shadow:0 0 0 4px rgba(247,147,30,.15)}
@media(max-width:600px){.shop-toolbar{flex-direction:column;align-items:stretch}.shop-ordering select{width:100%}}

/* ================= Header: no more shrinking when scrolling (it was shaking the page) ================= */
.site-header,.site-header.scrolled{padding:18px 0;transition:box-shadow .25s}
.site-header.scrolled{box-shadow:0 6px 20px rgba(0,0,0,.10)}
.custom-logo,.site-header.scrolled .custom-logo{transition:none;max-height:110px}
@media(max-width:800px){.custom-logo,.site-header.scrolled .custom-logo{max-height:80px}}
.footer-logo .custom-logo{max-height:110px}
@media(max-width:800px){.footer-logo .custom-logo{max-height:90px}}

/* ================= "Install the Solatec app" button (phones) ================= */
.install-app{position:fixed;left:16px;bottom:16px;z-index:89;display:flex;align-items:center;gap:10px;padding:8px 10px 8px 8px;border:0;border-radius:999px;background:var(--dark);color:#fff;font-family:inherit;font-size:14px;font-weight:600;cursor:pointer;box-shadow:0 10px 26px rgba(0,0,0,.25);animation:popIn .5s ease}
.install-app[hidden]{display:none}
.install-app img{width:28px;height:28px;border-radius:50%;background:#fff;object-fit:contain}
.install-app:hover{background:var(--red)}
.install-x{margin-left:4px;width:22px;height:22px;border-radius:50%;background:rgba(255,255,255,.15);display:inline-flex;align-items:center;justify-content:center;font-size:16px;line-height:1}
@media(display-mode:standalone){.install-app{display:none!important}}

/* ================= Phones: header in one row (logo · search · account · cart · menu), menu like Al Jarra ================= */
.search-toggle,.menu-btn,.header-search,.cart-btn__icon{display:none}
.cart-btn{display:inline-flex;align-items:center;gap:0}
/* burger -> X */
.menu-btn{position:relative;padding:0}
.menu-btn span{position:absolute;left:11px;height:2.5px;border-radius:2px;background:currentColor;transition:all .35s ease}
.menu-btn span:nth-child(1){top:14px;width:20px}
.menu-btn span:nth-child(2){top:20px;width:14px}
.menu-btn span:nth-child(3){top:26px;width:20px}
.menu-btn.open{background:var(--orange);border-color:var(--orange);color:var(--ink)}
.menu-btn.open span:nth-child(1){left:10px;top:19.5px;width:22px;transform:rotate(45deg)}
.menu-btn.open span:nth-child(2){opacity:0;transform:scaleX(.3)}
.menu-btn.open span:nth-child(3){left:10px;top:19.5px;width:22px;transform:rotate(-45deg)}
.search-toggle.active{background:var(--orange);border-color:var(--orange);color:var(--ink)}
/* search bar under the header */
.header-search{border-top:1px solid #EFE6DB;padding:14px 0;background:#fff}
.header-search .search-form{display:flex;gap:8px}
.header-search input[type=search]{flex:1;min-width:0;border:2px solid #E7DED3;border-radius:999px;padding:11px 18px;font-family:inherit;font-size:15px;background:#fff}
.header-search input[type=search]:focus{outline:0;border-color:var(--orange);box-shadow:0 0 0 4px rgba(247,147,30,.15)}
.header-search .btn{padding:11px 18px;font-size:14px}
.header-search.is-opening{overflow:hidden;animation:searchOpen .38s cubic-bezier(.2,.7,.2,1) both}
.header-search.is-opening .search-form{animation:fadeDown .38s .05s cubic-bezier(.2,.7,.2,1) both}
.header-search.is-closing{overflow:hidden;pointer-events:none;animation:searchClose .33s ease forwards}
@keyframes searchOpen{from{max-height:0;opacity:0;padding-top:0;padding-bottom:0}to{max-height:120px;opacity:1}}
@keyframes searchClose{from{max-height:120px;opacity:1}to{max-height:0;opacity:0;padding-top:0;padding-bottom:0}}
@keyframes fadeDown{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}

@media(max-width:960px){
  .site-header,.site-header.scrolled{padding:10px 0}
  .site-header .container{flex-wrap:nowrap;align-items:center;gap:10px;position:static}
  .site-header{position:sticky}
  .custom-logo,.site-header.scrolled .custom-logo{max-height:58px}
  .header-actions{align-items:center;gap:6px;padding:0;margin-left:auto}
  .hsearch{display:none}
  .search-toggle,.menu-btn{display:inline-flex}
  .header-search:not([hidden]){display:block}
  .cart-btn{position:relative;width:44px;height:44px;padding:0!important;justify-content:center;border-radius:50%}
  .cart-btn__label{display:none}
  .cart-btn__icon{display:block}
  .cart-btn .cart-count{position:absolute;top:-4px;right:-4px;min-width:20px;height:20px;padding:0 5px;border-radius:10px;background:var(--red);color:#fff;font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center;border:2px solid #fff;line-height:1}
  /* menu panel under the header */
  .main-nav{position:absolute;top:100%;left:0;right:0;background:#fff;max-height:0;overflow:hidden;padding:0;box-shadow:0 18px 30px rgba(58,58,58,.12);transition:max-height .6s cubic-bezier(.4,0,.2,1);z-index:49;border-top:1px solid transparent}
  .main-nav.is-open{max-height:80vh;overflow-y:auto;border-top-color:#EFE6DB}
  .main-nav ul{flex-direction:column;flex-wrap:nowrap;gap:0;padding:8px 24px 20px}
  .main-nav ul > li{opacity:0;transform:translateY(-8px);transition:opacity .35s ease,transform .35s ease;border-bottom:1px solid #F4ECE2}
  .main-nav ul > li:last-child{border-bottom:0}
  .main-nav.is-open ul > li{opacity:1;transform:none}
  .main-nav.is-open ul > li:nth-child(1){transition-delay:.10s}
  .main-nav.is-open ul > li:nth-child(2){transition-delay:.16s}
  .main-nav.is-open ul > li:nth-child(3){transition-delay:.22s}
  .main-nav.is-open ul > li:nth-child(4){transition-delay:.28s}
  .main-nav.is-open ul > li:nth-child(5){transition-delay:.34s}
  .main-nav.is-open ul > li:nth-child(6){transition-delay:.40s}
  .main-nav.is-open ul > li:nth-child(n+7){transition-delay:.46s}
  .main-nav ul a{display:flex;align-items:center;justify-content:space-between;padding:13px 0;font-size:18px}
  .main-nav ul a::after{display:none}
  .main-nav ul > li > a:not(:only-child)::before{display:none}
  .main-nav .current-menu-item > a{color:var(--red);font-weight:600}
  .main-nav ul.sub-menu{position:static;opacity:1;visibility:visible;transform:none;box-shadow:none;background:transparent;padding:0 0 8px 14px;min-width:0}
  .main-nav ul.sub-menu > li{opacity:1;transform:none;border:0}
  .main-nav ul.sub-menu a{padding:8px 0;font-size:16px}
}
@media(max-width:640px){
  .header-actions{gap:4px}
  .header-actions .icon-btn,.cart-btn{width:40px;height:40px}
  .menu-btn span{left:9px}
  .menu-btn span:nth-child(1){top:12px}.menu-btn span:nth-child(2){top:18px}.menu-btn span:nth-child(3){top:24px}
  .menu-btn.open span:nth-child(1),.menu-btn.open span:nth-child(3){left:8px;top:17.5px}
  .custom-logo,.site-header.scrolled .custom-logo{max-height:50px}
  .site-header .container{gap:8px}
}
@media(max-width:380px){.custom-logo,.site-header.scrolled .custom-logo{max-height:42px}.header-actions .icon-btn,.cart-btn{width:36px;height:36px}}
@media(prefers-reduced-motion:reduce){
  .main-nav ul > li{opacity:1!important;transform:none!important}
  .header-search.is-opening,.header-search.is-closing,.header-search.is-opening .search-form{animation:none}
}
/* phones: bigger logo, visible cart number, one-line top bar */
@media(max-width:960px){
  .custom-logo,.site-header.scrolled .custom-logo{max-height:78px}
  .cart-btn .cart-count.is-zero{display:none}
  .cart-btn{overflow:visible!important}
  .cart-btn::after{display:none}
}
@media(max-width:640px){
  .custom-logo,.site-header.scrolled .custom-logo{max-height:70px}
  .header-actions .icon-btn,.cart-btn{width:38px;height:38px}
  .icon-btn svg,.cart-btn__icon{width:18px;height:18px}
  .topbar .container{justify-content:center}
  .topbar .container > span:first-child{display:none}
  .topbar-right{gap:14px}
}
@media(max-width:380px){.custom-logo,.site-header.scrolled .custom-logo{max-height:64px}.header-actions .icon-btn,.cart-btn{width:34px;height:34px}.header-actions{gap:3px}}
/* prices never break in the middle ("420.00" / "$") */
.price del,.price ins,.price .amount,.c-unit,.c-total,.s-price{white-space:nowrap}

/* ================= My Account on phones (like Al Jarra: menu = grid of 3 tiles) ================= */
@media(max-width:960px){
  .account-menu{scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .account-menu::-webkit-scrollbar{display:none}
}
@media(max-width:640px){
  .account-layout{gap:16px}
  .account-nav{padding:14px;border-radius:20px}
  .account-user{padding:2px 2px 12px;margin-bottom:12px}
  .account-avatar{width:46px;height:46px;font-size:18px}
  .account-menu{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;overflow:visible;padding:0}
  .account-menu li{position:relative;min-width:0}
  .account-menu a{flex-direction:column;justify-content:center;text-align:center;gap:6px;padding:12px 6px;background:var(--cream);border-radius:16px;height:100%}
  .account-menu a:hover{transform:none}
  .account-menu__icon{width:34px;height:34px;border-radius:11px}
  .account-menu__icon .icon{width:18px;height:18px}
  .account-menu__text{font-size:12px;align-items:center}
  .account-menu__text small{display:none}
  .account-menu__count{position:absolute;top:6px;right:6px;margin:0;min-width:20px;height:20px;font-size:11px}
  .account-menu__logout{grid-column:1/-1;margin:0;padding:0;border:0}
  .account-menu__logout a{flex-direction:row;padding:10px;background:#FDE7DF;color:#8A2B0B}
  .account-menu__logout .account-menu__icon{width:28px;height:28px;background:transparent}
  .account-menu__logout .account-menu__text{font-size:14px}
  .account-panel{padding:20px;border-radius:20px}
  .account-title{font-size:26px}
  .account-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .stat{padding:12px;border-radius:14px}
  .stat__num{font-size:28px}.stat__num--sm{font-size:16px}
  .stat__label{font-size:12px}
  .account-tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .account-tile{padding:14px;border-radius:16px}
  .account-tile--shop{grid-column:1/-1}
  .account-tile__icon{width:42px;height:42px;margin-bottom:4px}
  .account-tile strong{font-size:15px}
  .order-card summary{display:grid;grid-template-columns:auto 1fr auto;gap:6px 10px;padding:14px}
  .order-card__no{grid-column:1}
  .order-card__date{grid-column:2}
  .order-card__chev{grid-column:3;grid-row:1}
  .order-status{grid-column:1/3;justify-self:start}
  .order-card__qty{display:none}
  .order-card__total{grid-column:3;grid-row:2;margin:0}
  .order-card__body{padding:0 14px 14px}
  .account-fieldset{padding:14px 14px 2px}
  .account-form .button{width:100%}
}
@media(max-width:380px){
  .account-stats{grid-template-columns:1fr}
  .stat{flex-direction:row;align-items:center;justify-content:space-between}
  .stat__num{font-size:22px}
}
/* login / register card on phones (like Al Jarra: compact, title on the left) */
@media(max-width:640px){
  .auth-card{padding:24px 20px;border-radius:20px}
  .auth-icon{display:none}
  .auth-card h2{text-align:left;font-size:26px;margin-bottom:4px}
  .auth-lead{text-align:left;font-size:14px;margin-bottom:18px}
  .auth-row{flex-wrap:nowrap;font-size:13px}
  .auth-row label.check{white-space:nowrap}
  .auth-row a{white-space:nowrap}
  .auth-card .sform label{margin-bottom:14px}
  .auth-card .row2{gap:0}
  .auth-switch{font-size:14px}
}

/* ================= Header: less height ================= */
.site-header,.site-header.scrolled{padding:10px 0}
.custom-logo,.site-header.scrolled .custom-logo{max-height:90px}
.site-header .container{align-items:center}
.main-nav,.header-actions{padding-bottom:0}
@media(max-width:960px){
  .site-header,.site-header.scrolled{padding:6px 0}
  .custom-logo,.site-header.scrolled .custom-logo{max-height:68px}
}
@media(max-width:640px){.custom-logo,.site-header.scrolled .custom-logo{max-height:62px}}
@media(max-width:380px){.custom-logo,.site-header.scrolled .custom-logo{max-height:58px}}

/* ================= Page banner (Gallery, Shop, Cart...): less height ================= */
.page-hero{padding:34px 0 30px}
.page-hero h1{font-size:36px;margin:4px 0 6px}
.page-hero p{font-size:15px}
.page-hero .sun{width:300px;height:300px;margin-top:-150px;right:-90px}
@media(max-width:800px){
  .page-hero{padding:24px 0 22px}
  .page-hero h1{font-size:28px;margin:2px 0 4px}
  .page-hero p{font-size:14px}
  .page-hero .sun{width:200px;height:200px;margin-top:-100px;right:-80px}
}