:root {
  --gn-pink: #d63384;
  --gn-pink-dark: #a3215f;
  --gn-gold: #c9a24b;
}

/* Page-load preloader */
#preloader-active {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.preloader-inner { text-align: center; }
.preloader-logo { max-height: 60px; margin-bottom: 16px; }
.preloader-spinner {
  width: 36px;
  height: 36px;
  margin: 0 auto;
  border: 4px solid #f3e0e9;
  border-top-color: var(--gn-pink);
  border-radius: 50%;
  animation: gn-spin 0.8s linear infinite;
}
@keyframes gn-spin { to { transform: rotate(360deg); } }

/* Staggered fade-in for product/category grids */
.gn-stagger-item {
  opacity: 0;
  animation: gn-fade-up 0.5s ease forwards;
}
@keyframes gn-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Scrollable product thumbnail strip */
.gn-thumb-scroll-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.gn-thumb-scroll {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.gn-thumb-scroll::-webkit-scrollbar { height: 5px; }
.gn-thumb-scroll::-webkit-scrollbar-thumb { background: #eecbdc; border-radius: 4px; }
.gn-thumb {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #eee;
  cursor: pointer;
  transition: border-color .15s ease;
}
.gn-thumb.active, .gn-thumb:hover { border-color: var(--gn-pink); }
.gn-thumb-arrow {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  color: var(--gn-pink-dark);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gn-thumb-arrow:hover { background: var(--gn-pink); color: #fff; }

/* Product tabs */
.gn-product-tabs {
  border-bottom: 2px solid #f3e0e9;
  gap: .5rem;
}
.gn-product-tabs .nav-link {
  border: none;
  color: #8a8a9a;
  font-weight: 700;
  padding: .6rem 0;
  margin-right: 2rem;
  border-bottom: 3px solid transparent;
  border-radius: 0;
}
.gn-product-tabs .nav-link.active {
  color: var(--gn-pink-dark);
  border-bottom-color: var(--gn-pink);
  background: none;
}
.gn-product-tabs .badge { background: var(--gn-gold); }

/* Additional info spec rows */
.gn-spec-row {
  display: flex;
  justify-content: space-between;
  padding: .6rem .9rem;
  background: #fdf7f9;
  border-radius: 8px;
  border: 1px solid #f3e0e9;
}
.gn-spec-key { color: #6b6b7b; font-weight: 600; }
.gn-spec-value { color: #1a1a2e; font-weight: 700; }

.gn-card-actions {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: .4rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease;
  z-index: 5;
}
.product-img-action-wrap { position: relative; }
.product-img-action-wrap:hover .gn-card-actions {
  opacity: 1;
  visibility: visible;
}
.gn-card-actions .action-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gn-pink-dark);
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.gn-card-actions .action-btn:hover {
  background: var(--gn-pink);
  color: #fff;
}

.gn-count-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--gn-pink);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  border-radius: 999px;
  min-width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

div.gn-marquee-wrap#news-flash {
  overflow: hidden !important;
  white-space: nowrap !important;
  width: 100% !important;
  min-width: 0 !important;
  display: block !important;
}
.gn-marquee-track {
  display: inline-flex !important;
  white-space: nowrap;
  animation: gn-marquee 22s linear infinite;
  will-change: transform;
}
.gn-marquee-item {
  display: inline-block;
  white-space: nowrap;
  flex: 0 0 auto;
  padding: 0 2.5rem;
  font-size: .85rem;
  color: var(--gn-pink-dark);
  font-weight: 600;
}
@keyframes gn-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.gn-marquee-wrap:hover .gn-marquee-track {
  animation-play-state: paused;
}

.giftnest-logo {
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--gn-pink-dark);
  letter-spacing: .5px;
}
.giftnest-logo .accent { color: var(--gn-gold); }

.logo img, .brand-wrap img {
  max-width: 100%;
  height: auto;
  max-height: 80px;
  width: auto;
  object-fit: contain;
}
@media (max-width: 991px) {
  .logo img, .brand-wrap img { max-height: 36px; }
}
@media (max-width: 575px) {
  .logo img, .brand-wrap img { max-height: 30px; }
  .giftnest-logo { font-size: 1.2rem; }
}

.text-brand { color: var(--gn-pink) !important; }
.btn:not([class*="btn-outline"]):not(.btn-secondary):not(.btn-danger):not(.btn-success), .button-add-to-cart, a.button:not([class*="btn-outline"]) { background-color: var(--gn-pink); border-color: var(--gn-pink); color: #fff; }
.btn:not([class*="btn-outline"]):not(.btn-secondary):not(.btn-danger):not(.btn-success):hover, .button-add-to-cart:hover { background-color: var(--gn-pink-dark); border-color: var(--gn-pink-dark); color: #fff; }

/* Admin datatable action buttons: keep text/background readable at rest and on hover */
.btn-outline-primary { color: var(--gn-pink-dark); border-color: var(--gn-pink); background-color: transparent; }
.btn-outline-primary:hover { color: #fff; background-color: var(--gn-pink); border-color: var(--gn-pink); }
.btn-outline-danger:hover { color: #fff; }
.btn-outline-secondary:hover { color: #fff; }

.add-cart-btn {
  border: none;
  background: var(--gn-pink);
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: .85rem;
  font-weight: 600;
}
.add-cart-btn:hover { background: var(--gn-pink-dark); }
.gn-add-cart-sm {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.gn-card-rating { margin: 2px 0; }
.gn-card-delivery { margin-bottom: 4px; }

/* Staggered fade-in delay per grid position */
.product-grid-4 > [class*="col-"]:nth-child(1) .gn-stagger-item,
.row.g-3 > [class*="col-"]:nth-child(1) .gn-stagger-item { animation-delay: .05s; }
.product-grid-4 > [class*="col-"]:nth-child(2) .gn-stagger-item,
.row.g-3 > [class*="col-"]:nth-child(2) .gn-stagger-item { animation-delay: .1s; }
.product-grid-4 > [class*="col-"]:nth-child(3) .gn-stagger-item,
.row.g-3 > [class*="col-"]:nth-child(3) .gn-stagger-item { animation-delay: .15s; }
.product-grid-4 > [class*="col-"]:nth-child(4) .gn-stagger-item,
.row.g-3 > [class*="col-"]:nth-child(4) .gn-stagger-item { animation-delay: .2s; }
.product-grid-4 > [class*="col-"]:nth-child(n+5) .gn-stagger-item { animation-delay: .25s; }

.search-btn {
  border: none;
  background: var(--gn-pink);
  color: #fff;
  padding: 0 16px;
}

.dropdown-plain-btn {
  border: none;
  background: none;
  padding: 0;
  width: 100%;
  text-align: left;
}

.product-badges .hot { background: #fff3e0; color: #a3701c; border: 1px solid #e8caa0; }
.product-badges .new { background: #e7f6ee; color: #21744a; border: 1px solid #a9dcc0; }

.status-pill { display: inline-block; padding: .25rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.status-pending { background: #fff3cd; color: #856404; }
.status-assigned { background: #cfe2ff; color: #084298; }
.status-accepted { background: #d1e7dd; color: #0f5132; }
.status-delivery { background: #e2d9f3; color: #4b2e83; }
.status-delivered { background: #d1e7dd; color: #0f5132; }
.status-failed { background: #f8d7da; color: #842029; }
.status-rejected { background: #f8d7da; color: #842029; }

.gn-hero {
  background: linear-gradient(120deg, #fde2ea 0%, #fff3e0 100%);
  border-radius: 18px;
  padding: 60px 40px;
}
.gn-hero h1 { color: var(--gn-pink-dark); font-weight: 800; }

.gn-cat-tile {
  border-radius: 16px;
  overflow: hidden;
  text-align: center;
  background: #fff;
  box-shadow: 0 4px 14px rgba(163, 33, 95, .08);
  display: block;
  text-decoration: none;
  padding-bottom: 10px;
}
.gn-cat-tile img { width: 100%; height: 110px; object-fit: cover; background: #fde2ea; }
.gn-cat-tile .name { padding-top: 10px; font-weight: 700; color: #3a2233; }

.gn-section-title { font-weight: 800; color: var(--gn-pink-dark); }

.gn-cat-tile-2 {
  display: block;
  border-radius: 14px;
  padding: 16px 10px 14px;
  text-align: center;
  transition: transform .15s ease;
}
.gn-cat-tile-2:hover { transform: translateY(-3px); }
.gn-cat-tile-2 img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  padding: 10px;
  margin: 0 auto 10px;
  display: block;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.gn-cat-tile-2 .name { font-weight: 700; color: #1a1a2e; font-size: .92rem; }
.gn-cat-tile-2 .count { font-size: .75rem; color: #6b6b7b; }
.gn-cat-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
}
.gn-cat-scroll::-webkit-scrollbar { height: 5px; }
.gn-cat-scroll::-webkit-scrollbar-thumb { background: #eecbdc; border-radius: 4px; }
.gn-cat-scroll .gn-cat-tile-2 { flex: 0 0 150px; }

/* Testimonials */
.gn-testimonial-card {
  background: #fff;
  border: 1px solid #f3e0e9;
  border-radius: 14px;
  padding: 20px;
  height: 100%;
  box-shadow: 0 4px 14px rgba(163, 33, 95, .06);
}
.gn-testimonial-stars { color: #f5a623; margin-bottom: 8px; }
.gn-testimonial-comment { color: #3a2233; margin-bottom: 16px; min-height: 48px; }
.gn-testimonial-author { display: flex; align-items: center; gap: 10px; }
.gn-testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }

/* Explore Gifting Category — oval cover-image cards */
.gn-gift-oval {
  display: block;
  text-align: center;
  text-decoration: none;
}
.gn-gift-oval img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 999px;
  margin-bottom: 10px;
  box-shadow: 0 4px 14px rgba(163, 33, 95, .1);
}
.gn-gift-oval .name { font-weight: 700; color: #3a2233; }

/* Navbar tagline badges */
.gn-navbar-taglines { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.gn-navbar-tagline {
  font-size: .72rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}

/* Single-line scrollable breadcrumb */
.gn-breadcrumb-scroll {
  white-space: nowrap;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.gn-breadcrumb-scroll::-webkit-scrollbar { display: none; }
