
/* Elegant Animated Underline for H1/H2/H3 */
h1, h2, h3 {
  position: relative !important;
  display: inline-block !important;
  padding-bottom: 6px;
  text-align: center;
}

h1::after, h2::after, h3::after {
  position: absolute;
  align-items: center;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px; /* Elegant dark grey */
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  animation: 0.6s ease-out forwards;
}

@keyframes underlineReveal {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

body { background: url('https://images.unsplash.com/photo-1505740420928-5e560c06d30e?auto=format&fit=crop&w=1200&q=80') no-repeat center center/cover !important; }

/* Strong override CSS for project - placed in public/css so it's loaded for all routes */

/* global background (dynamic Unsplash handled elsewhere) */
html, body, #root {
  background: none !important;
  background-image: url('https://source.unsplash.com/1600x900/?product,shopping,studio') !important;
  background-size: cover !important;
  background-position: center top !important;
  background-repeat: no-repeat !important;
  min-height: 100%;
  margin: 0;
  padding: 0;
}

/* Make navbar and footer transparent but keep layout */
nav, .navbar, header, .site-header, footer, .site-footer {
  background: transparent !important;
}

/* Product grid: force 5 columns */
.product-grid {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 24px !important;
  padding: 24px !important;
  align-items: start;
}

/* responsive */
@media (max-width: 1200px) { .product-grid { grid-template-columns: repeat(4,1fr) !important; } }
@media (max-width: 900px) { .product-grid { grid-template-columns: repeat(3,1fr) !important; } }
@media (max-width: 600px) { .product-grid { grid-template-columns: repeat(2,1fr) !important; } }

/* Product card sizing - smaller */
.product-card {
  width: auto !important;
  max-width: 220px !important;
  margin: 8px !important;
  background: rgba(255,255,255,0.0) !important;
  border-radius: 12px !important;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08) !important;
  overflow: visible !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
}

/* image */
.product-card img {
  width: 100% !important;
  height: 260px !important;
  object-fit: cover !important;
  border-radius: 10px !important;
  display: block !important;
}

/* Product info */
.product-info {
  padding: 10px !important;
  background: rgba(255,255,255,0.95) !important;
  color: #111 !important;
  border-radius: 0 0 10px 10px !important;
  text-align: center !important;
}

/* Buttons - small style sitewide */
button, .btn, .nav-link, .category-buttons button, .category-link, .category-links a {
  padding: 6px 10px !important;
  font-size: 0.9rem !important;
  border-radius: 8px !important;
  background: #5ae36f !important;
  color: #111 !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
}

/* Category header links single-line */
.category-buttons, .category-links, .categories-nav, .categories-header {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 12px !important;
  align-items: center !important;
  overflow-x: auto !important;
  white-space: nowrap !important;
  padding: 12px !important;
}

/* Make each category pill compact */
.category-buttons button, .category-links a, .category-item {
  display: inline-block !important;
  font-size: 0.95rem !important;
  white-space: nowrap !important;
  text-transform: none !important;
  background: #5ae36f !important;
  border-radius: 8px !important;
}

/* Contact/about readability */
.contact-page .contact-form, .about-page .about-content, .page-content, .home {
  background: transparent !important;
  color: #111 !important;
}

/* Inputs readable */
input, textarea, .form-control {
  background: rgba(255,255,255,0.95) !important;
  color: #111 !important;
  border-radius: 8px !important;
}

/* Make sure no other bg colors override us */
[class*='bg-'], [class*='background-'], .card { background: transparent !important; }

/* ensure product grid items centered */


/* More compact category pills */
.category-buttons .category-item,
.category-links .category-item,
.category-buttons button,
.category-links button {
    padding: 4px 10px !important;
    margin: 4px !important;
    font-size: 0.75rem !important;
    border-radius: 6px !important;
    min-width: fit-content !important;
    display: inline-block !important;
}

/* reduce gap between rows */
.category-buttons,
.category-links {
    gap: 6px !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
}


h1 {
  position: relative;
  text-align: center;
}
h1::after {
  content: "";
  display: block;
  height: 3px;
  width: 50%;
  margin: 8px auto 0;
  background: green;
  border-radius: 4px;
}

#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: green;
  color: white;
  padding: 8px 10px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  z-index: 999;
  display: none;
}

/* Animated short underline for page headers */
h1 {
  position: relative;
  text-align: center;
  overflow: visible;
}

h1::after {
  content: "";
  display: block;
  height: 6px;              /* thicker */
  width: 30%;               /* shorter, proportional */
  margin: 10px auto 0;
  background: green;
  border-radius: 6px;

  animation: growline 0.8s ease-out forwards;
  transform: scaleX(0);
  transform-origin: center;
}

@keyframes growline {
  to { transform: scaleX(1); }
}

/* Navbar link button green */
nav a, .navbar a, .nav-link {
  background: green !important;
  color: white !important;
  padding: 6px 10px;
  border-radius: 4px;
}

#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: green;
  color: white;
  padding: 8px 10px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  z-index: 999;
  display: none;
}

/* Longer underline */
h1::after {
  width: 60% !important;
}

/* centered page header underline */
.page-header {
    position: relative;
    display: inline-block;
    margin: 0 auto;
    text-align: center;
}
.page-header::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -8px;
    width: 60%;
    height: 4px;
    background: green;
    border-radius: 4px;
}



/* === H1 underline drop animation (centered) === */
h1 {
    position: relative;
    display: table;
    margin: 0 auto;
    text-align: center;
}

h1::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    opacity: 0;
    bottom: -6px;
    width: 60%;
    height: 4px;
    background: green;
    border-radius: 4px;
    animation: dropLine 0.6s ease-out forwards;
}

@keyframes dropLine {
    0% {
        transform: translateX(-50%) translateY(-10px);
        opacity: 0;
    }
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}



/* === Center ONLY About Page H1 + H2 === */
.about-page h1, 
.about-page h2 {
    position: relative;
    display: table;
    margin: 0 auto;
    text-align: center;
}

.about-page h1::after,
.about-page h2::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -6px;
    width: 60%;
    height: 4px;
    background: green;
    border-radius: 4px;
}



/* === STRICT ABOUT PAGE HEADER CENTERING FIX === */
.about-page h1,
.about-page h2 {
    display: inline-block;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.about-page h1::after,
.about-page h2::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -6px;
    width: 70%;
    height: 4px;
    background: green;
    border-radius: 4px;
}
