/*
Theme Name: Gem & Glam House
Theme URI: https://gemandglamhouse.in/
Author: Gem & Glam House
Description: An original, elegant WooCommerce storefront for modern hair accessories.
Version: 2.0.0
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 7.4
Text Domain: gem-glam-house
*/

:root {
  --ink: #241a17;
  --maroon: #7c3f3a;
  --maroon-dark: #5a2c29;
  --terracotta: #c17a5a;
  --blush: #f3e3da;
  --cream: #fbf6ef;
  --gold: #b8905a;
  --gold-light: #e3c9a0;
  --line: rgba(60, 35, 30, .14);
  --muted: #6f5b54;
  --white: #fff;
  --shadow: 0 18px 50px rgba(50, 27, 22, .10);
  --shadow-soft: 0 10px 30px rgba(50, 27, 22, .08);
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: var(--sans); line-height: 1.65; font-size: 16px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(1240px, calc(100% - 40px)); margin: 0 auto; }

/* ---------- Announcement bar (rotating) ---------- */
.announcement { background: var(--ink); color: #f4e9df; text-align: center; padding: 10px 16px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; position: relative; height: 38px; overflow: hidden; }
.announcement ul { list-style: none; margin: 0; padding: 0; height: 100%; }
.announcement li { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; opacity: 0; animation: ggh-rotate 12s infinite; }
.announcement li:nth-child(1) { animation-delay: 0s; }
.announcement li:nth-child(2) { animation-delay: 4s; }
.announcement li:nth-child(3) { animation-delay: 8s; }
@keyframes ggh-rotate {
  0% { opacity: 0; transform: translateY(6px); }
  4% { opacity: 1; transform: translateY(0); }
  29% { opacity: 1; transform: translateY(0); }
  33% { opacity: 0; transform: translateY(-6px); }
  100% { opacity: 0; }
}

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(251,246,239,.97); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.header-main { min-height: 88px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; justify-self: start; }
.brand-mark { width: 46px; height: 46px; border: 1px solid var(--gold); border-radius: 50%; display: grid; place-items: center; color: var(--maroon); font-family: var(--serif); font-size: 18px; letter-spacing: -.06em; background: linear-gradient(145deg,#fff,#f3e3da); }
.brand-copy { line-height: 1; }
.brand-name { font-family: var(--serif); font-size: 26px; font-weight: 600; letter-spacing: .02em; white-space: nowrap; color: var(--ink); }
.brand-tag { margin-top: 6px; display: block; color: var(--gold); font-size: 9px; letter-spacing: .22em; text-transform: uppercase; }
.menu-toggle { display: none; border: 0; background: transparent; font-size: 24px; cursor: pointer; color: var(--ink); }

.primary-nav { justify-self: center; }
.primary-nav > ul { display: flex; list-style: none; gap: 34px; margin: 0; padding: 0; font-size: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.primary-nav > ul > li { padding: 10px 0; }
.primary-nav > ul > li > a { display: inline-flex; align-items: center; gap: 4px; }
.primary-nav a:hover { color: var(--maroon); }
.primary-nav .caret { font-size: 9px; opacity: .6; transform: translateY(1px); }

/* Mega menu */
.has-mega { position: static; }
.mega-panel {
  position: absolute; left: 0; right: 0; top: 100%; margin-top: 1px;
  background: var(--white); border-top: 1px solid var(--line); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  padding: 36px 0;
}
.has-mega:hover .mega-panel,
.has-mega:focus-within .mega-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; width: min(1240px, calc(100% - 40px)); margin: 0 auto; }
.mega-item { text-align: center; text-transform: none; letter-spacing: 0; }
.mega-item img { aspect-ratio: 1/1; object-fit: cover; border-radius: 4px; margin-bottom: 12px; box-shadow: var(--shadow-soft); transition: transform .25s ease; }
.mega-item:hover img { transform: translateY(-3px); }
.mega-item span { font-family: var(--serif); font-size: 16px; color: var(--ink); }
.mega-view-all { grid-column: 1 / -1; text-align: center; margin-top: 8px; }
.mega-view-all a { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--maroon); border-bottom: 1px solid var(--maroon); padding-bottom: 2px; }

.header-actions { justify-self: end; display: flex; align-items: center; gap: 20px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.header-actions a { display: inline-flex; gap: 7px; align-items: center; }
.cart-count { min-width: 18px; height: 18px; border-radius: 20px; display: inline-grid; place-items: center; color: #fff; background: var(--maroon); font-size: 10px; }

/* ---------- Buttons ---------- */
.button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 30px;
  border: 1px solid var(--maroon)!important; border-radius: 2px!important; background: var(--maroon)!important; color: #fff!important;
  font-family: var(--sans); font-size: 11px!important; font-weight: 600; letter-spacing: .15em; text-transform: uppercase;
  transition: .2s ease; cursor: pointer;
}
.button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--maroon-dark)!important; border-color: var(--maroon-dark)!important; transform: translateY(-1px); }
.button-outline { background: transparent!important; color: var(--maroon)!important; margin-left: 12px; }
.button-outline:hover { background: var(--maroon)!important; color: #fff!important; }

/* ---------- Hero ---------- */
.hero { min-height: 680px; background: #ecd9cd url('https://gemandglamhouse.in/wp-content/uploads/2026/07/hero-new.jpg') center/cover no-repeat; display: grid; align-items: center; position: relative; }
.hero::after { content:''; position:absolute; inset:0; background: linear-gradient(90deg,rgba(251,246,239,.95) 0%,rgba(251,246,239,.74) 38%,rgba(251,246,239,0) 64%); }
.hero-content { position: relative; z-index: 1; max-width: 560px; padding: 100px 0; }
.eyebrow { color: var(--maroon); font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; }
.hero h1, .section-title, .editorial h2, .story-copy h2 { font-family: var(--serif); font-weight: 600; line-height: 1.06; color: var(--ink); }
.hero h1 { font-size: clamp(48px,6vw,80px); margin: 18px 0 22px; }
.hero p { max-width: 480px; font-size: 18px; color: var(--muted); }

/* ---------- Trust strip ---------- */
.trust-strip { border-bottom: 1px solid var(--line); background: var(--white); }
.trust-strip-inner { display: grid; grid-template-columns: repeat(4,1fr); }
.trust-strip-item { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 22px 12px; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); border-right: 1px solid var(--line); text-align: center; }
.trust-strip-item:last-child { border-right: 0; }
.trust-strip-item .ico { color: var(--gold); font-size: 18px; }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-soft { background: var(--blush); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 46px; }
.section-title { font-size: clamp(36px,4vw,54px); margin: 9px 0 0; }
.text-link { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--maroon); border-bottom: 1px solid var(--maroon); padding-bottom: 2px; }

/* ---------- Category grid ---------- */
.category-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 16px; }
.category-card { position: relative; overflow: hidden; box-shadow: var(--shadow-soft); border-radius: 3px; aspect-ratio: 3/4; background: linear-gradient(145deg,#ecd1c4,#c9967a); }
.category-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.category-card:hover img { transform: scale(1.06); }
.category-card::after { content:''; position:absolute; inset:0; background: linear-gradient(0deg, rgba(36,26,23,.68) 0%, rgba(36,26,23,.06) 46%, rgba(36,26,23,0) 62%); }
.category-card span { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 10px; text-align: center; z-index: 1; font-family: var(--serif); font-size: 19px; font-weight: 600; color: #fff; }
.category-card:hover { transform: translateY(-4px); transition: transform .25s ease; }

/* ---------- Products ---------- */
.woocommerce ul.products { display:grid!important; grid-template-columns:repeat(4,1fr); gap:30px; margin:0!important; }
.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; }
.woocommerce ul.products li.product a img { aspect-ratio:1/1.15; object-fit:cover; background:#f1e3da; margin:0 0 18px!important; border-radius: 3px; transition: transform .4s ease; }
.woocommerce ul.products li.product a:hover img { transform: scale(1.03); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family:var(--serif); font-size:20px!important; font-weight: 600; color:var(--ink); padding:0!important; }
.woocommerce ul.products li.product .price { color:var(--maroon)!important; font-size:15px!important; }
.woocommerce ul.products li.product .price del { color: var(--muted)!important; opacity: .7; }
.woocommerce ul.products li.product .price ins { text-decoration: none; }
.woocommerce ul.products li.product .button { margin-top:11px!important; min-height:40px; padding:0 18px; }
.woocommerce span.onsale { background: var(--gold)!important; color: #fff!important; font-family: var(--sans); font-size: 10px!important; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; min-height: auto!important; min-width: auto!important; line-height: 1!important; padding: 7px 10px!important; border-radius: 2px!important; top: 10px!important; left: 10px!important; right: auto!important; }

/* ---------- Editorial banner ---------- */
.editorial { display:grid; grid-template-columns:1fr 1fr; min-height:720px; background:#fff; }
.editorial-image { background:url('https://gemandglamhouse.in/wp-content/uploads/2026/07/editorial-occasion.jpg') center 20%/cover no-repeat; min-height:620px; }
.editorial-copy { padding: clamp(55px,8vw,120px); display:flex; flex-direction:column; justify-content:center; background: var(--ink); color: #f4e9df; }
.editorial-copy .eyebrow { color: var(--gold-light); }
.editorial h2 { color: #fff; font-size:clamp(42px,5vw,64px); margin:14px 0 20px; }
.editorial p { color:#d9c6bc; font-size:16px; margin-bottom:28px; }

/* ---------- Story ---------- */
.story { display:grid; grid-template-columns:1.05fr .95fr; align-items:center; gap:80px; }
.story-image { min-height:560px; background:url('https://gemandglamhouse.in/wp-content/uploads/2026/07/story-collection.jpg') center/cover no-repeat; box-shadow:var(--shadow); border-radius: 3px; }
.story-copy h2 { font-size:clamp(38px,4vw,56px); margin:12px 0 20px; }
.story-copy p { color:var(--muted); }
.signature { font-family:var(--serif); color:var(--gold); font-size:24px; font-style:italic; }

/* ---------- Trust grid (mid page) ---------- */
.trust-grid { display:grid; grid-template-columns:repeat(4,1fr); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.trust-item { padding:44px 28px; text-align:center; border-right:1px solid var(--line); }
.trust-item:last-child { border-right:0; }
.trust-icon { font-size:28px; color:var(--gold); }
.trust-item h3 { font-family:var(--serif); font-size:21px; font-weight:600; margin:10px 0 5px; }
.trust-item p { color:var(--muted); font-size:13px; margin:0; }

/* ---------- Reviews ---------- */
.reviews { display:grid; grid-template-columns:repeat(3,1fr); gap:26px; }
.review { background:#fff; padding:36px; box-shadow:var(--shadow-soft); border-radius: 3px; border-top: 2px solid var(--gold); }
.stars { color:var(--gold); letter-spacing:.15em; }
.review blockquote { font-family:var(--serif); font-size:21px; font-weight: 500; margin:18px 0; }
.review cite { color:var(--muted); font-style:normal; font-size:12px; text-transform:uppercase; letter-spacing:.1em; }

/* ---------- Newsletter ---------- */
.newsletter { background:var(--maroon-dark); color:#fff; padding:75px 0; text-align:center; }
.newsletter h2 { font-family:var(--serif); font-size:44px; font-weight:600; margin:0 0 8px; }
.newsletter p { color:#eaded8; margin-bottom:26px; }
.newsletter-form { display:flex; max-width:540px; margin:auto; }
.newsletter-form input { flex:1; min-width:0; border:1px solid rgba(255,255,255,.45); background:transparent; color:#fff; padding:15px; font-family: var(--sans); }
.newsletter-form input::placeholder { color:#e3cec2; }
.newsletter-form button { border:0; background:var(--gold); color:#fff; padding:0 26px; text-transform:uppercase; letter-spacing:.12em; font-size:10px; font-weight: 600; cursor: pointer; }

/* ---------- Footer ---------- */
.site-footer { background:var(--ink); color:#e8ddd6; padding:72px 0 25px; }
.footer-grid { display:grid; grid-template-columns:1.4fr repeat(3,1fr); gap:55px; }
.footer-title { color:#fff; font-family:var(--serif); font-size:20px; font-weight: 600; margin:0 0 18px; }
.footer-links { list-style:none; margin:0; padding:0; }
.footer-links li { margin:9px 0; font-size:13px; color:#c7b6ac; }
.footer-links a:hover { color: var(--gold-light); }
.footer-note { color:#bba99e; max-width:330px; font-size:13px; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.12); margin-top:45px; padding-top:22px; display:flex; justify-content:space-between; font-size:11px; color:#a3948c; }

.content-area { padding:70px 0; min-height:60vh; }
.page-title { font-family:var(--serif); font-size:48px; font-weight:600; }
.entry-content { max-width:850px; }
.woocommerce .quantity .qty { min-height:46px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .mega-grid { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 980px) {
  .header-main { grid-template-columns:auto 1fr auto; }
  .menu-toggle { display:block; }
  .primary-nav { display:none; position:absolute; left:0; right:0; top:100%; background:var(--cream); padding:25px; border-top:1px solid var(--line); max-height: 80vh; overflow-y: auto; }
  .primary-nav.is-open { display:block; }
  .primary-nav > ul { flex-direction:column; gap: 4px; }
  .primary-nav .mega-panel { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-top: 0; padding: 14px 0 14px 14px; display: none; }
  .has-mega.is-open .mega-panel { display: block; }
  .mega-grid { grid-template-columns: repeat(3,1fr); gap: 12px; width: 100%; }
  .mega-item span { font-size: 13px; }
  .brand { justify-self:start; }
  .header-actions .action-label { display:none; }
  .category-grid { grid-template-columns:repeat(3,1fr); }
  .woocommerce ul.products { grid-template-columns:repeat(2,1fr)!important; }
  .story { gap:40px; }
  .trust-grid { grid-template-columns:repeat(2,1fr); }
  .trust-strip-inner { grid-template-columns: repeat(2,1fr); }
  .trust-item:nth-child(2) { border-right:0; }
  .footer-grid { grid-template-columns:1fr 1fr; }
}
@media (max-width: 700px) {
  .container { width:min(100% - 28px,1200px); }
  .announcement { font-size:9px; }
  .header-main { min-height:72px; gap:10px; }
  .brand-mark { width:40px; height:40px; }
  .brand-name { font-size:19px; }
  .brand-tag { display:none; }
  .hero { min-height:640px; background-position:66% center; align-items:end; }
  .hero::after { background:linear-gradient(0deg,rgba(251,246,239,.98) 0%,rgba(251,246,239,.8) 45%,rgba(251,246,239,.05) 78%); }
  .hero-content { padding:55px 0; max-width:100%; }
  .hero h1 { font-size:44px; }
  .hero p { font-size:15px; }
  .button { padding:0 18px; }
  .section { padding:65px 0; }
  .section-head { align-items:start; flex-direction:column; margin-bottom:28px; }
  .category-grid { grid-template-columns:repeat(2,1fr); }
  .editorial { grid-template-columns:1fr; }
  .editorial-image { min-height:420px; }
  .editorial-copy { padding:55px 24px; }
  .story { grid-template-columns:1fr; gap:38px; }
  .story-image { min-height:380px; }
  .reviews { grid-template-columns:1fr; }
  .trust-strip-inner { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns:1fr; gap:30px; }
  .footer-bottom { gap:12px; flex-direction:column; }
}
