:root {
  --accent: #50C878;      /* Emerald Green for Healing */
  --accent-vibrant: #77DD77; /* Vibrant Healing Green */
  --accent-muted: #355E3B;   /* Deep Forest Green */
  --gold: var(--accent); /* Legacy support for existing classes */
  --black: #000000;
  --black-2: #0A0A0A;
  --black-3: #121212;
  --white: #FFFFFF;
  --muted: #B0B0B0; /* Brighter gray for better contrast on black */
  --z-index-mask: 9999;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
  font-family: 'Playfair Display', serif;
}

/* Custom Navigation */
.custom-nav {
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(80, 200, 120, 0.1);
  padding: 1.2rem 0;
  transition: all 0.3s ease;
}

.navbar-brand {
  letter-spacing: 4px;
  color: var(--white) !important;
  font-size: 1.5rem;
}

.nav-link {
  color: var(--muted) !important;
  font-weight: 300;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent) !important;
}

.text-gold, .text-pink {
  color: var(--accent) !important;
}

.btn-gold, .btn-pink {
  background-color: var(--accent);
  color: var(--black);
  border: none;
  font-weight: 600;
  padding: 0.75rem 2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 0;
  transition: all 0.3s ease;
}

.btn-gold:hover, .btn-pink:hover {
  background-color: var(--accent-vibrant);
  transform: translateY(-2px);
}

.btn-outline-gold, .btn-outline-pink {
  border: 1px solid var(--accent);
  color: var(--accent);
  background-color: transparent;
  padding: 0.75rem 2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 0;
}

.btn-outline-gold:hover, .btn-outline-pink:hover {
  background-color: var(--accent);
  color: var(--black);
}

/* Hero Section */
/* Hero Slider & Sacred Backgrounds */
.hero-slider-container {
    background-color: #000;
    min-height: 90vh;
}

.hero-slider-item {
    height: 90vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Animation Utilities */
@keyframes sacred-pulse-float {
    0%, 100% { transform: translate(0, -50%) scale(1); opacity: 0.15; }
    50% { transform: translate(-15px, -52%) scale(1.05); opacity: 0.25; }
}

.carousel-fade .carousel-item {
    transition-duration: 2s;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.9) 100%);
  z-index: 5;
}

.hero-content {
  position: relative;
  z-index: 20;
  max-width: 800px;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
  font-weight: 700 !important;
}

.hero-content p.lead {
  font-weight: 400;
  color: #ffffff !important;
  max-width: 600px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
  padding: 15px 25px;
  border-radius: 8px;
  border-left: 4px solid var(--accent);
}

.hero-content h6 {
    background: rgba(80, 200, 120, 0.15);
    color: var(--accent) !important;
    display: inline-block;
    padding: 6px 18px;
    border-radius: 4px;
    margin-bottom: 1.2rem !important;
    font-weight: 600;
}

/* Product Cards */
.product-card {
  background-color: var(--black-2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s ease;
  height: 100%;
}

.product-card:hover {
  border-color: var(--accent);
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(80, 200, 120, 0.15);
  background-color: var(--black-3);
}

.product-image-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 12/8; /* Standardized 'Natural Artisan' 3:2 Ratio */
}

.product-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-card:hover .product-image-wrapper img {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--accent);
  color: var(--black);
  padding: 4px 12px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Category Cards */
.category-card {
  position: relative;
  height: 450px;
  overflow: hidden;
  cursor: pointer;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.category-card:hover img {
  transform: scale(1.1);
}

.category-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 40px;
  background: linear-gradient(transparent, rgba(0,0,0,0.9));
}

/* Forms */
.custom-input input, .custom-input select, .custom-input textarea {
  background-color: var(--black-2) !important;
  border: 1px solid rgba(80, 200, 120, 0.25);
  color: var(--white) !important;
  border-radius: 0;
  padding: 0.8rem 1.2rem;
}

.custom-input input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.15rem rgba(80, 200, 120, 0.1);
}

/* Utils */
.ls-2 { letter-spacing: 2px; }
.ls-4 { letter-spacing: 4px; }
.text-gold { color: var(--accent); }
.text-pink { color: var(--accent); }
.border-gold-faded { border-color: rgba(80, 200, 120, 0.1) !important; }
.smallest { font-size: 0.75rem; }
.bg-black-2 { background-color: var(--black-2); }
.max-w-600 { max-width: 600px; }
.shadow-text { text-shadow: 2px 2px 10px rgba(0,0,0,0.8); }

/* Custom Badge */
.cart-badge-count {
  font-size: 0.65rem;
  padding: 0.35em 0.65em;
  border-radius: 50%;
}

/* Animations */
@keyframes sacred-float {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.05); opacity: 1; }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 10px rgba(80, 200, 120, 0.2); }
  50% { box-shadow: 0 0 25px rgba(80, 200, 120, 0.5); }
}

.pulse-glow {
  animation: pulse-glow 3s infinite ease-in-out;
}

.highlight-link {
  position: relative;
  overflow: hidden;
}

.highlight-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent);
  transition: width 0.4s ease;
}

.highlight-link:hover::after {
  width: 100%;
}

#page-reveal-mask {
    z-index: var(--z-index-mask);
    pointer-events: none;
}

/* Custom Utilities */
.transition-slow { transition: all 1.2s cubic-bezier(0.645, 0.045, 0.355, 1); }
.transition-med { transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1); }

/* Footer Enhancements */
.footer {
  background-color: var(--black) !important;
}

.footer h5, .footer h6 {
  color: var(--white);
  letter-spacing: 2px;
}

.footer p, .footer .text-muted {
  color: #d1d1d1 !important; /* Even brighter for footer on black */
}

.footer ul.list-unstyled li a {
  color: var(--muted) !important;
  text-decoration: none !important;
  transition: all 0.3s ease;
  display: inline-block;
  padding: 2px 0;
}

.footer ul.list-unstyled li a:hover {
  color: var(--accent) !important;
  padding-left: 5px;
}

.social-link {
  color: var(--muted) !important;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border: 1px solid rgba(80, 200, 120, 0.1);
  border-radius: 50%;
}

.social-link:hover {
  color: var(--accent) !important;
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(80, 200, 120, 0.2);
}

.footer-bottom-text {
  color: #666 !important;
}

/* Global Link Fix */
a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: pointer;
}

p, .text-muted {
    color: #cccccc !important;
}

h6.text-gold, h6.text-pink {
    font-weight: 600;
}

@media (max-width: 991.98px) {
  .hero-section {
    height: 70vh;
  }
}

/* Pagination Overrides */
.pagination {
    border-radius: 0;
}

.pagination .page-link {
    background-color: transparent;
    border-color: var(--gold-faded);
    color: var(--gold);
    padding: 10px 18px;
    transition: all 0.3s ease;
    border-radius: 0;
}

.pagination .page-link:hover {
    background-color: var(--gold-faded);
    color: #fff;
    border-color: var(--gold);
}

.pagination .page-item.active .page-link {
    background-color: var(--gold) !important;
    border-color: var(--gold) !important;
    color: #000 !important;
    font-weight: 700;
}

.pagination .page-item.disabled .page-link {
    background-color: transparent;
    border-color: rgba(80, 200, 120, 0.1);
    color: rgba(255, 255, 255, 0.3);
}

/* Sacred Backdrop Layer */
.sacred-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.sacred-shape-random {
    position: absolute;
    width: 200px; /* Default size, overridden by JS if needed */
    height: 200px;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    opacity: 0.15; /* Increased base visibility */
    mix-blend-mode: screen;
    pointer-events: none;
    transition: opacity 1s ease;
}

.sacred-shape-bg {
    position: absolute;
    width: 60%;
    height: 80%;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    opacity: 0.15;
    pointer-events: none;
    z-index: 1;
    animation: sacred-pulse-float 20s infinite ease-in-out;
}

.glow-orange {
    background-color: #FF8C00 !important;
    filter: drop-shadow(0 0 30px rgba(255, 140, 0, 0.4)) !important;
}

.glow-green {
    background-color: #50C878 !important;
    filter: drop-shadow(0 0 30px rgba(80, 200, 120, 0.4)) !important;
}

.glow-gold {
    background-color: #D4AF37 !important;
    filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.4)) !important;
}

@keyframes sacred-bg-float {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    33% { transform: translate(20px, -30px) rotate(5deg) scale(1.05); }
    66% { transform: translate(-10px, 15px) rotate(-3deg) scale(0.95); }
}

.float-slow { animation: sacred-bg-float 25s infinite ease-in-out; }
.float-medium { animation: sacred-bg-float 18s infinite ease-in-out; }
.float-fast { animation: sacred-bg-float 12s infinite ease-in-out; }

/* Pagination Overrides */
.payment-icons i {
    color: var(--gold-faded);
    transition: color 0.3s ease, transform 0.3s ease;
    cursor: default;
}

.payment-icons i:hover {
    color: var(--gold);
    transform: translateY(-3px);
}

/* Premium Checkboxes & Form Controls */
.form-check-input {
    background-color: rgba(255, 255, 255, 0.03) !important;
    border: 1.5px solid rgba(80, 200, 120, 0.3) !important;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-radius: 4px !important;
}

.form-check-input:checked {
    background-color: var(--gold) !important;
    border-color: var(--gold) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e") !important;
    box-shadow: 0 0 15px rgba(80, 200, 120, 0.4) !important;
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(80, 200, 120, 0.2) !important;
    border-color: var(--gold) !important;
}

.form-check-label {
    cursor: pointer;
    transition: color 0.3s ease;
    padding-left: 8px;
    font-size: 0.95rem;
}

.form-check-input:checked + .form-check-label {
    color: var(--gold);
    font-weight: 500;
}

/* Precision Product Gallery (3:2 Ratio) */
.product-main-image-container {
    background-color: var(--black-2);
    position: relative;
    aspect-ratio: 12/8;
    overflow: hidden;
    cursor: zoom-in;
}

.product-zoom-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.product-zoom-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures no gaps/space on top/bottom */
    transition: transform 0.2s ease-out;
}

/* Fixed Gallery Thumbnails */
.thumbnail-image {
    aspect-ratio: 12/8;
    object-fit: cover;
    background-color: var(--black-2);
    transition: border-color 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
}

.thumbnail-image:hover, .thumbnail-image.active {
    border-color: var(--gold) !important;
    opacity: 1 !important;
}

/* Zoom Overlay (Lens Style) */
.zoom-lens-overlay {
    position: absolute;
    pointer-events: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-repeat: no-repeat;
    background-size: 250%; /* 2.5x Zoom */
    display: none;
    z-index: 50;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-main-image-container:hover .zoom-lens-overlay {
    display: block;
    opacity: 1;
}

.product-main-image-container:hover img {
    opacity: 0.3; /* Mute the base image when lens is active */
}

/* Star Ratings & Reviews */
.star-rating {
    color: var(--gold);
    display: flex;
    gap: 4px;
}

.star-rating i {
    font-size: 0.85rem;
}

.review-card {
    background-color: var(--black-2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    height: 100%;
    transition: transform 0.3s ease;
}

.review-card:hover {
    border-color: var(--gold-faded);
    transform: translateY(-5px);
}

.verified-badge {
    color: var(--accent);
    background: rgba(80, 200, 120, 0.1);
    border: 1px solid var(--gold-faded);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 600;
}

.review-avatar {
    width: 44px;
    height: 44px;
    background: var(--black-3);
    border: 1px solid var(--gold-faded);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--gold);
    text-transform: uppercase;
    font-size: 0.9rem;
}
