/*
Theme Name: Ribaat Royal
Theme URI: https://ribaat.biz
Author: Ribaat
Description: A compact, vibrant and app-like royal equestrian WooCommerce experience.
Version: 2.2.1
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: ribaat-heritage
*/
:root{--night:#080f1c;--navy:#101c32;--emerald:#075a4a;--emerald2:#0b7862;--wine:#7d263c;--gold:#d9b761;--ivory:#fbf8f0;--white:#fff;--ink:#121827;--muted:#687080;--line:#e8e2d5;--r:14px;--shadow:0 14px 40px rgba(8,15,28,.12)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--ivory);color:var(--ink);font-family:Manrope,system-ui,sans-serif;font-size:14px;line-height:1.55}body.admin-bar .site-header{top:32px}img{max-width:100%;height:auto}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}.container{width:min(1240px,calc(100% - 32px));margin:auto}h1,h2,h3,.royal,.serif{font-family:"Cormorant Garamond",Georgia,serif;line-height:.94}h1{font-size:clamp(3.25rem,6vw,6.4rem);font-weight:600;letter-spacing:-.045em;margin:.18em 0}h2{font-size:clamp(2.1rem,3.5vw,3.5rem);font-weight:600;letter-spacing:-.025em;margin:.15em 0}.eyebrow{font-size:.65rem;font-weight:800;letter-spacing:.24em;text-transform:uppercase;color:var(--gold)}.button,.wp-element-button,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button{display:inline-flex!important;align-items:center;justify-content:center;height:42px;padding:0 20px!important;border:1px solid var(--emerald)!important;border-radius:8px!important;background:var(--emerald)!important;color:#fff!important;font-size:.75rem!important;font-weight:800!important;letter-spacing:.05em;text-transform:uppercase;transition:.2s}.button:hover,.woocommerce a.button:hover{background:var(--emerald2)!important;transform:translateY(-1px)}.button--gold{background:var(--gold)!important;border-color:var(--gold)!important;color:var(--night)!important}.button--line{background:transparent!important;border-color:rgba(255,255,255,.55)!important}.top-note{height:28px;display:grid;place-items:center;background:linear-gradient(90deg,var(--wine),#a2384d);color:white;font-size:.65rem;font-weight:700;letter-spacing:.11em;text-transform:uppercase}.site-header{position:sticky;top:0;z-index:80;background:rgba(251,248,240,.96);backdrop-filter:blur(15px);border-bottom:1px solid var(--line)}.header-row{height:64px;display:grid;grid-template-columns:180px 1fr 180px;align-items:center;gap:18px}.brand{text-align:left}.brand img{display:block;width:auto;max-width:145px;max-height:48px}.custom-logo-link{display:inline-block}.primary-nav{justify-self:center}.primary-nav ul{display:flex;align-items:center;gap:26px;list-style:none;margin:0;padding:0}.primary-nav a{font-size:.72rem;font-weight:800;letter-spacing:.09em;text-transform:uppercase}.primary-nav a:hover{color:var(--emerald)}.header-actions{justify-self:end;display:flex;gap:7px}.icon-link{width:36px;height:36px;border:1px solid var(--line);border-radius:9px;display:grid;place-items:center;background:#fff;position:relative;font-size:1rem}.cart-count{position:absolute;right:-4px;top:-5px;background:var(--wine);color:#fff;border-radius:99px;min-width:17px;height:17px;font-size:.58rem;display:grid;place-items:center}.menu-toggle{display:none}.mobile-menu{padding:0 0 14px}.mobile-menu ul{list-style:none;padding:0}.hero{height:min(600px,72vh);min-height:500px;color:#fff;background:linear-gradient(90deg,rgba(5,10,19,.94) 0%,rgba(5,10,19,.75) 33%,rgba(5,10,19,.06) 69%),url('assets/images/hero-royal.png') center/cover;display:flex;align-items:center;position:relative}.hero:after{content:"";position:absolute;inset:0;border:1px solid rgba(217,183,97,.25);pointer-events:none}.hero-copy{position:relative;z-index:1;width:min(600px,52%)}.hero h1 em{color:var(--gold);font-style:italic}.hero p{max-width:500px;color:#d9dfeb;font-size:.95rem}.hero-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:22px}.hero-seal{display:flex;align-items:center;gap:12px;margin-bottom:18px}.seal{width:38px;height:38px;border:1px solid var(--gold);border-radius:50%;display:grid;place-items:center;color:var(--gold);font-family:Georgia,serif}.quick-cats{position:relative;z-index:4;margin-top:-28px}.quick-grid{display:grid;grid-template-columns:repeat(6,1fr);background:#fff;border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--shadow);overflow:hidden}.quick-card{min-height:92px;padding:15px 12px;border-right:1px solid var(--line);display:flex;align-items:center;gap:10px;transition:.2s}.quick-card:last-child{border:0}.quick-card:hover{background:var(--emerald);color:#fff}.quick-icon{width:36px;height:36px;flex:0 0 36px;border-radius:50%;display:grid;place-items:center;background:#edf5f1;color:var(--emerald);font-size:1.1rem}.quick-card strong{display:block;font-family:"Cormorant Garamond",Georgia,serif;font-size:1.18rem;line-height:1}.quick-card small{color:var(--muted);font-size:.62rem}.quick-card:hover small{color:#c9ddd6}.section{padding:62px 0}.section-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:22px}.section-head p{max-width:440px;color:var(--muted);margin:0}.collection-band{background:var(--night);color:#fff;padding:18px 0}.collection-row{display:grid;grid-template-columns:1fr auto;align-items:center;gap:20px}.collection-row h3{font-size:1.75rem;margin:0}.collection-row p{color:#aeb8c8;margin:2px 0 0;font-size:.76rem}.products ul.products{display:grid!important;grid-template-columns:repeat(5,1fr);gap:12px;margin:0!important}.woocommerce ul.products li.product{width:auto!important;margin:0!important;padding:0 0 12px;background:#fff;border:1px solid var(--line);border-radius:11px;overflow:hidden;transition:.2s}.woocommerce ul.products li.product:hover{box-shadow:var(--shadow);transform:translateY(-3px)}.woocommerce ul.products li.product img{margin:0 0 10px!important;aspect-ratio:1/1.04;object-fit:cover}.woocommerce ul.products li.product .woocommerce-loop-product__title,.woocommerce ul.products li.product .price,.woocommerce ul.products li.product .button{margin-left:11px!important;margin-right:11px!important}.woocommerce ul.products li.product .woocommerce-loop-product__title{font-family:Manrope,sans-serif!important;font-size:.78rem!important;font-weight:750!important;line-height:1.35}.woocommerce ul.products li.product .price{color:var(--wine)!important;font-size:.75rem!important;font-weight:800!important;margin-bottom:9px!important}.woocommerce ul.products li.product .button{height:34px!important;width:calc(100% - 22px);padding:0 8px!important;font-size:.62rem!important}.woocommerce span.onsale{background:var(--wine)!important;min-height:auto!important;line-height:1!important;padding:8px!important;border-radius:7px!important;left:7px!important;top:7px!important;font-size:.62rem!important}.royal-panel{background:linear-gradient(135deg,var(--emerald),#063b33);color:#fff;border-radius:20px;overflow:hidden;display:grid;grid-template-columns:1.15fr .85fr}.royal-copy{padding:54px}.royal-copy p{color:#d2e7e0;max-width:560px}.royal-art{min-height:350px;background:linear-gradient(90deg,var(--emerald),transparent 25%),url('assets/images/hero-royal.png') 78% center/cover}.service-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.service{padding:22px;background:#fff;border:1px solid var(--line);border-radius:12px}.service b{display:block;font-family:"Cormorant Garamond",serif;font-size:1.25rem}.service span{font-size:.7rem;color:var(--muted)}.site-footer{background:var(--night);color:#d3d9e4;padding:42px 0 90px}.footer-grid{display:grid;grid-template-columns:1.4fr repeat(3,1fr);gap:38px}.footer-title{color:#fff;font-weight:800;margin-bottom:12px}.site-footer ul{list-style:none;padding:0;margin:0}.site-footer li{margin:7px 0;color:#8f99aa;font-size:.76rem}.copyright{border-top:1px solid rgba(255,255,255,.1);margin-top:30px;padding-top:18px;color:#717c8d;font-size:.68rem}.content-area{padding:42px 0}.newsletter{display:none}.mobile-nav{display:none}.woocommerce div.product{padding:30px 0}.woocommerce div.product p.price{color:var(--wine)!important}.woocommerce .quantity .qty{min-height:42px}.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,.woocommerce form .form-row select{padding:10px;border:1px solid var(--line);border-radius:8px}.woocommerce-message,.woocommerce-info{border-top-color:var(--gold)!important}.woocommerce-message:before,.woocommerce-info:before{color:var(--gold)!important}
@media(max-width:980px){body.admin-bar .site-header{top:46px}.header-row{grid-template-columns:44px 1fr auto;height:58px}.brand{text-align:center}.brand img{margin:auto;max-height:42px}.menu-toggle{display:grid}.primary-nav{display:none}.header-actions .account-link{display:none}.hero{height:540px;min-height:540px;background-position:66% center}.hero-copy{width:64%}.quick-grid{grid-template-columns:repeat(3,1fr)}.quick-card:nth-child(3){border-right:0}.quick-card:nth-child(-n+3){border-bottom:1px solid var(--line)}.products ul.products{grid-template-columns:repeat(3,1fr)!important}.royal-panel{grid-template-columns:1fr}.royal-art{min-height:260px}.service-grid{grid-template-columns:1fr 1fr}.footer-grid{grid-template-columns:1fr 1fr}.mobile-nav{position:fixed;display:grid;grid-template-columns:repeat(5,1fr);left:8px;right:8px;bottom:8px;z-index:100;background:rgba(8,15,28,.97);backdrop-filter:blur(15px);color:#fff;border:1px solid rgba(217,183,97,.38);border-radius:16px;padding:8px 3px;box-shadow:0 14px 35px rgba(0,0,0,.35)}.mobile-nav a{display:grid;justify-items:center;font-size:.58rem;gap:1px}.mobile-nav span:first-child{font-size:1rem}.mobile-nav a:nth-child(3){color:var(--gold)}.site-footer{padding-bottom:105px}}
@media(max-width:620px){.container{width:min(100% - 20px,1240px)}.top-note{height:24px;font-size:.55rem}.header-row{height:54px}.header-actions{gap:4px}.icon-link{width:34px;height:34px}.header-actions .search-link{display:none}.hero{height:475px;min-height:475px;background-position:65% center}.hero:before{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(5,10,19,.5),transparent)}.hero-copy{width:100%;padding-top:30px}.hero h1{font-size:3.3rem;max-width:315px}.hero p{font-size:.82rem;max-width:310px}.hero-actions .button{height:38px;padding:0 14px!important;font-size:.63rem!important}.quick-cats{margin-top:-20px}.quick-grid{grid-template-columns:repeat(3,1fr)}.quick-card{min-height:76px;padding:9px 7px;display:grid;justify-items:center;text-align:center;gap:4px}.quick-icon{width:30px;height:30px;flex-basis:30px}.quick-card strong{font-size:1rem}.quick-card small{display:none}.section{padding:42px 0}.section-head{display:block;margin-bottom:17px}.section-head p{margin-top:7px;font-size:.75rem}.products ul.products{grid-template-columns:repeat(2,1fr)!important;gap:8px}.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:.72rem!important}.collection-row{grid-template-columns:1fr}.collection-row .button{display:none!important}.royal-copy{padding:30px 22px}.royal-art{min-height:210px}.service-grid{grid-template-columns:1fr 1fr;gap:8px}.service{padding:15px 12px}.footer-grid{grid-template-columns:1fr 1fr;gap:28px 20px}}

/* Compact vertical rhythm */
body{line-height:1.3}p{margin:.4em 0 .65em}h1,h2,h3,.royal,.serif{line-height:.84}h1{font-size:clamp(3.1rem,5.5vw,5.8rem);margin:.08em 0 .12em}h2{font-size:clamp(2rem,3.2vw,3.2rem);margin:.06em 0 .1em}.hero p{font-size:.9rem;line-height:1.35}.hero-actions{gap:8px;margin-top:14px}.hero-seal{gap:10px;margin-bottom:10px}.quick-card{min-height:78px;padding:10px 11px}.section{padding:36px 0}.section-head{gap:16px;margin-bottom:14px}.collection-band{padding:12px 0}.collection-row h3{font-size:1.6rem}.collection-row p{margin:1px 0 0;font-size:.72rem}.royal-copy{padding:34px}.royal-art{min-height:280px}.service{padding:15px 17px}.site-footer{padding-top:30px}.copyright{margin-top:20px;padding-top:12px}.content-area{padding:28px 0}
@media(max-width:620px){.hero h1{font-size:3.05rem}.hero p{font-size:.79rem;line-height:1.28}.hero-actions .button{height:36px}.quick-card{min-height:64px;padding:6px 5px}.section{padding:26px 0}.section-head{margin-bottom:10px}.section-head p{margin-top:4px}.royal-copy{padding:22px 18px}.royal-art{min-height:180px}.service{padding:11px 10px}.footer-grid{gap:20px 16px}}
.eq-icon{display:inline-grid;place-items:center;width:21px;height:21px;line-height:1}.eq-icon svg{display:block;width:100%;height:100%}.quick-icon .eq-icon{width:23px;height:23px}.mobile-nav .eq-icon{width:20px;height:20px}.mobile-nav a{align-content:center}.icon-link .eq-icon{width:19px;height:19px}
/* Refined readable leading while preserving compact section geometry */
body{line-height:1.44}p{line-height:1.5}h1,h2,h3,.royal,.serif{line-height:.94}.hero p{line-height:1.48}.quick-card strong{line-height:1.05}.woocommerce ul.products li.product .woocommerce-loop-product__title{line-height:1.42!important}.service b{line-height:1.05}.footer-title{line-height:1.15}
@media(max-width:620px){body{line-height:1.4}p{line-height:1.46}.hero p{line-height:1.42}}
/* WooCommerce clearfix nodes must not become phantom CSS-grid products. */
.products ul.products::before,.products ul.products::after,.woocommerce ul.products::before,.woocommerce ul.products::after{content:none!important;display:none!important}
