/* ════════════════════════════════════════════════════════
   poshay.css  —  Shared design system for all pages
   Brand: Poshay® | Green · Gold · Black
   ════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Open+Sans:wght@400;500;600&display=swap');

/* ── Reset & Tokens ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:       #0F3D2E;
  --green-dark:  #0a2820;
  --black:       #121212;
  --gold:        #C8A951;
  --gold-hover:  #b8952f;
  --bg:          #F7F7F7;
  --white:       #ffffff;
  --border:      #e4e4e4;
  --text-muted:  #666666;
  --radius:      14px;
  --shadow:      0 4px 24px rgba(15,61,46,.10);
  --shadow-hover:0 10px 40px rgba(15,61,46,.18);
  --font-head:   'Montserrat', sans-serif;
  --font-body:   'Open Sans', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--black);
  line-height: 1.7;
  padding-top: 68px; /* offset for fixed nav */
}
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ── Layout ──────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 64px 0; }
.page-wrap  { min-height: calc(100vh - 68px); }

/* ── Page header banner ─────────────────────────────────── */
.page-header {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
  padding: 48px 0;
  text-align: center;
}
.page-header h1 {
  font-size: clamp(26px, 4vw, 42px);
  color: var(--white);
  margin-bottom: 6px;
}
.page-header p { color: rgba(255,255,255,.65); font-size: 15px; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.4px;
  padding: 12px 28px;
  border-radius: 8px;
  cursor: pointer;
  transition: all .22s ease;
  border: 2px solid transparent;
  text-align: center;
  line-height: 1;
}
.btn-primary { background: var(--gold); color: var(--black); }
.btn-primary:hover { background: var(--gold-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(200,169,81,.4); }
.btn-green   { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--green-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; border-color: var(--green); color: var(--green); }
.btn-outline:hover { background: var(--green); color: var(--white); }
.btn-outline-w { background: transparent; border-color: rgba(255,255,255,.6); color: rgba(255,255,255,.9); }
.btn-outline-w:hover { background: var(--white); color: var(--green); }
.btn-danger  { background: #dc3545; color: var(--white); border-color: #dc3545; }
.btn-danger:hover { background: #b02a37; }
.btn-sm { padding: 8px 16px; font-size: 12px; }
.btn-lg { padding: 15px 36px; font-size: 16px; }
.btn-block { display: block; width: 100%; }
button.btn { border: 2px solid transparent; }

/* ── NAV ─────────────────────────────────────────────────── */
nav.main-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(18,18,18,.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(200,169,81,.15);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.nav-logo { text-decoration: none; }
.nav-logo-text {
  font-family: var(--font-head);
  font-size: 22px; font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
}
.nav-logo-text span { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-family: var(--font-head);
  font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,.72);
  letter-spacing: 0.3px;
  transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.cart-link {
  position: relative;
  color: rgba(255,255,255,.8);
  font-size: 20px;
  text-decoration: none;
  padding: 4px;
  transition: color .2s;
}
.cart-link:hover { color: var(--gold); }
.cart-badge {
  position: absolute; top: -6px; right: -6px;
  background: var(--gold); color: var(--black);
  font-family: var(--font-head);
  font-size: 10px; font-weight: 800;
  min-width: 18px; height: 18px;
  border-radius: 9px;
  display: none; align-items: center; justify-content: center;
  padding: 0 4px;
}
.cart-badge.visible { display: flex; }

.nav-auth-btn {
  padding: 9px 20px !important;
  font-size: 13px !important;
}
.nav-logout-btn {
  display: none;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.7);
  font-family: var(--font-head);
  font-size: 12px; font-weight: 600;
  padding: 8px 14px; border-radius: 7px;
  cursor: pointer;
  transition: all .2s;
}
.nav-logout-btn:hover { background: var(--gold); color: var(--black); border-color: var(--gold); }

/* ── Forms ───────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-family: var(--font-head);
  font-size: 11px; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase;
  color: #555; margin-bottom: 7px;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--black);
  background: var(--white);
  transition: border-color .2s;
  outline: none;
}
.form-control:focus { border-color: var(--green); }
.form-control::placeholder { color: #aaa; }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-hint  { font-size: 12px; color: #888; margin-top: 5px; }
.form-error { font-size: 13px; color: #dc3545; margin-top: 5px; font-weight: 600; }

/* ── Product Grid & Cards ────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all .28s ease;
  cursor: pointer;
  display: flex; flex-direction: column;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}
.product-img { height: 200px; overflow: hidden; background: #f0ece4; flex-shrink: 0; }
.product-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.product-card:hover .product-img img { transform: scale(1.07); }
.product-info { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.product-cat {
  font-family: var(--font-head);
  font-size: 10px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 5px;
}
.product-name {
  font-family: var(--font-head);
  font-size: 15px; font-weight: 700;
  color: var(--black); margin-bottom: 6px;
  line-height: 1.3;
}
.product-desc {
  font-size: 13px; color: var(--text-muted);
  line-height: 1.5; flex: 1;
}
.product-weight { font-size: 12px; color: #999; margin-top: 8px; }
.product-price {
  font-family: var(--font-head);
  font-size: 22px; font-weight: 800;
  color: var(--green); margin-top: 12px;
  display: flex; align-items: baseline; gap: 4px;
}
.product-price .currency { font-size: 14px; font-weight: 600; }
.product-price small { font-size: 12px; font-weight: 400; color: #999; }
.product-actions { margin-top: 14px; display: flex; gap: 8px; }

/* ── Category Tabs ───────────────────────────────────────── */
.category-tabs {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: 40px;
}
.tab-btn {
  font-family: var(--font-head);
  font-size: 13px; font-weight: 600;
  padding: 9px 20px; border-radius: 100px;
  border: 2px solid var(--border);
  cursor: pointer; transition: all .2s;
  background: var(--white); color: #666;
}
.tab-btn:hover { border-color: var(--green); color: var(--green); }
.tab-btn.active { background: var(--green); color: var(--white); border-color: var(--green); }

/* ── Toast Notifications ─────────────────────────────────── */
.toast-container {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;
}
.toast {
  background: var(--black); color: var(--white);
  padding: 13px 18px; border-radius: 10px;
  font-size: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,.35);
  display: flex; align-items: center; gap: 10px;
  animation: toastIn .3s ease;
  max-width: 320px; min-width: 220px;
  pointer-events: auto;
  transition: opacity .3s;
}
.toast.success { border-left: 4px solid var(--gold); }
.toast.error   { border-left: 4px solid #dc3545; }
.toast-icon { font-size: 16px; flex-shrink: 0; }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Spinner / Loading ───────────────────────────────────── */
.spinner {
  display: inline-block; width: 36px; height: 36px;
  border: 3px solid rgba(15,61,46,.15);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.spinner-sm { width: 20px; height: 20px; border-width: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-center {
  display: flex; justify-content: center; align-items: center; padding: 80px 0;
}

/* ── Empty State ─────────────────────────────────────────── */
.empty-state { text-align: center; padding: 80px 24px; }
.empty-state .icon { font-size: 64px; margin-bottom: 20px; }
.empty-state h3 { font-size: 22px; color: #333; margin-bottom: 10px; }
.empty-state p  { color: #888; margin-bottom: 24px; font-size: 15px; }

/* ── Cards / Panels ──────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}
.card-title {
  font-family: var(--font-head);
  font-size: 18px; font-weight: 700;
  color: var(--black); margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
}

/* ── Tags / Badges ───────────────────────────────────────── */
.badge {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 100px;
  text-transform: uppercase; letter-spacing: 1px;
}
.badge-gold   { background: rgba(200,169,81,.15); color: #8a6f22; }
.badge-green  { background: rgba(15,61,46,.1);    color: var(--green); }
.badge-pending   { background: #fff3cd; color: #856404; }
.badge-confirmed { background: #d1e7dd; color: #155724; }
.badge-shipped   { background: #cfe2ff; color: #084298; }
.badge-delivered { background: #d1e7dd; color: #155724; }

/* ── Search box ─────────────────────────────────────────── */
.search-wrap {
  position: relative; max-width: 400px;
}
.search-wrap .form-control { padding-left: 40px; }
.search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: #aaa; font-size: 16px; pointer-events: none;
}

/* ── FOOTER ──────────────────────────────────────────────── */
footer.main-footer {
  background: var(--black);
  color: rgba(255,255,255,.6);
  padding: 56px 0 28px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.footer-brand { font-family: var(--font-head); font-size: 22px; font-weight: 800; color: var(--white); margin-bottom: 10px; }
.footer-brand span { color: var(--gold); }
.footer-tagline { font-size: 13px; line-height: 1.7; margin-bottom: 18px; }
.footer-social { display: flex; gap: 10px; flex-wrap: wrap; }
.social-tag {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.6);
  font-family: var(--font-head);
  font-size: 11px; font-weight: 600;
  padding: 6px 12px; border-radius: 7px;
  transition: all .2s; white-space: nowrap;
}
.social-tag:hover { background: var(--gold); color: var(--black); border-color: var(--gold); }
.footer-col h4 {
  font-family: var(--font-head);
  font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--white); margin-bottom: 14px;
}
.footer-col ul li { padding: 3px 0; font-size: 14px; }
.footer-col ul li a { color: rgba(255,255,255,.55); transition: color .2s; }
.footer-col ul li a:hover { color: var(--gold); }
.footer-col p { font-size: 14px; padding: 3px 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 22px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px;
}
.footer-bottom .brand-name { color: var(--gold); font-weight: 600; }

/* ── Quantity Input ──────────────────────────────────────── */
.qty-control {
  display: inline-flex; align-items: center; gap: 0;
  border: 2px solid var(--border); border-radius: 8px;
  overflow: hidden;
}
.qty-btn {
  background: var(--bg); border: none; cursor: pointer;
  width: 34px; height: 34px;
  font-size: 18px; font-weight: 700;
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
  flex-shrink: 0;
}
.qty-btn:hover { background: var(--green); color: var(--white); }
.qty-display {
  width: 44px; text-align: center;
  font-family: var(--font-head); font-weight: 700;
  font-size: 15px; color: var(--black);
  border: none; outline: none;
  background: var(--white); border-left: 2px solid var(--border); border-right: 2px solid var(--border);
  -moz-appearance: textfield;
}
.qty-display::-webkit-outer-spin-button,
.qty-display::-webkit-inner-spin-button { -webkit-appearance: none; }

/* ── Divider ─────────────────────────────────────────────── */
.divider {
  border: none; border-top: 2px solid var(--border);
  margin: 20px 0;
}

/* ── Alert ───────────────────────────────────────────────── */
.alert {
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 14px; margin-bottom: 16px;
  display: flex; align-items: flex-start; gap: 10px;
}
.alert-error   { background: #fde8e8; color: #7b1c1c; border: 1px solid #f5c6c6; }
.alert-success { background: #e6f4ea; color: #1a5c2c; border: 1px solid #b7dfbf; }
.alert-info    { background: #e8f0fd; color: #1a3a6c; border: 1px solid #b9cff5; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  body { padding-top: 60px; }
  .nav-inner { height: 60px; }
  .nav-links  { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .products-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .product-img { height: 160px; }
}
@media (max-width: 400px) {
  .products-grid { grid-template-columns: 1fr; }
}
