/**
 * Godly Gifts — Premium storefront redesign (modern theme overlay)
 * Load after existing bundles. Reversible: remove link from include-css.php
 */
:root {
  --gg-saffron: #e8751a;
  --gg-saffron-dark: #c9620f;
  --gg-maroon: #5c1a1a;
  --gg-maroon-soft: #7a2e2e;
  --gg-gold: #c9a227;
  --gg-cream: #faf7f2;
  --gg-cream-dark: #f3ede3;
  --gg-text: #2b2118;
  --gg-text-muted: #6b5e52;
  --gg-white: #ffffff;
  --gg-radius: 12px;
  --gg-radius-sm: 8px;
  --gg-shadow: 0 4px 24px rgba(44, 33, 24, 0.08);
  --gg-shadow-sm: 0 2px 12px rgba(44, 33, 24, 0.06);
  --gg-font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body.gg-redesign {
  font-family: var(--gg-font);
  color: var(--gg-text);
  background: var(--gg-cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.gg-redesign main {
  background: var(--gg-cream);
}

/* ── Announcement bar ── */
.gg-announcement-bar {
  background: linear-gradient(90deg, var(--gg-maroon) 0%, var(--gg-maroon-soft) 100%);
  color: var(--gg-white);
  text-align: center;
  font-size: 0.8125rem;
  line-height: 1.4;
  padding: 0.5rem 1rem;
}

.gg-announcement-bar p {
  margin: 0;
}

.gg-sitewide-notice {
  background: linear-gradient(90deg, #5c1a1a 0%, #7a1f1f 100%);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.gg-sitewide-notice-warning {
  background: linear-gradient(90deg, #7a2f00 0%, #a34007 100%);
}

.gg-sitewide-notice-info {
  background: linear-gradient(90deg, #4a1935 0%, #5f2445 100%);
}

.gg-sitewide-notice-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0;
  flex-wrap: wrap;
}

.gg-sitewide-notice-copy {
  display: flex;
  gap: 0.45rem;
  align-items: baseline;
  flex-wrap: wrap;
  font-size: 0.86rem;
}

.gg-sitewide-notice-copy strong {
  color: #ffe2b8;
}

.gg-sitewide-notice-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.gg-sitewide-notice-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--gg-saffron);
  border: 1px solid var(--gg-saffron-dark);
  color: #fff !important;
  text-decoration: none !important;
}

.gg-sitewide-notice-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: transparent;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gg-sitewide-notice-close ion-icon {
  font-size: 1.05rem;
}

/* ── Header ── */
body.gg-redesign .top-nav {
  background: var(--gg-white) !important;
  border-bottom: 1px solid var(--gg-cream-dark);
}

body.gg-redesign .search-nav.bg-nav,
body.gg-redesign header.search-nav .nav-outer.bg-nav {
  background: var(--gg-white) !important;
  box-shadow: var(--gg-shadow-sm);
}

body.gg-redesign .nav-category a span,
body.gg-redesign .nav-category a {
  color: var(--gg-text) !important;
  font-weight: 600;
  font-size: 0.9375rem;
}

body.gg-redesign .nav-category.active-nav a span,
body.gg-redesign .nav-category:hover a span {
  color: var(--gg-saffron) !important;
}

body.gg-redesign .company-logo img,
body.gg-redesign .footer-logo img {
  max-height: 48px;
  width: auto;
  object-fit: contain;
}

body.gg-redesign .promo-nav {
  background: var(--gg-cream-dark);
  color: var(--gg-maroon);
}

body.gg-redesign .search-nav.content-wrapper {
  background: var(--gg-white);
  border-bottom: 1px solid var(--gg-cream-dark);
}

body.gg-redesign .count-box.cart-count,
body.gg-redesign .favorite_count {
  background: var(--gg-saffron) !important;
  font-size: 0.65rem;
  min-width: 1.1rem;
}

/* ── Buttons / CTAs ── */
body.gg-redesign .btn-primary,
body.gg-redesign .viewmorebtn,
body.gg-redesign .add-in-cart-btn,
body.gg-redesign #add_cart {
  background: var(--gg-saffron) !important;
  border-color: var(--gg-saffron) !important;
  color: var(--gg-white) !important;
  border-radius: var(--gg-radius-sm);
  font-weight: 600;
  min-height: 44px;
}

body.gg-redesign .btn-primary:hover,
body.gg-redesign .viewmorebtn:hover,
body.gg-redesign .add-in-cart-btn:hover {
  background: var(--gg-saffron-dark) !important;
  border-color: var(--gg-saffron-dark) !important;
}

body.gg-redesign .section-title {
  color: var(--gg-maroon);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  letter-spacing: -0.02em;
}

/* ── Hero ── */
.gg-hero-section {
  background: linear-gradient(135deg, var(--gg-cream) 0%, var(--gg-cream-dark) 55%, #fff8ee 100%);
  border-bottom: 1px solid var(--gg-cream-dark);
  padding: 2rem 0 2.5rem;
}

.gg-hero-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .gg-hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    padding: 0 1.5rem;
  }
}

.gg-hero-badge {
  display: inline-block;
  background: rgba(201, 162, 39, 0.15);
  color: var(--gg-maroon);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.gg-hero-title {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 800;
  color: var(--gg-maroon);
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

.gg-hero-subtitle {
  color: var(--gg-text-muted);
  font-size: 1rem;
  line-height: 1.55;
  margin: 0 0 1.25rem;
  max-width: 32rem;
}

.gg-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.gg-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gg-saffron);
  color: var(--gg-white) !important;
  text-decoration: none;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: var(--gg-radius-sm);
  min-height: 48px;
  border: none;
  transition: background 0.2s ease;
}

.gg-btn-primary:hover {
  background: var(--gg-saffron-dark);
  color: var(--gg-white) !important;
}

.gg-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--gg-maroon) !important;
  text-decoration: none;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: var(--gg-radius-sm);
  min-height: 48px;
  border: 2px solid var(--gg-maroon);
  transition: background 0.2s ease, color 0.2s ease;
}

.gg-btn-outline:hover {
  background: var(--gg-maroon);
  color: var(--gg-white) !important;
}

.gg-hero-visual {
  border-radius: var(--gg-radius);
  overflow: hidden;
  box-shadow: var(--gg-shadow);
  background: var(--gg-white);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.gg-hero-visual img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.gg-hero-banner-wrap {
  border-radius: var(--gg-radius);
  overflow: hidden;
  box-shadow: var(--gg-shadow);
  background: var(--gg-white);
  width: 100%;
  max-width: 100%;
}

.gg-hero-banner-link {
  display: block;
  line-height: 0;
}

.gg-hero-banner {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(52vw, 320px);
  object-fit: contain;
  object-position: center;
  background: var(--gg-white);
}

@media (min-width: 768px) {
  .gg-hero-banner {
    max-height: 360px;
  }
}

/* ── Category quick grid ── */
.gg-category-grid-section {
  padding: 2rem 0;
}

.gg-category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 576px) {
  .gg-category-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

@media (min-width: 992px) {
  .gg-category-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.gg-category-tile {
  background: var(--gg-white);
  border-radius: var(--gg-radius);
  box-shadow: var(--gg-shadow-sm);
  text-align: center;
  padding: 1rem 0.5rem;
  text-decoration: none !important;
  color: var(--gg-text) !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: block;
}

.gg-category-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--gg-shadow);
  color: var(--gg-maroon) !important;
}

.gg-category-tile-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.5rem;
  border-radius: 50%;
  background: var(--gg-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--gg-saffron);
}

.gg-category-tile img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 0.5rem;
}

.gg-category-tile span {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
}

/* ── Trust strip ── */
.gg-trust-strip {
  background: var(--gg-white);
  border-top: 1px solid var(--gg-cream-dark);
  border-bottom: 1px solid var(--gg-cream-dark);
  padding: 1.25rem 0;
}

.gg-trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .gg-trust-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gg-trust-item {
  text-align: center;
  padding: 0.5rem;
}

.gg-trust-item ion-icon,
.gg-trust-item i {
  font-size: 1.75rem;
  color: var(--gg-saffron);
  margin-bottom: 0.35rem;
  display: block;
}

.gg-trust-item strong {
  display: block;
  font-size: 0.8125rem;
  color: var(--gg-maroon);
  margin-bottom: 0.15rem;
}

.gg-trust-item span {
  font-size: 0.75rem;
  color: var(--gg-text-muted);
  line-height: 1.35;
}

/* ── Why shop section ── */
.gg-why-section {
  padding: 2.5rem 0;
  background: linear-gradient(180deg, var(--gg-cream) 0%, var(--gg-white) 100%);
}

.gg-why-card {
  background: var(--gg-white);
  border-radius: var(--gg-radius);
  padding: 1.25rem;
  height: 100%;
  box-shadow: var(--gg-shadow-sm);
  border-left: 3px solid var(--gg-gold);
}

.gg-why-card h3 {
  font-size: 1rem;
  color: var(--gg-maroon);
  margin: 0 0 0.5rem;
  font-weight: 700;
}

.gg-why-card p {
  font-size: 0.875rem;
  color: var(--gg-text-muted);
  margin: 0;
  line-height: 1.5;
}

/* ── Product cards ── */
body.gg-redesign .product-card,
body.gg-redesign .grid-view-card,
body.gg-redesign .card.product-card {
  background: var(--gg-white);
  border: 1px solid var(--gg-cream-dark) !important;
  border-radius: var(--gg-radius) !important;
  box-shadow: var(--gg-shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

body.gg-redesign .product-card:hover,
body.gg-redesign .grid-view-card:hover {
  box-shadow: var(--gg-shadow);
  transform: translateY(-2px);
}

body.gg-redesign .grid-card-container {
  padding: 0.375rem;
}

body.gg-redesign .product-card .card-body h4,
body.gg-redesign .product-card .card-title,
body.gg-redesign .grid-view-card .card-body h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gg-text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

body.gg-redesign .product-card img,
body.gg-redesign .grid-view-card img {
  object-fit: contain;
  background: var(--gg-cream);
}

body.gg-redesign .add-in-cart-btn {
  font-size: 0.8125rem;
  padding: 0.5rem 0.75rem;
  margin-top: 0.25rem;
}

body.gg-redesign .add-to-fav-btn {
  z-index: 2;
}

body.gg-redesign .categories-card {
  background: var(--gg-white);
  border-radius: var(--gg-radius);
  box-shadow: var(--gg-shadow-sm);
  overflow: hidden;
  transition: transform 0.15s ease;
}

body.gg-redesign .categories-card:hover {
  transform: translateY(-2px);
}

body.gg-redesign .categories-card-text h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gg-maroon);
}

/* ── Product listing ── */
body.gg-redesign .productlist-title-section {
  background: var(--gg-white);
  border-radius: var(--gg-radius);
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: var(--gg-shadow-sm);
}

body.gg-redesign .breadcrumb-title-bar {
  background: transparent;
  padding-top: 0;
}

/* ── PDP top ── */
body.gg-redesign .gg-pdp-top .Product-Detail-card {
  background: var(--gg-white);
  border-radius: var(--gg-radius);
  padding: 1rem;
  box-shadow: var(--gg-shadow-sm);
}

body.gg-redesign .gg-pdp-top .product-title,
body.gg-redesign .gg-pdp-top h1 {
  color: var(--gg-maroon);
  font-weight: 700;
}

.gg-pdp-info-cards {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.gg-pdp-info-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--gg-cream);
  border: 1px solid var(--gg-cream-dark);
  border-radius: var(--gg-radius-sm);
}

.gg-pdp-info-card ion-icon {
  flex-shrink: 0;
  font-size: 1.25rem;
  color: var(--gg-saffron);
  margin-top: 0.1rem;
}

.gg-pdp-info-card strong {
  display: block;
  color: var(--gg-maroon);
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.gg-pdp-info-card span {
  display: block;
  color: var(--gg-text-muted);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.gg-why-lead {
  max-width: 36rem;
}

.gg-hero-phase2 {
  background: radial-gradient(circle at top right, #fff1db 0%, var(--gg-cream) 48%, #f7efe5 100%);
}

.gg-hero-shipping-note {
  color: var(--gg-maroon-soft);
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0 0 1rem;
}

.gg-category-grid-premium .gg-category-tile-lg {
  padding: 0.75rem 0.65rem 0.9rem;
  border: 1px solid #f1dfc6;
  background: linear-gradient(180deg, #fffdfa 0%, #fff3e3 100%);
}

.gg-category-grid-premium .gg-category-tile-lg img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(92, 26, 26, 0.12);
}

.gg-editorial-section {
  padding-bottom: 1.5rem;
}

.gg-editorial-card {
  display: block;
  background: var(--gg-white);
  border: 1px solid #f2e2cf;
  border-radius: var(--gg-radius);
  overflow: hidden;
  box-shadow: var(--gg-shadow-sm);
  height: 100%;
}

.gg-editorial-media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #f8e7cf 0%, #fff4e4 100%);
}

.gg-editorial-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gg-editorial-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: var(--gg-maroon-soft);
}

.gg-editorial-body {
  padding: 1rem;
}

.gg-editorial-body h3 {
  font-size: 1rem;
  margin: 0 0 0.4rem;
  color: var(--gg-maroon);
}

.gg-editorial-body p {
  font-size: 0.84rem;
  color: var(--gg-text-muted);
  margin: 0 0 0.55rem;
}

.gg-editorial-body span {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gg-saffron-dark);
}

.gg-curated-products {
  margin-bottom: 1.25rem;
}

@media (max-width: 575.98px) {
  .gg-category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  body.gg-redesign main,
  body.gg-redesign .container,
  body.gg-redesign .container-xl {
    max-width: 100%;
    overflow-x: hidden;
  }

  .gg-hero-inner {
    padding: 0 0.75rem;
  }

  .gg-sitewide-notice-inner {
    align-items: flex-start;
  }

  .gg-sitewide-notice-copy {
    font-size: 0.8rem;
  }

  .gg-editorial-body {
    padding: 0.85rem;
  }

  .gg-editorial-body h3 {
    font-size: 0.9rem;
  }
}

/* ── Footer ── */
body.gg-redesign footer {
  background: var(--gg-maroon) !important;
  color: rgba(255, 255, 255, 0.9);
}

body.gg-redesign footer .container-fluid.bg-white,
body.gg-redesign footer .container {
  background: transparent !important;
}

body.gg-redesign footer h5,
body.gg-redesign footer .fw-bold {
  color: var(--gg-white);
}

body.gg-redesign footer p,
body.gg-redesign footer a.text-reset {
  color: rgba(255, 255, 255, 0.85) !important;
}

body.gg-redesign footer a.text-reset:hover {
  color: var(--gg-gold) !important;
}

body.gg-redesign .copyright-section {
  background: rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.75);
  padding: 1rem;
  text-align: center;
  font-size: 0.8125rem;
}

body.gg-redesign .social-media-icon {
  color: var(--gg-gold) !important;
}

body.gg-redesign .freedel-sec {
  background: var(--gg-white) !important;
  border-top: 1px solid var(--gg-cream-dark);
}

body.gg-redesign .freedel-sec .info-title {
  color: var(--gg-maroon);
  font-size: 0.9375rem;
}

/* ── Product listing filters ── */
body.gg-redesign .filter-section {
  background: var(--gg-white);
  border-radius: var(--gg-radius);
  box-shadow: var(--gg-shadow-sm);
}

.gg-filter-title {
  color: var(--gg-maroon);
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.gg-filter-block .form-select,
.gg-filter-block .form-control {
  border-color: var(--gg-cream-dark);
  border-radius: var(--gg-radius-sm);
}

.gg-filter-block .form-check-label {
  color: var(--gg-text-muted);
  font-size: 0.875rem;
}

#filter.offcanvas .gg-product-filters-mobile,
#filter.offcanvas .gg-product-filters-mobile {
  padding-bottom: 0.5rem;
}

/* ── Mobile bottom bar ── */
.gg-mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1040;
  background: var(--gg-white);
  border-top: 1px solid var(--gg-cream-dark);
  box-shadow: 0 -4px 20px rgba(44, 33, 24, 0.1);
  padding: 0.35rem 0 calc(0.35rem + env(safe-area-inset-bottom, 0));
}

@media (max-width: 991.98px) {
  .gg-mobile-bottom-bar {
    display: flex;
    justify-content: space-around;
    align-items: stretch;
  }

  body.gg-redesign.gg-has-mobile-bar:not(.gg-hide-mobile-bar) {
    padding-bottom: calc(62px + env(safe-area-inset-bottom, 0));
  }

  body.gg-redesign.gg-has-mobile-bar:not(.gg-hide-mobile-bar) .fixed-icon {
    bottom: calc(70px + env(safe-area-inset-bottom, 0));
  }
}

.gg-mobile-bottom-bar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  color: var(--gg-text-muted) !important;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.35rem 0.25rem;
  min-height: 52px;
  gap: 0.15rem;
  border: none;
  background: transparent;
}

.gg-mobile-bottom-bar a ion-icon,
.gg-mobile-bottom-bar a i {
  font-size: 1.35rem;
}

.gg-mobile-bottom-bar a.active,
.gg-mobile-bottom-bar a:hover {
  color: var(--gg-saffron) !important;
}

.gg-mobile-bottom-bar .gg-bar-cart-wrap {
  position: relative;
}

.gg-mobile-bottom-bar .gg-bar-cart-wrap .cart-count {
  position: absolute;
  top: -4px;
  right: -8px;
  font-size: 0.6rem;
}

/* ── Mobile header cleanup ── */
@media (max-width: 991.98px) {
  body.gg-redesign .container-fluid.p-3.d-flex.d-xl-none {
    background: var(--gg-white);
    border-bottom: 1px solid var(--gg-cream-dark);
    padding: 0.5rem 0.75rem !important;
  }

  body.gg-redesign .search-nav.content-wrapper .navbar {
    padding: 0.35rem 0.75rem;
  }

  body.gg-redesign .mySwiper.grab {
    border-radius: var(--gg-radius);
  }
}

/* ── Offcanvas menu ── */
body.gg-redesign .offcanvas#offcanvasExample {
  background: var(--gg-cream);
}

body.gg-redesign .offcanvas#offcanvasExample .menu-icon {
  color: var(--gg-saffron);
}

/* ── No horizontal scroll ── */
body.gg-redesign {
  overflow-x: hidden;
}

body.gg-redesign .container,
body.gg-redesign .container-xl,
body.gg-redesign .container-lg {
  max-width: 100%;
}

/* ── Checkout: hide mobile bar via JS class ── */
body.gg-redesign.gg-hide-mobile-bar .gg-mobile-bottom-bar {
  display: none !important;
}
