/*
Theme Name: Sheerah Boutique
Theme URI: https://tamilnadudigital.com
Author: Tamil Nadu Digital
Author URI: https://tamilnadudigital.com
Description: Lightweight, fast ladies-fashion boutique theme for House of Sheerah. Burgundy, cream and gold palette with self-hosted fonts. Built for Elementor, Header Footer Elementor and Ultimate Addons for Elementor. No bloat, no external requests.
Version: 1.0.0
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sheerah
Tags: e-commerce, custom-colors, custom-logo, custom-menu, featured-images, full-width-template, translation-ready
*/

/* ---------- Design tokens (change colours here only) ---------- */
:root{
  --sh-burgundy:#6B1030;
  --sh-burgundy-dark:#4A0A21;
  --sh-gold:#B8893C;
  --sh-gold-light:#DDBB75;
  --sh-cream:#FBF4EA;
  --sh-ivory:#FFFBF5;
  --sh-blush:#F4DADC;
  --sh-text:#3A1522;
  --sh-muted:#7B5A63;
  --sh-line:#E9D9BF;
  --sh-font-script:"Great Vibes","Brush Script MT",cursive;
  --sh-font-serif:"Cormorant Garamond",Georgia,"Times New Roman",serif;
  --sh-font-body:"Jost",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  --sh-radius:2px;
  --sh-max:1200px;
}

/* ---------- Self-hosted fonts (no Google requests) ---------- */
@font-face{font-family:"Great Vibes";font-style:normal;font-weight:400;font-display:swap;src:url(assets/fonts/great-vibes-latin-400-normal.woff2) format("woff2")}
@font-face{font-family:"Cormorant Garamond";font-style:normal;font-weight:500;font-display:swap;src:url(assets/fonts/cormorant-garamond-latin-500-normal.woff2) format("woff2")}
@font-face{font-family:"Cormorant Garamond";font-style:normal;font-weight:600;font-display:swap;src:url(assets/fonts/cormorant-garamond-latin-600-normal.woff2) format("woff2")}
@font-face{font-family:"Cormorant Garamond";font-style:italic;font-weight:500;font-display:swap;src:url(assets/fonts/cormorant-garamond-latin-500-italic.woff2) format("woff2")}
@font-face{font-family:"Jost";font-style:normal;font-weight:400;font-display:swap;src:url(assets/fonts/jost-latin-400-normal.woff2) format("woff2")}
@font-face{font-family:"Jost";font-style:normal;font-weight:500;font-display:swap;src:url(assets/fonts/jost-latin-500-normal.woff2) format("woff2")}

/* ---------- Base ---------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;background:var(--sh-ivory);color:var(--sh-text);font-family:var(--sh-font-body);font-size:16px;line-height:1.7;-webkit-font-smoothing:antialiased}
img,video{max-width:100%;height:auto;display:block}
a{color:var(--sh-burgundy);text-decoration:none;transition:color .2s}
a:hover{color:var(--sh-gold)}
h1,h2,h3,h4,h5,h6{font-family:var(--sh-font-serif);font-weight:600;color:var(--sh-burgundy);line-height:1.2;margin:0 0 .6em;letter-spacing:.01em}
h1{font-size:clamp(2.2rem,5vw,3.4rem)}
h2{font-size:clamp(1.8rem,3.5vw,2.6rem)}
h3{font-size:1.5rem}
p{margin:0 0 1.2em}
.sh-script{font-family:var(--sh-font-script);font-weight:400;color:var(--sh-burgundy);letter-spacing:0}
.sh-eyebrow{font-family:var(--sh-font-body);text-transform:uppercase;letter-spacing:.28em;font-size:.78rem;color:var(--sh-gold);font-weight:500}
.sh-container{width:100%;max-width:var(--sh-max);margin:0 auto;padding:0 20px}
.screen-reader-text{position:absolute!important;clip:rect(1px,1px,1px,1px);width:1px;height:1px;overflow:hidden}
.skip-link:focus{position:fixed;top:8px;left:8px;z-index:100000;background:#fff;padding:10px 16px;clip:auto;width:auto;height:auto}

/* Gold divider ornament */
.sh-divider{display:flex;align-items:center;gap:14px;justify-content:center;color:var(--sh-burgundy);margin:18px auto}
.sh-divider::before,.sh-divider::after{content:"";height:1px;width:90px;background:linear-gradient(90deg,transparent,var(--sh-gold))}
.sh-divider::after{transform:scaleX(-1)}

/* ---------- Buttons ---------- */
.sh-btn,.button,button[type=submit],input[type=submit],.wp-block-button__link{
  display:inline-block;background:var(--sh-burgundy);color:#fff;border:1px solid var(--sh-gold);
  padding:13px 34px;font-family:var(--sh-font-body);font-weight:500;letter-spacing:.14em;text-transform:uppercase;font-size:.82rem;
  border-radius:var(--sh-radius);cursor:pointer;transition:background .25s,color .25s;
}
.sh-btn:hover,.button:hover,button[type=submit]:hover,input[type=submit]:hover{background:var(--sh-gold);color:#fff}
.sh-btn--ghost{background:transparent;color:var(--sh-burgundy)}
.sh-btn--ghost:hover{background:var(--sh-burgundy);color:#fff}

/* ---------- Forms ---------- */
input[type=text],input[type=email],input[type=tel],input[type=search],input[type=number],input[type=password],textarea,select{
  width:100%;padding:12px 14px;border:1px solid var(--sh-line);background:#fff;color:var(--sh-text);font:inherit;border-radius:var(--sh-radius)}
input:focus,textarea:focus,select:focus{outline:none;border-color:var(--sh-gold);box-shadow:0 0 0 3px rgba(184,137,60,.15)}

/* ---------- Fallback header (used only if Header Footer Elementor header is not set) ---------- */
.sh-topbar{background:var(--sh-burgundy);color:var(--sh-cream);text-align:center;font-size:.78rem;letter-spacing:.18em;text-transform:uppercase;padding:8px 12px}
.sh-header{background:var(--sh-cream);border-bottom:1px solid var(--sh-line);position:sticky;top:0;z-index:50}
.sh-header__inner{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 20px;max-width:var(--sh-max);margin:0 auto}
.sh-brand{display:flex;flex-direction:column;line-height:1;color:var(--sh-burgundy)}
.sh-brand small{font-family:var(--sh-font-serif);letter-spacing:.3em;text-transform:uppercase;font-size:.72rem;color:var(--sh-gold);margin-bottom:10px;padding-left:4px}
.sh-brand strong{font-family:var(--sh-font-script);font-weight:400;font-size:2.2rem;line-height:1.1;color:var(--sh-burgundy)}
.sh-nav ul{list-style:none;margin:0;padding:0;display:flex;gap:28px}
.sh-nav a{font-size:.82rem;letter-spacing:.16em;text-transform:uppercase;color:var(--sh-text);font-weight:500;padding:6px 0;border-bottom:1px solid transparent}
.sh-nav a:hover,.sh-nav .current-menu-item>a{color:var(--sh-burgundy);border-bottom-color:var(--sh-gold)}
.sh-menu-toggle{display:none;background:none;border:1px solid var(--sh-gold);color:var(--sh-burgundy);padding:8px 14px;letter-spacing:.14em}
@media(max-width:860px){
  .sh-menu-toggle{display:block}
  .sh-nav{display:none;position:absolute;left:0;right:0;top:100%;background:var(--sh-cream);border-bottom:1px solid var(--sh-line);padding:10px 20px 20px}
  .sh-nav.is-open{display:block}
  .sh-nav ul{flex-direction:column;gap:6px}
}

/* ---------- Fallback footer ---------- */
.sh-footer{background:var(--sh-burgundy-dark);color:var(--sh-cream);padding:56px 0 24px;margin-top:60px}
.sh-footer a{color:var(--sh-gold-light)}
.sh-footer a:hover{color:#fff}
.sh-footer__grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:40px}
.sh-footer h4{color:var(--sh-gold-light);font-size:1.15rem;letter-spacing:.1em;text-transform:uppercase}
.sh-footer ul{list-style:none;margin:0;padding:0}
.sh-footer li{margin-bottom:8px}
.sh-footer__bottom{border-top:1px solid rgba(221,187,117,.3);margin-top:36px;padding-top:18px;text-align:center;font-size:.85rem;opacity:.85}
@media(max-width:760px){.sh-footer__grid{grid-template-columns:1fr}}

/* ---------- Content ---------- */
.sh-main{min-height:50vh}
.sh-page{padding:56px 0}
.sh-page__title{text-align:center}
.entry-content>*{max-width:820px;margin-left:auto;margin-right:auto}
.entry-content>.alignwide,.entry-content>.alignfull{max-width:none}
.sh-post-card{border:1px solid var(--sh-line);background:#fff;padding:24px;margin-bottom:24px}
.sh-posts{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:24px}

/* Elementor full-width pages: remove theme padding/titles */
.elementor-page .sh-page{padding:0}
.elementor-page .sh-page__title{display:none}
.elementor-page .entry-content>*{max-width:none}

/* ---------- Home fallback (shown only when the front page has no content) ---------- */
.sh-hero{background:radial-gradient(ellipse at top,#fff 0%,var(--sh-cream) 60%,var(--sh-blush) 130%);text-align:center;padding:110px 20px 100px;border-bottom:1px solid var(--sh-line)}
.sh-hero .sh-script{font-size:clamp(2.6rem,7vw,4.6rem);display:block;line-height:1.1}
.sh-hero h1{margin:.1em 0 .2em;letter-spacing:.12em;text-transform:uppercase;font-size:clamp(1.2rem,3vw,1.8rem);color:var(--sh-gold)}
.sh-hero p{font-family:var(--sh-font-serif);font-style:italic;font-size:1.35rem;color:var(--sh-muted)}
.sh-cats{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:18px;padding:60px 0}
.sh-cat{border:1px solid var(--sh-line);background:var(--sh-cream);text-align:center;padding:42px 18px;font-family:var(--sh-font-serif);font-size:1.4rem;color:var(--sh-burgundy);transition:all .25s}
.sh-cat:hover{background:var(--sh-burgundy);color:var(--sh-gold-light);border-color:var(--sh-gold)}

/* ---------- WooCommerce (only styles if WooCommerce is active) ---------- */
.woocommerce ul.products{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:26px;margin:0;padding:0;list-style:none}
.woocommerce ul.products::before,.woocommerce ul.products::after{display:none!important}
.woocommerce ul.products li.product{width:auto!important;margin:0!important;float:none!important;text-align:center}
.woocommerce ul.products li.product img{margin-bottom:12px;border:1px solid var(--sh-line)}
.woocommerce-loop-product__title{font-family:var(--sh-font-serif);font-size:1.25rem!important;color:var(--sh-burgundy)}
.woocommerce .price,.woocommerce div.product p.price{color:var(--sh-gold);font-weight:500}
.woocommerce span.onsale{background:var(--sh-burgundy);color:#fff;border-radius:0;min-height:0;min-width:0;line-height:1;padding:7px 12px;font-size:.72rem;letter-spacing:.12em;text-transform:uppercase}
.woocommerce-message,.woocommerce-info{border-top-color:var(--sh-gold)!important}
.woocommerce-message::before,.woocommerce-info::before{color:var(--sh-gold)!important}
.woocommerce a.button.alt,.woocommerce button.button.alt,.woocommerce #respond input#submit.alt{background:var(--sh-burgundy);color:#fff}
.woocommerce a.button.alt:hover,.woocommerce button.button.alt:hover{background:var(--sh-gold)}

/* ---------- Motion preferences ---------- */
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* ---------- Elementor homepage extras ---------- */
.sh-card{transition:transform .3s ease,box-shadow .3s ease}
.sh-card:hover{transform:translateY(-6px);box-shadow:0 14px 30px rgba(107,16,48,.22)}
.elementor-widget-shortcode ul.products{margin-bottom:10px}
.elementor-widget-container a.elementor-button{text-decoration:none}

/* ---------- Header dropdown + cart ---------- */
.sh-nav li{position:relative}
.sh-nav ul ul{display:none;position:absolute;top:100%;left:-14px;min-width:220px;background:var(--sh-cream);border:1px solid var(--sh-line);border-top:2px solid var(--sh-gold);padding:10px 0;flex-direction:column;gap:0;z-index:60;box-shadow:0 12px 24px rgba(74,10,33,.12)}
.sh-nav li:hover>ul,.sh-nav li:focus-within>ul{display:flex}
.sh-nav ul ul a{display:block;padding:8px 18px;border-bottom:0;letter-spacing:.1em}
.sh-cart{font-size:.82rem;letter-spacing:.14em;text-transform:uppercase;font-weight:500;color:var(--sh-burgundy);border:1px solid var(--sh-gold);padding:7px 14px;white-space:nowrap}
.sh-cart-count{display:inline-block;min-width:20px;height:20px;line-height:20px;text-align:center;background:var(--sh-burgundy);color:#fff;border-radius:10px;font-size:.72rem;letter-spacing:0}
@media(max-width:860px){
  .sh-header__inner{flex-wrap:wrap}
  .sh-nav ul ul{display:flex;position:static;border:0;box-shadow:none;background:transparent;padding:0 0 0 14px}
}

/* ---------- Single product, cart, checkout ---------- */
.woocommerce div.product .product_title{font-size:clamp(1.8rem,3vw,2.4rem)}
.woocommerce div.product p.price,.woocommerce div.product span.price{font-size:1.5rem}
.woocommerce div.product form.cart .variations select{padding:10px 12px}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active{border-bottom-color:var(--sh-ivory)}
.woocommerce div.product .woocommerce-tabs ul.tabs li a{font-family:var(--sh-font-body);letter-spacing:.08em;text-transform:uppercase;font-size:.8rem}
.woocommerce table.shop_table{border-color:var(--sh-line);border-radius:0}
.woocommerce-checkout #payment{background:var(--sh-cream);border-radius:0}
.woocommerce form .form-row label{font-size:.9rem}
.woocommerce nav.woocommerce-pagination ul li a,.woocommerce nav.woocommerce-pagination ul li span{padding:.6em .9em}
.woocommerce nav.woocommerce-pagination ul li span.current{background:var(--sh-burgundy);color:#fff}
.woocommerce-result-count,.woocommerce-ordering{margin-bottom:24px}

/* ---------- UAE (Ultimate Addons for Elementor) header + footer ---------- */
header#masthead{position:sticky;top:0;z-index:50}
.admin-bar header#masthead{top:32px}
.sh-hf-header .hfe-nav-menu .menu-item>a,.sh-hf-header .hfe-menu-item{font-family:var(--sh-font-body)!important;font-size:.82rem!important;letter-spacing:.16em;text-transform:uppercase;font-weight:500;color:var(--sh-text)}
.sh-hf-header .hfe-nav-menu .menu-item>a:hover,.sh-hf-header .hfe-nav-menu .current-menu-item>a{color:var(--sh-burgundy)}
.sh-hf-header .hfe-nav-menu .sub-menu{background:var(--sh-cream);border:1px solid var(--sh-line);border-top:2px solid var(--sh-gold)}
.sh-hf-header .hfe-nav-menu .sub-menu a{letter-spacing:.1em}
.sh-hf-header .hfe-nav-menu__toggle,.sh-hf-header .hfe-nav-menu__toggle svg{color:var(--sh-burgundy);fill:var(--sh-burgundy)}
.sh-hf-header .hfe-flyout-wrapper,.sh-hf-header .hfe-nav-menu__layout-horizontal{background:transparent}
.sh-hf-footer a{transition:color .2s}
.sh-hf-footer .elementor-icon-list-item a:hover .elementor-icon-list-text{color:#fff}

/* Fallback WordPress Menu widget inside the Elementor header */
.sh-hf-header .sh-wp-menu ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px 26px;justify-content:center}
.sh-hf-header .sh-wp-menu a{font-size:.82rem;letter-spacing:.16em;text-transform:uppercase;font-weight:500;color:var(--sh-text)}
.sh-hf-header .sh-wp-menu a:hover,.sh-hf-header .sh-wp-menu .current-menu-item>a{color:var(--sh-burgundy)}
.sh-hf-header .sh-wp-menu ul ul{display:none}
.sh-own-hf{display:block}
header.sh-own-hf{position:sticky;top:0;z-index:50}
