/* assets/css/header.css
   Oriental Gems
   Gallery calm header theme
   Minimal changes
   Adds
   - WhatsApp green button style using existing og-btn class via og-btn-wa
   - Cart icon button and badge styles (og-carticon, og-cartdot, og-cartline, og-cartbadge)
   - Keeps your logo unboxed as you requested
   Works with your current header.php class names (og-*)
*/

:root{
  --og-max: 1180px;
  --og-pad: 18px;

  /* Palette */
  --og-ivory: #f7f5f0;
  --og-ink: #161a1d;
  --og-ink2: rgba(22,26,29,0.70);

  --og-indigo: #1c2a3a;
  --og-indigo2: rgba(28,42,58,0.72);

  --og-clay: #b56a4a;
  --og-gold: #c8a45d;

  /* Accent only */
  --og-jade: #2f8f6b;
  --og-focus: rgba(47,143,107,0.26);

  /* WhatsApp */
  --og-wa: #25D366;
  --og-wa2: #1fb85a;
  --og-wa-ink: #0b2a1b;

  /* Surfaces */
  --og-panel: rgba(247,245,240,0.84);
  --og-card: rgba(255,255,255,0.80);

  --og-line: rgba(28,42,58,0.12);
  --og-line2: rgba(28,42,58,0.18);

  /* Depth */
  --og-shadow: 0 18px 50px rgba(16,22,28,0.14);
  --og-shadow2: 0 10px 26px rgba(16,22,28,0.10);

  --og-radius: 18px;
  --og-radius2: 14px;

  --og-logo-h: 54px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: Inter, system-ui, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--og-ink);
  background:
    radial-gradient(900px 420px at 15% 10%, rgba(28,42,58,0.10), transparent 60%),
    radial-gradient(820px 360px at 85% 18%, rgba(200,164,93,0.10), transparent 58%),
    radial-gradient(900px 520px at 50% 115%, rgba(181,106,74,0.08), transparent 60%),
    linear-gradient(180deg, #fbfaf6, var(--og-ivory));
}

a{ color:inherit; text-decoration:none; }

.og-wrap{
  max-width: var(--og-max);
  margin: 0 auto;
  padding: 0 var(--og-pad);
}

.og-main{ display:block; }

/* Header shell */
.og-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--og-panel);
  border-bottom: 1px solid var(--og-line);
  backdrop-filter: blur(14px) saturate(120%);
}

.og-header::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:0;
  height: 1px;
  background: rgba(255,255,255,0.55);
  pointer-events:none;
}

.og-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  padding: 12px 0;
}

/* Brand */
.og-brand{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 220px;
  max-width: 520px;
  border-radius: 16px;
}

.og-logo{
  height: var(--og-logo-h);
  width: auto;
  display:block;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(16,22,28,0.14));
}

.og-brandtext{
  display:flex;
  flex-direction:column;
  gap: 2px;
  min-width: 0;
}

.og-name{
  font-size: 15px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--og-indigo);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.og-tagline{
  font-size: 12px;
  font-weight: 520;
  letter-spacing: 0.15px;
  color: rgba(28,42,58,0.72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Desktop nav */
.og-nav{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 6px;
  flex: 1 1 auto;
}

.og-link{
  position: relative;
  font-size: 14px;
  font-weight: 560;
  color: rgba(28,42,58,0.72);
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  transition: transform 0.14s ease, background 0.14s ease, border-color 0.14s ease, color 0.14s ease, box-shadow 0.14s ease;
}

.og-link:hover{
  background: rgba(255,255,255,0.62);
  border-color: rgba(28,42,58,0.14);
  box-shadow: 0 10px 24px rgba(16,22,28,0.08);
  transform: translateY(-1px);
}

.og-link.is-active{
  background: rgba(28,42,58,0.08);
  border-color: rgba(28,42,58,0.16);
  color: rgba(28,42,58,0.92);
  box-shadow: 0 10px 24px rgba(16,22,28,0.08);
}

.og-link.is-active::after{
  content:"";
  position:absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(200,164,93,0.0), rgba(200,164,93,0.85), rgba(200,164,93,0.0));
  opacity: 0.95;
}

/* Actions */
.og-actions{
  display:flex;
  align-items:center;
  gap: 10px;
}

/* Button system stays as you had it */
.og-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(28,42,58,0.18);
  background: rgba(255,255,255,0.70);
  color: #1c2a3a;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 10px 22px rgba(16,22,28,0.08);
  transition: background 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease, border-color 0.14s ease;
  white-space: nowrap;
}

.og-btn:hover{
  background: rgba(255,255,255,0.88);
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(16,22,28,0.12);
}

/* WhatsApp CTA: minimal change, just a variant */
.og-btn-wa{
  border-color: rgba(37,211,102,0.36);
  background: linear-gradient(180deg, rgba(37,211,102,0.22), rgba(37,211,102,0.14));
  color: rgba(28,42,58,0.92);
}

.og-btn-wa:hover{
  border-color: rgba(37,211,102,0.56);
  background: linear-gradient(180deg, rgba(37,211,102,0.28), rgba(37,211,102,0.18));
}

/* Cart icon: matches button look but icon only */
.og-carticon{
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(28,42,58,0.18);
  background: rgba(255,255,255,0.70);
  color: rgba(28,42,58,0.86);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 10px 22px rgba(16,22,28,0.08);
  transition: background 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease, border-color 0.14s ease;
}

.og-carticon:hover{
  background: rgba(255,255,255,0.88);
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(16,22,28,0.12);
  border-color: rgba(28,42,58,0.22);
}

.og-carticon i{
  font-size: 18px;
  line-height: 1;
}

/* Cart badge */
.og-cartdot{
  position:absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(200,164,93,0.92);
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  border: 2px solid rgba(247,245,240,0.95);
  box-shadow: 0 10px 18px rgba(16,22,28,0.12);
}

/* Burger stays as you had */
.og-burger{
  display:none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(28,42,58,0.18);
  background: rgba(255,255,255,0.70);
  color: rgba(28,42,58,0.86);
  align-items:center;
  justify-content:center;
  box-shadow: 0 10px 22px rgba(16,22,28,0.08);
  transition: background 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease;
}

.og-burger:hover{
  background: rgba(255,255,255,0.88);
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(16,22,28,0.12);
}

/* Mobile panel */
.og-mobile{ padding: 10px 0 16px 0; }

.og-mobilecard{
  padding: 12px;
  background: var(--og-card);
  border: 1px solid rgba(28,42,58,0.14);
  border-radius: var(--og-radius);
  box-shadow: var(--og-shadow);
  display:flex;
  flex-direction:column;
  gap: 10px;
}

.og-mobilink{
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.64);
  border: 1px solid rgba(28,42,58,0.14);
  font-weight: 620;
  color: rgba(28,42,58,0.82);
  transition: background 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease, border-color 0.14s ease;
}

.og-mobilink:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.78);
  border-color: rgba(28,42,58,0.22);
  box-shadow: 0 10px 24px rgba(16,22,28,0.10);
}

.og-mobilink.is-active{
  background: rgba(28,42,58,0.08);
  border-color: rgba(200,164,93,0.22);
  color: rgba(28,42,58,0.94);
}

.og-moblecta{
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 4px;
}

.og-btn-full{ width: 100%; }

/* Cart row in mobile menu */
.og-cartline{
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.64);
  border: 1px solid rgba(28,42,58,0.14);
  font-weight: 620;
  color: rgba(28,42,58,0.82);
  display:flex;
  align-items:center;
  justify-content:space-between;
  transition: background 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease, border-color 0.14s ease;
}

.og-cartline:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.78);
  border-color: rgba(28,42,58,0.22);
  box-shadow: 0 10px 24px rgba(16,22,28,0.10);
}

.og-cartbadge{
  min-width: 22px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(200,164,93,0.92);
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  border: 2px solid rgba(247,245,240,0.95);
}

/* Focus */
.og-brand:focus-visible,
.og-link:focus-visible,
.og-btn:focus-visible,
.og-carticon:focus-visible,
.og-burger:focus-visible,
.og-mobilink:focus-visible,
.og-cartline:focus-visible{
  outline: 3px solid var(--og-focus);
  outline-offset: 4px;
}

/* Responsive */
@media (max-width: 980px){
  .og-nav{ display:none; }
  .og-actions{ display:none; }
  .og-burger{ display:inline-flex; }
}

@media (max-width: 520px){
  :root{ --og-logo-h: 44px; }
  .og-brand{ min-width: 0; max-width: none; }
  .og-name{ font-size: 14px; }
  .og-tagline{ font-size: 11px; }
}

@media (prefers-reduced-motion: reduce){
  .og-link,
  .og-btn,
  .og-carticon,
  .og-burger,
  .og-mobilink,
  .og-cartline{
    transition: none;
  }
}
