/* Clinton Garden Group — Premium, depth-rich design system */

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

:root {
  /* Primary: vibrant indigo with depth */
  --cgg-primary: #6366f1;
  --cgg-primary-dark: #4f46e5;
  --cgg-primary-light: #818cf8;
  --cgg-primary-glow: rgba(99, 102, 241, 0.35);
  /* Surfaces with subtle warmth */
  --cgg-bg: #f5f3ff;
  --cgg-bg-mesh: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.12), transparent),
                 radial-gradient(ellipse 60% 40% at 100% 50%, rgba(139, 92, 246, 0.08), transparent),
                 linear-gradient(180deg, #fafaff 0%, #f5f3ff 50%, #ede9fe 100%);
  --cgg-surface: #ffffff;
  --cgg-surface-alt: #f5f3ff;
  --cgg-surface-elevated: #ffffff;
  /* Text */
  --cgg-text: #1e1b4b;
  --cgg-text-muted: #5b5569;
  --cgg-text-light: #78716c;
  /* Status */
  --cgg-success: #16a34a;
  --cgg-success-bg: #dcfce7;
  --cgg-pending: #d97706;
  --cgg-pending-bg: #fef3c7;
  --cgg-alert: #dc2626;
  --cgg-alert-bg: #fee2e2;
  --cgg-info: #2563eb;
  /* UI: deeper shadows and radius */
  --cgg-radius: 16px;
  --cgg-radius-sm: 10px;
  --cgg-radius-lg: 20px;
  --cgg-shadow: 0 1px 2px rgba(30, 27, 75, 0.04), 0 4px 12px rgba(30, 27, 75, 0.06);
  --cgg-shadow-md: 0 4px 6px -1px rgba(30, 27, 75, 0.06), 0 10px 24px -4px rgba(30, 27, 75, 0.1);
  --cgg-shadow-lg: 0 20px 40px -12px rgba(30, 27, 75, 0.15), 0 8px 16px -8px rgba(99, 102, 241, 0.2);
  --cgg-shadow-glow: 0 0 0 1px rgba(99, 102, 241, 0.08), 0 8px 24px -4px rgba(99, 102, 241, 0.2);
  /* Tap targets */
  --cgg-tap-min: 44px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Parallax hero: richer gradient and depth */
.parallax-hero { position: relative; }
.parallax-hero-bg {
  background: var(--cgg-bg-mesh);
  background-attachment: fixed;
  background-size: cover;
}
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background: var(--cgg-bg);
  background-image: var(--cgg-bg-mesh);
  color: var(--cgg-text);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  padding-bottom: calc(var(--cgg-tap-min) + 1rem);
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 1024px) {
  body { padding-bottom: 0; }
}
@media (max-width: 1023px) {
  body { padding-bottom: 5rem; }
}

/* Site header: soft elevation */
.cgg-site-header {
  box-shadow: 0 1px 0 rgba(30, 27, 75, 0.06), 0 8px 24px -8px rgba(30, 27, 75, 0.08);
}

/* ----- Header (mobile-first) ----- */
.app-header {
  background: var(--cgg-surface);
  box-shadow: var(--cgg-shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}
.app-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}
.app-header .logo {
  height: 36px;
  width: auto;
  flex-shrink: 0;
}
.app-header .search-wrap {
  flex: 1;
  min-width: 0;
}
.app-header .search-wrap .form-control {
  border-radius: var(--cgg-radius-sm);
  border: 1px solid #e2e8f0;
  padding: 0.5rem 0.75rem;
  font-size: 0.9375rem;
}
.app-header .search-wrap .form-control:focus {
  border-color: var(--cgg-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.app-header .cart-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--cgg-tap-min);
  height: var(--cgg-tap-min);
  border-radius: var(--cgg-radius-sm);
  background: var(--cgg-surface-alt);
  color: var(--cgg-text);
  text-decoration: none;
  position: relative;
  flex-shrink: 0;
}
.app-header .cart-btn:hover { background: #e2e8f0; color: var(--cgg-text); }
.app-header .cart-btn .badge {
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 0.7rem;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.app-header .desktop-nav { display: none; }
@media (min-width: 768px) {
  .app-header .header-inner { padding: 1rem 1.5rem; }
  .app-header .logo { height: 40px; }
  .app-header .search-wrap { max-width: 280px; }
  .app-header .desktop-nav { display: flex; align-items: center; gap: 0.5rem; }
  .app-header .desktop-nav .nav-link {
    padding: 0.5rem 0.75rem;
    border-radius: var(--cgg-radius-sm);
    color: var(--cgg-text-muted);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
  }
  .app-header .desktop-nav .nav-link:hover,
  .app-header .desktop-nav .nav-link.active { color: var(--cgg-primary); background: var(--cgg-surface-alt); }
}

/* ----- Bottom navigation (mobile) ----- */
.app-bottom-nav {
  display: flex;
  align-items: center;
  justify-content: space-around;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--cgg-tap-min);
  background: var(--cgg-surface);
  box-shadow: 0 -2px 10px rgba(0,0,0,.06);
  z-index: 99;
  padding: 0 0.5rem;
}
.app-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0.5rem;
  min-width: 56px;
  min-height: var(--cgg-tap-min);
  color: var(--cgg-text-muted);
  text-decoration: none;
  font-size: 0.6875rem;
  font-weight: 500;
  border-radius: var(--cgg-radius-sm);
  transition: color .15s, background .15s;
}
.app-bottom-nav a:hover { color: var(--cgg-primary); background: var(--cgg-surface-alt); }
.app-bottom-nav a.active { color: var(--cgg-primary); }
.app-bottom-nav a .bi { font-size: 1.25rem; }
@media (min-width: 768px) {
  .app-bottom-nav { display: none; }
}

/* ----- Main content ----- */
.app-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}
@media (min-width: 768px) {
  .app-main { padding: 1.5rem 2rem; }
}

/* ----- Page title ----- */
.page-title {
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--cgg-text);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
@media (min-width: 768px) {
  .page-title { font-size: 1.875rem; margin-bottom: 1.25rem; }
}

/* ----- Cards: elevated with depth ----- */
.cgg-card {
  background: var(--cgg-surface);
  border-radius: var(--cgg-radius);
  box-shadow: var(--cgg-shadow);
  border: 1px solid rgba(30, 27, 75, 0.06);
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.2s ease, border-color 0.2s ease;
}
.cgg-card:hover {
  box-shadow: var(--cgg-shadow-md);
  border-color: rgba(99, 102, 241, 0.12);
}
.cgg-card .card-body { padding: 1rem; }
@media (min-width: 768px) {
  .cgg-card .card-body { padding: 1.25rem 1.5rem; }
}

/* ----- Banner card ----- */
.banner-hero {
  background: linear-gradient(135deg, var(--cgg-primary) 0%, #7c3aed 50%, #6d28d9 100%);
  color: #fff;
  border-radius: var(--cgg-radius);
  padding: 1.5rem 1.25rem;
  margin-bottom: 1.5rem;
  text-align: center;
  box-shadow: var(--cgg-shadow-glow);
}
.banner-hero h1 {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 0.25rem 0;
  letter-spacing: -0.02em;
}
.banner-hero p {
  font-size: 0.9375rem;
  opacity: .95;
  margin: 0;
}
@media (min-width: 768px) {
  .banner-hero { padding: 2rem; margin-bottom: 2rem; }
  .banner-hero h1 { font-size: 1.5rem; }
  .banner-hero p { font-size: 1rem; }
}

/* ----- Product grid (2 cols mobile) ----- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (min-width: 576px) {
  .product-grid { gap: 1rem; }
}
@media (min-width: 768px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}
@media (min-width: 992px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Home page product grid: elevated cards with hover lift */
#products article {
  border-radius: var(--cgg-radius);
  box-shadow: var(--cgg-shadow);
  border: 1px solid rgba(30, 27, 75, 0.06);
  transition: box-shadow 0.3s ease, transform 0.25s ease, border-color 0.2s ease;
}
#products article:hover {
  box-shadow: var(--cgg-shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.15);
}
#products article .aspect-square {
  border-radius: var(--cgg-radius-sm);
  overflow: hidden;
  background: linear-gradient(145deg, #f5f3ff 0%, #ede9fe 100%);
}
#products article .aspect-square img {
  transition: transform 0.4s ease;
}
#products article:hover .aspect-square img {
  transform: scale(1.06);
}
#products article .btn-add,
#products article a[href*="product.php"]:last-of-type {
  border-radius: var(--cgg-radius-sm);
  font-weight: 600;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}
#products article .btn-add:hover,
#products article a[href*="product.php"]:last-of-type:hover {
  box-shadow: 0 4px 14px var(--cgg-primary-glow);
  transform: translateY(-1px);
}

.product-card {
  background: var(--cgg-surface);
  border-radius: var(--cgg-radius);
  box-shadow: var(--cgg-shadow);
  border: 1px solid rgba(30, 27, 75, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease, transform 0.25s ease;
}
.product-card:hover {
  box-shadow: var(--cgg-shadow-lg);
  transform: translateY(-4px);
}
.product-card .product-img-wrap {
  aspect-ratio: 1;
  background: linear-gradient(145deg, var(--cgg-surface-alt) 0%, #ede9fe 100%);
  overflow: hidden;
}
.product-card .product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-img-wrap img {
  transform: scale(1.05);
}
.product-card .product-img-wrap .no-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cgg-text-light);
  font-size: 0.875rem;
}
.product-card .product-info {
  padding: 0.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card .product-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--cgg-text);
  margin: 0 0 0.25rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}
.product-card .product-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--cgg-success);
  margin: 0 0 0.5rem 0;
}
.product-card .btn-add {
  margin-top: auto;
  min-height: 40px;
  border-radius: var(--cgg-radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}
.product-card .btn-add:hover {
  box-shadow: 0 4px 14px var(--cgg-primary-glow);
  transform: translateY(-1px);
}

/* ----- Product page: hide site bottom nav on mobile (product.css handles layout) ----- */
@media (max-width: 767px) {
  body.product-detail-page nav[aria-label="Main"] {
    display: none;
  }
}

/* ----- Buttons ----- */
.btn-primary {
  background: linear-gradient(180deg, var(--cgg-primary-light) 0%, var(--cgg-primary) 50%, var(--cgg-primary-dark) 100%);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--cgg-radius-sm);
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  min-height: var(--cgg-tap-min);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35), inset 0 1px 0 rgba(255,255,255,0.2);
  transition: box-shadow 0.2s ease, transform 0.15s ease, filter 0.2s ease;
}
.btn-primary:hover {
  box-shadow: 0 6px 20px var(--cgg-primary-glow), inset 0 1px 0 rgba(255,255,255,0.25);
  transform: translateY(-1px);
  filter: brightness(1.05);
}
.btn-outline-primary {
  border-radius: var(--cgg-radius-sm);
  font-weight: 600;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}
.btn-outline-primary:hover {
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25);
  transform: translateY(-1px);
}
.btn-lg {
  border-radius: var(--cgg-radius-sm);
  min-height: 48px;
  font-weight: 600;
}

/* ----- Form controls ----- */
.form-control, .form-select {
  border-radius: var(--cgg-radius-sm);
  border: 1px solid rgba(30, 27, 75, 0.15);
  padding: 0.625rem 0.875rem;
  font-size: 1rem;
  min-height: var(--cgg-tap-min);
  background: var(--cgg-surface);
  box-shadow: 0 1px 2px rgba(30, 27, 75, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-control:focus, .form-select:focus {
  border-color: var(--cgg-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2), 0 1px 2px rgba(30, 27, 75, 0.04);
  outline: none;
}
.form-label {
  font-weight: 600;
  color: var(--cgg-text);
  margin-bottom: 0.375rem;
  font-size: 0.9375rem;
}

/* ----- Status badges ----- */
.badge-status {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(30, 27, 75, 0.06);
  border: 1px solid rgba(30, 27, 75, 0.06);
}
.badge-status.pending { background: var(--cgg-pending-bg); color: #b45309; }
.badge-status.received,
.badge-status.delivered,
.badge-status.success { background: var(--cgg-success-bg); color: #15803d; }
.badge-status.processing,
.badge-status.confirmed,
.badge-status.on_transit { background: #dbeafe; color: var(--cgg-info); }
.badge-status.rejected,
.badge-status.alert { background: var(--cgg-alert-bg); color: #b91c1c; }

/* ----- Order summary / summary card ----- */
.summary-card {
  background: linear-gradient(145deg, var(--cgg-surface-alt) 0%, #ede9fe 100%);
  border-radius: var(--cgg-radius);
  padding: 1rem;
  margin-top: 1rem;
  border: 1px solid rgba(99, 102, 241, 0.1);
  box-shadow: var(--cgg-shadow);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 0.9375rem;
}
.summary-row.total {
  font-weight: 700;
  font-size: 1.125rem;
  border-top: 1px solid rgba(30, 27, 75, 0.1);
  margin-top: 0.5rem;
  padding-top: 0.75rem;
}

/* ----- Bank transfer instructions ----- */
.bank-instructions {
  background: linear-gradient(145deg, var(--cgg-surface-alt) 0%, #f5f3ff 100%);
  border-radius: var(--cgg-radius);
  padding: 1.25rem;
  margin: 1rem 0;
  font-size: 0.9375rem;
  border: 1px solid rgba(99, 102, 241, 0.12);
  box-shadow: 0 1px 3px rgba(30, 27, 75, 0.05);
}
.bank-instructions h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: var(--cgg-text);
}

/* ----- Empty state ----- */
.empty-state {
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--cgg-text-muted);
  background: linear-gradient(145deg, var(--cgg-surface) 0%, var(--cgg-surface-alt) 100%);
  border-radius: var(--cgg-radius);
  border: 1px solid rgba(30, 27, 75, 0.06);
  box-shadow: var(--cgg-shadow);
}
.empty-state .btn { margin-top: 1rem; }

/* ----- Footer (desktop) ----- */
.app-footer {
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--cgg-text-muted);
  border-top: 1px solid #e2e8f0;
  margin-top: 2rem;
}
@media (min-width: 768px) {
  .app-footer { padding: 2rem; }
}

/* ----- Success / confirmation ----- */
.confirmation-card {
  text-align: center;
  padding: 2rem 1.5rem;
  max-width: 400px;
  margin: 0 auto;
  box-shadow: var(--cgg-shadow-md);
  border: 1px solid rgba(30, 27, 75, 0.06);
}
.confirmation-card .icon-success {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--cgg-success-bg) 0%, #bbf7d0 100%);
  color: var(--cgg-success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.25);
  border: 2px solid rgba(22, 163, 74, 0.2);
}

/* ----- Loading spinner (utility) ----- */
.spinner-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* ----- Hero blobs and hero UI ----- */
.parallax-hero .hero-blob {
  opacity: 0.45;
  filter: blur(64px);
}
.parallax-hero .transform-gpu {
  will-change: transform;
}
.parallax-hero h1 {
  font-weight: 800;
  letter-spacing: -0.03em;
}
.parallax-hero form .shadow-lg {
  box-shadow: var(--cgg-shadow-md), 0 0 0 1px rgba(30, 27, 75, 0.06);
}
.parallax-hero form button[type="submit"] {
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}
.parallax-hero form button[type="submit"]:hover {
  box-shadow: 0 6px 20px var(--cgg-primary-glow);
  transform: translateY(-1px);
}
.parallax-hero a.rounded-md.bg-indigo-600 {
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}
.parallax-hero a.rounded-md.bg-indigo-600:hover {
  box-shadow: 0 6px 20px var(--cgg-primary-glow);
  transform: translateY(-1px);
}

/* ----- Footer: CTA banner + purple gradient + scroll-to-top ----- */
.cgg-footer-cta {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 40%, #15803d 100%);
  border-radius: 20px;
  padding: 1.5rem 1.25rem;
  margin: 0 1rem -2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 10px 40px rgba(0,0,0,.15), 0 0 0 1px rgba(255,255,255,0.1) inset;
  position: relative;
  z-index: 2;
}
.cgg-footer-cta-text {
  color: #fff;
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.cgg-footer-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #2d2d2d 0%, #1a1a1a 100%);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 9999px;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  transition: background .2s, transform .15s, box-shadow .2s;
}
.cgg-footer-cta-btn:hover { background: #333; color: #fff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.3); }

.cgg-footer-wrap {
  background: linear-gradient(180deg, #5b21b6 0%, #4c1d95 50%, #3b0764 100%);
  width: 100%;
  padding: 3rem 1rem 2rem;
  margin-top: 0;
  color: rgba(255,255,255,.9);
}
@media (max-width: 1023px) {
  .cgg-footer-wrap {
    padding-bottom: 8rem;
  }
}
.cgg-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.cgg-footer-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 1.5rem;
}
@media (min-width: 768px) {
  .cgg-footer-main { grid-template-columns: 1fr auto; gap: 3rem; }
  .cgg-footer-cta { margin: 0 auto -2rem; max-width: 1200px; padding: 1.75rem 2rem; }
}
.cgg-footer-logo-box {
  display: inline-block;
  background: #fff;
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.cgg-footer-logo {
  display: block;
  width: 100px;
  height: auto;
  object-fit: contain;
}
.cgg-footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem 1.5rem;
  font-size: 0.9375rem;
}
.cgg-footer-cols a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  transition: color .15s;
}
.cgg-footer-cols a:hover { color: #fff; }
.cgg-footer-right .cgg-footer-tag { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: .05em; opacity: .9; margin-bottom: 0.25rem; }
.cgg-footer-right .cgg-footer-headline { font-size: 2.5rem; font-weight: 800; line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
@media (min-width: 480px) {
  .cgg-footer-right .cgg-footer-headline { font-size: 3rem; }
}
@media (min-width: 768px) {
  .cgg-footer-right .cgg-footer-headline { font-size: 3.5rem; }
}
.cgg-footer-divider {
  border: none;
  border-top: 2px dotted rgba(255,255,255,.35);
  margin: 1rem 0 1.25rem;
}
.cgg-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
}
.cgg-footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}
.cgg-footer-legal a {
  color: rgba(255,255,255,.75);
  text-decoration: none;
}
.cgg-footer-legal a:hover { color: #fff; }
.cgg-footer-social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
@media (max-width: 767px) {
  .cgg-footer-bottom {
    flex-direction: column;
    align-items: stretch;
  }
  .cgg-footer-social {
    justify-content: flex-end;
    margin-left: 0;
  }
}
.cgg-footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: background .2s, color .2s;
}
.cgg-footer-social a:hover { background: rgba(255,255,255,.3); color: #fff; }

/* Scroll-to-top + mobile social: one fixed container so they can join at bottom */
.cgg-fixed-bottom-actions {
  position: fixed;
  left: 1rem;
  bottom: 5.5rem;
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
}
.cgg-fixed-bottom-actions > * { pointer-events: auto; }

.cgg-scroll-top {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(91, 33, 182, .95);
  color: #fff;
  border: 2px solid rgba(255,255,255,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  transition: transform .2s, background .2s, opacity .25s;
  opacity: 0;
  pointer-events: none;
}
.cgg-scroll-top.visible { opacity: 1; pointer-events: auto; }
.cgg-scroll-top:hover { background: #6d28d9; transform: scale(1.05); }

/* Mobile: social icons fixed on the right; when at bottom they join the arrow (left) via JS body.cgg-at-bottom */
.cgg-fixed-social-mobile {
  display: none;
}
@media (max-width: 1023px) {
  .cgg-fixed-bottom-actions {
    right: 1rem;
    left: auto;
    justify-content: flex-end;
    transition: left .3s ease, right .3s ease, justify-content .3s ease;
  }
  .cgg-fixed-bottom-actions .cgg-scroll-top {
    order: 2;
  }
  .cgg-fixed-social-mobile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    order: 1;
  }
  .cgg-fixed-social-mobile a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(91, 33, 182, .95);
    color: #fff;
    border: 2px solid rgba(255,255,255,.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
    transition: background .2s, transform .15s;
  }
  .cgg-fixed-social-mobile a:hover {
    background: #6d28d9;
    color: #fff;
    transform: scale(1.08);
  }
  /* When scrolled to bottom: arrow joins social on the left as one group */
  body.cgg-at-bottom .cgg-fixed-bottom-actions {
    left: 1rem;
    right: auto;
    justify-content: flex-start;
  }
  body.cgg-at-bottom .cgg-fixed-bottom-actions .cgg-scroll-top {
    order: 1;
  }
  body.cgg-at-bottom .cgg-fixed-bottom-actions .cgg-fixed-social-mobile {
    order: 2;
  }
  .cgg-footer-bottom .cgg-footer-social {
    display: none;
  }
  .cgg-footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .cgg-fixed-bottom-actions {
    left: 1rem;
    right: auto;
    bottom: 1.5rem;
    justify-content: flex-start;
  }
  .cgg-fixed-social-mobile { display: none; }
}

/* Bottom nav (mobile): soft elevation */
.cgg-bottom-nav {
  box-shadow: 0 -4px 20px rgba(30, 27, 75, 0.08), 0 -1px 0 rgba(30, 27, 75, 0.05);
}
