:root {
  --bg: linear-gradient(135deg,#F5F8FF,#8EC5E8,#FFD4B5);
  --bg-elevated: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --accent: #0D6FBF;
  --accent-soft: #E0F2FF;
  --accent-strong: #3A8DD6;
  --border: #e2e8f0;
  --danger: #dc2626;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 14px 30px rgba(15,23,42,0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* Centered content wrapper */
.layout-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px 24px;
}

/* Header inner centered within full-width bar */
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}


/* Header */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid rgba(148,163,184,0.25);
  box-shadow: 0 8px 25px rgba(15,23,42,0.04);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg,#0D6FBF,#FFC38A);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.78rem;
  color: #ffffff;
}

.logo-text {
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: 0.98rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.9rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 4px 6px;
  border-radius: 999px;
}

.main-nav a:hover {
  color: var(--accent-strong);
  background: var(--accent-soft);
}

.cart-link {
  font-size: 0.9rem;
  text-decoration: none;
  color: #ffffff;
  background: var(--accent-strong);
  padding: 6px 12px;
  border-radius: 999px;
}

/* Generic buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-strong);
  color: #ffffff;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.9rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: #1e40af;
}

.btn-secondary {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.btn-secondary:hover {
  background: #bfdbfe;
}

/* Hero */
.hero-wrapper {
  margin-top: 20px;
  display: grid;
  grid-template-columns: minmax(0,1.2fr) minmax(0,1fr);
  gap: 24px;
  align-items: center;
}

.hero-card {
  background: linear-gradient(135deg,#ffffff,#F5F8FF,#FFE5CF);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  box-shadow: var(--shadow-soft);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  padding: 3px 9px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #15803d;
  margin-bottom: 8px;
}

.hero-title {
  font-size: 1.6rem;
  margin: 4px 0 6px;
}

.hero-sub {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0 0 12px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-side-card {
  background: linear-gradient(135deg,#0D6FBF,#8EC5E8,#FFC38A);
  border-radius: var(--radius-lg);
  padding: 18px;
  color: #e5e7eb;
  box-shadow: var(--shadow-soft);
}

.hero-side-card h2 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.hero-side-card p {
  margin: 0 0 10px;
  font-size: 0.86rem;
  color: #cbd5f5;
}

.hero-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-pill {
  font-size: 0.78rem;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(15,23,42,0.65);
  border: 1px solid rgba(148,163,184,0.4);
}

.hero-review-badge {
  text-decoration: none;        /* remove underline */
  transition: transform 0.18s ease, opacity 0.18s ease;
  display: inline-flex;
  align-items: center;
  opacity: 0.95;                /* subtle default */
}

/* Hover animation */
.hero-review-badge:hover {
  transform: translateY(-2px);  /* small lift */
  opacity: 1;
}

/* Slider */
.banner-slider {
  margin: 24px 0 26px;
}

.section-title {
  margin: 0 0 4px;
  font-size: 1.2rem;
}

.banner-subtitle {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0 0 10px;
}

.banner-slider-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg,#0A4A80,#3A8DD6,#FFC38A);
  box-shadow: var(--shadow-soft);
}

.banner-track {
  width: 100%;
}

.banner-slide {
  display: none;
}

.banner-slide.active {
  display: block;
}

.banner-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  background: linear-gradient(to top, rgba(15,23,42,0.9), transparent 55%);
  color: #e5e7eb;
}

.banner-overlay h3 {
  margin: 0 0 4px;
  font-size: 1.1rem;
}

.banner-overlay p {
  margin: 0 0 10px;
  font-size: 0.86rem;
}

.banner-dots {
  position: absolute;
  bottom: 10px;
  right: 14px;
  display: flex;
  gap: 6px;
}

.banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: rgba(148,163,184,0.7);
  cursor: pointer;
  padding: 0;
}

.banner-dot.active {
  width: 16px;
  background: #f97316;
}

/* Products grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
  margin-top: 10px;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(13, 111, 191, 0.26);
  border: 1px solid rgba(13, 111, 191, 0.25);
}

.product-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  padding: 12px;
  box-shadow: 0 10px 18px rgba(15,23,42,0.06);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
}

.product-card h3 {
  margin: 4px 0 0;
  font-size: 0.98rem;
}

.product-price {
  font-weight: 600;
  font-size: 0.9rem;
}

.product-card p {
  margin: 0 0 8px;
  font-size: 0.84rem;
  color: var(--muted);
}

/* Layout: image left, details right */
.product-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* Image column */
.product-images {
  flex: 0 0 45%;
  max-width: 45%;
}

/* Details column */
.product-details {
  flex: 1 1 45%;
  max-width: 45%;
}

/* Main product image sizing */
.product-main-image img {
  max-width: 100%;
  max-height: 450px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Thumbnails row */
.product-thumbnails {
  margin-top: 10px;
}

.product-thumbnails img.thumb-image {
  max-width: 80px;
  height: auto;
  display: inline-block;
  margin-right: 8px;
  cursor: pointer;
}

.seo-intro {
  padding: 24px 16px 32px;
}

.seo-intro-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.seo-intro h1 {
  font-size: 1.8rem;
  margin: 0 0 8px;
}

.seo-intro p {
  margin: 0 0 16px;
  color: #4b5563;
  font-size: 0.96rem;
}

.seo-intro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.seo-intro-card {
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  padding: 12px 14px;
  font-size: 0.9rem;
}

.seo-intro-card h2 {
  font-size: 1rem;
  margin: 0 0 6px;
}

@media (max-width: 900px) {
  .seo-intro-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Page sections (About, Contact, Disclaimer, etc.) */
.page-section {
  background: linear-gradient(135deg,#ffffff,#F5F8FF,#FFE5CF);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

/* Footer (legacy basic footer, now disabled – RGM footer used instead) */
/*
footer {
  background: #4A5570;
  color: #9ca3af;
  padding: 14px 0 18px;
  margin-top: 22px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  font-size: 0.86rem;
}

.footer-tagline {
  margin-top: 4px;
  color: #e5e7eb;
}
*/

/* Responsive tweaks */
@media (max-width: 900px) {
  .hero-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .main-nav {
    display: none; /* simple: hide nav on very small screens for now */
  }
  .header-inner {
    justify-content: space-between;
  }
  .cart-link {
    padding: 6px 10px;
  }
  .product-card img {
    height: 180px;
  }
}

/* Split section row for New Arrivals / Home Essentials */
.section-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 18px;
  margin-top: 22px;
}

.section-card {
  background: rgba(255,255,255,0.96);
  border-radius: var(--radius-lg);
  padding: 16px 14px 18px;
  box-shadow: var(--shadow-soft);
}

.section-card p {
  margin: 0 0 10px;
  font-size: 0.86rem;
  color: var(--muted);
}

.product-grid.compact-grid {
  grid-template-columns: repeat(auto-fill,minmax(180px,1fr));
}

/* Slightly softer overlay for sunrise look */
.banner-overlay {
  position: absolute;
  inset: 0;
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  background: linear-gradient(to top, rgba(10,74,128,0.88), rgba(10,74,128,0.25), transparent 60%);
  color: #f9fafb;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.account-links {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}

.account-links a {
  text-decoration: none;
  color: var(--muted);
  padding: 4px 8px;
  border-radius: 999px;
}

.account-links a:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.account-welcome {
  color: var(--muted);
}

/* Generic form helpers */
.form-group {
  margin-bottom: 10px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 3px;
  color: var(--muted);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 7px 9px;
  border-radius: 10px;
  border: 1px solid #cbd5f1;
  font-size: 0.9rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px;
}

.checkout-summary-card {
  background: rgba(255,255,255,0.96);
  border-radius: var(--radius-lg);
  padding: 14px 14px 16px;
  box-shadow: var(--shadow-soft);
  margin-top: 10px;
}

.checkout-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 6px 0;
  border-bottom: 1px solid #e5e7eb;
}

.checkout-summary-total {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-weight: 700;
  font-size: 0.95rem;
}

.coupon-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.coupon-row input {
  flex: 1;
}

/* ====== HEADER (RGM) ====== */

.rgm-header {
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  position: sticky;
  top: 0;
  z-index: 999;
  padding: 0.4rem 0;
}

.rgm-header-inner {
  max-width: 1200px;
  margin: auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */

.rgm-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 6px;
}

.rgm-logo-pill {
  background: linear-gradient(135deg, #6b46c1, #ed64a6);
  color: white;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.rgm-logo-text {
  color: #333;
  font-size: 1.1rem;
  font-weight: 500;
}

/* Desktop nav */

.rgm-nav {
  display: flex;
  gap: 1.5rem;
}

.rgm-nav a {
  text-decoration: none;
  color: #444;
  font-size: 0.95rem;
  transition: 0.2s;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

.rgm-nav a:hover {
  color: #6b46c1;
  border-color: #ed64a6;
}

/* Header actions */

.rgm-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.rgm-account a {
  margin-right: 0.75rem;
  color: #444;
  text-decoration: none;
}

.rgm-cart {
  position: relative;
  font-size: 1.2rem;
  text-decoration: none;
  color: #333;
}

.rgm-cart-count {
  position: absolute;
  top: -4px;
  right: -6px;
  background: #e53e3e;
  color: white;
  border-radius: 50%;
  padding: 0 5px;
  font-size: 0.7rem;
}

/* Mobile menu */

.rgm-menu-toggle {
  display: none;
  font-size: 1.6rem;
  background: transparent;
  border: none;
}

.rgm-mobile-nav {
  display: none;
  flex-direction: column;
  background: #fff;
  padding: 1rem;
  border-top: 1px solid #eee;
}

.rgm-mobile-nav a {
  padding: 0.6rem 0;
  text-decoration: none;
  font-size: 1rem;
  color: #444;
}

.rgm-mobile-nav.open {
  display: flex;
}

/* Responsive header */

@media (max-width: 768px) {
  .rgm-nav {
    display: none;
  }
  .rgm-menu-toggle {
    display: block;
  }
}

/* ====== FOOTER (RGM) ====== */

.rgm-footer {
  background: #0f172a;
  color: #e5e7eb;
  padding: 2.5rem 0 1.5rem;
  margin-top: 2rem;
  font-size: 0.9rem;
}

.rgm-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
}

.rgm-footer-col a {
  display: block;
  color: #cbd5f5;
  text-decoration: none;
  margin-bottom: 0.4rem;
  transition: color 0.2s ease;
}

.rgm-footer-col a:hover {
  color: #fbb6ce;
}

.rgm-footer-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #f9fafb;
}

.rgm-footer-text {
  color: #9ca3af;
  line-height: 1.5;
}

/* footer logo reuse */

.rgm-footer-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0.6rem;
}

.footer-review-snippet {
  margin-top: 14px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  color: #f9fafb;
  font-size: 0.9rem;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  max-width: 260px;
}

.footer-review-link {
  color: #fbb6ce;
  text-decoration: none;
  font-size: 0.85rem;
  transition: opacity 0.2s ease;
}

.footer-review-link:hover {
  opacity: 0.7;
}

/* Newsletter */

.rgm-footer-newsletter {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.rgm-footer-newsletter input[type="email"] {
  flex: 1;
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  border: 1px solid #1f2937;
  background: #020617;
  color: #e5e7eb;
  font-size: 0.85rem;
}

.rgm-footer-newsletter button {
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  background: linear-gradient(135deg, #6b46c1, #ed64a6);
  color: #fff;
}

/* Bottom bar */

.rgm-footer-bottom {
  max-width: 1200px;
  margin: 1.5rem auto 0;
  padding: 0 1rem;
  border-top: 1px solid #1f2937;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.75rem;
  color: #6b7280;
  flex-wrap: wrap; /* allow ©, links, and socials to wrap nicely */
}

.rgm-footer-bottom a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.85rem;
}

.rgm-footer-bottom a:hover {
  color: #fbb6ce;
}

.rgm-footer-bottom-links {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.rgm-footer-sep {
  opacity: 0.6;
}

.footer-review-snippet-b {
  margin-top: 12px;
  background: rgba(255,255,255,0.10);
  padding: 12px 16px;
  border-radius: 14px;
  max-width: 240px;
  color: #f9fafb;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.footer-review-snippet-b .rating-line {
  font-size: 1rem;
  font-weight: 600;
}

.footer-review-snippet-b .rating-detail {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-bottom: 6px;
}

.footer-review-snippet-b .review-btn {
  color: #fbb6ce;
  text-decoration: none;
  font-size: 0.85rem;
  transition: opacity 0.2s ease;
}

.footer-review-snippet-b .review-btn:hover {
  opacity: 0.7;
}

/* Responsive footer */

@media (max-width: 900px) {
  .rgm-footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .rgm-footer-inner {
    grid-template-columns: 1fr;
  }

  .rgm-footer-newsletter {
    flex-direction: column;
  }

  .rgm-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Floating mobile reviews button */
.mobile-reviews-fab {
  position: fixed;
  right: 16px;
  bottom: 18px;
  z-index: 9999;
  display: none; /* shown only on small screens via media query */
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6b46c1, #ed64a6);
  color: #fff;
  text-decoration: none;
  font-size: 0.82rem;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.35);
  display: flex;
  align-items: center;
  gap: 6px;
}

.mobile-reviews-fab-stars {
  font-weight: 600;
}

.mobile-reviews-fab-text {
  opacity: 0.9;
}

/* Only show on mobile */
@media (max-width: 768px) {
  .mobile-reviews-fab {
    display: flex;
  }
}

/* ===== Product page social share bar ===== */
.product-share-bar {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.85rem;
}

.product-share-bar span {
  color: #6b7280;
  margin-right: 4px;
}

.product-share-bar a {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  font-size: 0.8rem;
  text-decoration: none;
  color: #374151;
  background: #f9fafb;
}

.product-share-bar a:hover {
  background: #e5e7eb;
}

/* ===== Footer social icons / links ===== */
.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

.footer-social span {
  color: #9ca3af;
}

.footer-social a {
  color: #cbd5f5;
  text-decoration: none;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.footer-social a:hover {
  background: rgba(248, 250, 252, 0.06);
  color: #fbb6ce;
  border-color: rgba(148, 163, 184, 0.5);
}

/* Optional icon-style classes (if you ever swap to icon markup) */
.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #e5e7eb;
}

.footer-social-link:hover .footer-social-text {
  text-decoration: underline;
}

.footer-social-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

/* Brand colors for icons */
.footer-social-icon-fb {
  background: #1877f2;
}

.footer-social-icon-ig {
  background: radial-gradient(circle at 30% 30%, #fdf497 0, #fd5949 35%, #d6249f 70%, #285AEB 100%);
  font-size: 0.7rem;
}

.footer-social-icon-x {
  background: #020617;
  font-size: 0.7rem;
}

.footer-social-icon-pin {
  background: #e60023;
}

/* Stack footer social nicely on narrow screens */
@media (max-width: 600px) {
  .footer-social {
    margin-top: 0.25rem;
  }
}
