/* ===== GLOBAL RESET & BASE TYPOGRAPHY ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Base theme (light) */
:root {
  --bg-color: #ffffff;
  --text-color: #222222;
  --accent-color: #e91e63; /* pink */
  --btn-bg: #f5f5f5;
  --btn-text: #222222;
  --sticky-summary-height: 250px;
}

/* Dark theme overrides */
.dark-theme {
  --bg-color: #121212;
  --text-color: #f0f0f0;
  --accent-color: #ff4081;
  --btn-bg: #333333;
  --btn-text: #f0f0f0;
}

html {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  overflow-x: hidden;
  }
  
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #fafafa;
  color: #333;
  overflow-x: hidden;
}


.header-description {
  flex: 1 1 100%; /* ← take full width when wrapping */
  max-width: 430px;
  width: 100%;
  margin: 0 auto;
  padding-left: 10px;
  font-size: clamp(0.7rem, 2.5vw, 1.2rem);
  line-height: 1.4;
  white-space: normal;
  color: rgb(127, 174, 104);
}

/* ===== MAIN & HERO ===== */
main.homepage {
  padding: 0 !important;
  margin: 0 !important;
}

main.homepage .hero-banner {
  padding: 0;
  margin: 0;
}

.hero {
  position: relative;
  text-align: center;
  color: white;
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero-buttons {
  margin-top: 1rem;
}

.hero-media {
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Video shows by default, fallback hidden until JS toggles */
.hero-video {
  display: none; /* ✅ show video initially */
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0; 
  /* display: block; /* ✅ show video initially */
}

.hero-video.hide {
  opacity: 0;
  transition: opacity 2s ease-in-out; /* ⏳ smoother fade-out */
}

.hero-video.show {
  display: block;
  opacity: 1;
  transition: opacity 0.5s ease-in-out; /* ✅ fade out */
}

.hero-image-fallback {
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  display: none;
  opacity: 0;
  transition: opacity 2s ease-in-out; /* fade effect */
}

.hero-image-fallback.show {
  display: block;
  opacity: 1;
}

.hero-banner {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;

  background-size: cover;       /* fill container */
  background-position: center;  /* crop edges, keep subject centered */
  background-repeat: no-repeat;
  /* transition: opacity 1.5s ease-in-out; fade in */
  transition: background-image 2s ease-in-out; /*smooth swap*/
}

.hero-banner.show {
  opacity: 1;
}

@media (max-width: 768px) {
  .hero-banner {
    height: 100vh;
  }
}

/* Desktop-specific background positioning */
@media (min-width: 1024px) {
  .hero-banner {
    background-position: center; /* focus on top subject for large screens */
  }
}

/* Mobile-specific background positioning */
@media (max-width: 1023px) {
  .hero-banner {
    background-position: center; /* keep subject centered on smaller screens */
  }
}

.hero-banner::before,
.hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 3s ease-in-out; /* smooth fade */
}

.hero-banner.show-before::before { opacity: 1; }
.hero-banner.show-after::after  { opacity: 1; }

.hero-banner::before { background-image: var(--before-bg); }
.hero-banner::after  { background-image: var(--after-bg); }

.hero-overlay {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  color: white;
  padding: 2rem;
  background-color: rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: flex-end;   /* Align content to the right edge */
  text-align: left;
  max-width: 320px;
  opacity: 0;
  animation: fadeIn 2s ease forwards;
}

.hero-overlay p {
  margin-bottom: 0.75rem;
}

.hero-overlay a.btn {
  margin-top: 0.5rem;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-overlay {
    animation: none !important;
    opacity: 1 !important;
  }
}

.hero-overlay h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-overlay p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* ===== BUTTONS ===== */
.link-pink {
  color:#a2247c !important;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.2rem;
  margin-bottom: 1rem;
  align-items: center;
}

.social-links img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 8px; /* optional: soften edges */
  transition: transform 0.2s ease;
}

.social-links img:hover {
  transform: scale(1.1);
}

.button-wrapper {
  display: flex;
  justify-content: center; /* Center horizontally */
  width: 100%;
  margin-top: 1rem;
}

.btn {
  display: flex;                /* make the button a flex container */
  align-items: center;          /* vertical centering */
  justify-content: center;      /* horizontal centering */
  width: 100%;                  /* stretch to fill parent */
  padding: 0.4rem 0.8rem;
  font-weight: 400;
  font-size: 0.8rem;
  border-radius: 20px;
  text-align: center;
  white-space: nowrap;          /* keep text on one line */
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Dogs outlined */
.btn-dogs {
  background-color: rgb(181, 192, 176) !important;
  /* color: white !important; */
  color: black !important;
  border: 2px solid rgb(171, 186, 163) !important;
}

.btn-dogs:hover {
  color: #e92497 !important;
  border: 2px solid #e92497 !important;
  /* color: white !important; */
}

/* Dogs outlined */
.btn-dogs-outl {
  background-color: white;
  color: #95774b !important;
  border: 1px solid #95774b;
}

.btn-dogs-outl:hover {
  background-color: #ffe6f7;
}


/* Base button */
.my-btn {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  font-weight: 100 !important;
  text-decoration: none;
  border-radius: 10px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  border: none;
  cursor: pointer;
} 

/* button icon support*/
.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-icon i {
  font-size: 1.2em;
}

/* Hover + active effects */
.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}


/* button really standing out*/
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.btn.success {
  background-color: #6e0168;
  color: white;
}
.btn.small {
  font-size: 0.85rem;
  padding: 0.3rem 0.6rem;
}

/* ===== SECTIONS ===== */
.about {
  text-align: center;
  margin: 2rem 0;
}

.center {
  text-align: center;
  margin-top: 1rem;
}

/* ===== SCROLL-AWARE HEADER & GENERIC HIDE ===== */
header, footer {
  transition: transform 0.3s ease;
}
header.hide {
  transform: translateY(-100%);
}
footer.hide {
  transform: translateY(100%);
}

/* ===== FIXED, SCROLL-AWARE HEADER ===== */
 /* ===== HEADER BASE ===== */
 .page-header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #44321a; /*#687452; /* black !important; /*light beige/off-white
  /* background: #fdf8f2; light beige/off-white */
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

/* ===== HEADER INNER LAYOUT ===== */
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  padding: 0.5rem 1rem;
  /* max-width: 1200px; */
  max-width: none;
  margin: 0;  
  position: relative;
  z-index: 1;
}


/* Increase header height and padding */
.page-header .header-inner {
  min-height: 15px;     /* taller header */
}

/* ===== NAVIGATION BASE STYLES ===== */
.page-nav {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.page-nav ul {
  display: flex;
  flex-wrap: nowrap;
  flex: 0 0 auto;
  /* overflow-x: auto; */
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: flex-end;
  align-items: center;

}

.page-nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  white-space: nowrap;
  font-size: clamp(0.3rem, 1.8vw, 0.9rem);  
}

.page-nav a:hover {
  font-size: 1rem !important;
}

.site-logo {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
}

.site-logo img {
  /* width: clamp(20px, 6vw, 40px) !important; shrinks smoothly between 50px and 80px */
  width: 50px;
  height: auto;
  /* border-radius: 50%; */
  object-fit: cover;
  display: block;
  margin: 0;
}

.site-logo::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0) 70%, rgba(255,255,255,0.8) 100%);
  pointer-events: none;
}

.page-header.hide {
  transform: translateY(-100%);
}

.page-header.home::before,
.page-header.dogs::before,
.page-header.donations::before,
.page-header.contact::before
 {
  content: '';
  position: absolute;
  inset: 0; /* top right bottom left = 0 */
  background-color: rgba(161, 134, 94, 0.4);
  z-index: 0;
}

.mobile-only {
  display: none;
}

/* ===== BLOG SECTION WRAPPER ===== */
.blog-section {
  max-width: 1600px;
  margin: 0;
  padding: 1rem 1rem;
}

/* ===== BLOG ROW LAYOUT ===== */
.blog-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.blog-row .blog-image {
  flex: 1 1 50%;
}

.blog-row .blog-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.blog-line {
  border: none;
  height: 4px;               /* thickness of the line */
  background-color: rgb(127, 174, 104); /* your chosen color */
  margin: 1rem 0;            /* optional spacing above/below */
  width: 100%;               /* full width */
}

.blog-shopline {
  border: none;
  height: 4px;               /* thickness of the line */
  background-color: rgb(127, 174, 104); /* your chosen color */
  margin: 0.5rem 0;            /* optional spacing above/below */
  width: 100%;               /* full width */
}

.blog-shopline-pink {
  border: none;
  height: 4px;               /* thickness of the line */
  background-color: rgb(197, 93, 195); /* your chosen color */
  margin: 0.5rem 0;            /* optional spacing above/below */
  width: 100%;               /* full width */
}

.vertical-centered-text {
  display: flex;
  flex-direction: column;   /* stack h3 and p vertically */
  justify-content: center;  /* center them vertically */
  height: 100%;             /* ensure it fills the parent row height */
}



.blog-row .blog-text {
  flex: 1 1 50%;
}

/* Alternate layout: image right */
.blog-row.image-right {
  flex-direction: row-reverse;
}

/* Text-only layout */
.blog-row.text-only {
  flex-direction: column;
}

.blog-row.text-only .blog-text {
  flex: 1 1 100%;
}

/* ===== TYPOGRAPHY (Woodrock-style) ===== */
.blog-row h2 {
  color: black;
  font-size: 2rem;        /* ~32px */
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.blog-row h3 {
  font-size: 1.5rem;      /* ~24px */
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.blog-row p {
  font-size: 1.125rem;    /* ~18px */
  line-height: 1.6;
  margin-bottom: 1rem;
  color: #333;
}

.blog-row .btn {
  font-size: 1rem;        /* ~16px */
  padding: 0.6rem 1.2rem;
}

/* 1. Flex wrapper at ~75% of viewport height */
.blog-row.image-left {
  display: flex;
  align-items: stretch;
  height: 65vh;                /* 65% of viewport height */
  box-sizing: border-box;
  overflow: hidden;            /* prevent overflow from children */
}

/* .blog-row.image-left.two-images {
  height: 75vh;           /* fixed row height */
/* } */

.blog-row.image-left.two-images .blog-image {
  flex: 1;                /* each image block takes half the row */
  display: flex;
  flex-direction: column; /* keep heading + image stacked */
  justify-content: center;
}

.blog-row.image-left.two-images .blog-image img {
  max-height: 85%;   /* shrink to fit container height */
  width: auto;        /* keep aspect ratio */
  object-fit: contain; /* no cropping, shrink proportionally */
  margin: 0 auto;     /* center horizontally */
}

/* 2. Left column: fixed aspect, covers full height */
.blog-row.image-left .blog-image {
  flex: 0 0 50%;               /* 40% of container width */
  position: relative;
}

/* Make the img fill the column, cropping as needed */
.blog-row.image-left .blog-image img {
  width: 100%;
  height: 100%;
  object-fit: scale-down;
  object-position: center;
  display: block;       /* ensure margin:auto works */
  margin: 0 auto;       /* center any extra space */
}

/* 3. Right column: takes remaining space, scrolls if too tall */
.blog-row.image-left .blog-text {
  flex: 1;                     /* fill remaining width */
  padding: 0 1rem 0 1rem;               /* adjust as you like */
  overflow-y: auto;            /* scroll if content exceeds height */
  box-sizing: border-box;
}

/* 4. Responsive fallback for narrow screens */
@media (max-width: 1200px) {
  .column {
    display: block;
    width: 100%;
  }

  .blog-row.image-left,
  .blog-row.image-right {
    flex-direction: column;
    height: auto;              /* let height expand */
    margin: 1rem;
  }

  .blog-row.image-left .blog-image,
  .blog-row.image-left .blog-text,
  .blog-row.image-right .blog-image,
  .blog-row.image-right .blog-text {
    flex: none;
    width: 100%;
    height: auto;
  }

  .blog-row {
    flex-direction: column;
  }

  .blog-row.image-right {
    flex-direction: column; /* override reverse on mobile */
  }

  .blog-row .blog-image,
  .blog-row .blog-text {
    flex: none;
    width: 100%;
    height: auto;
  }

  /* 🔎 Special case: two-images layout */
  .blog-row.image-left.two-images {
    flex-direction: column;   /* stack images vertically */
    height: auto;             /* let them shrink naturally */
  }

  .blog-row.image-left.two-images .blog-image {
    width: 100%;              /* full width on mobile */
    height: auto;
    margin-bottom: 1rem;      /* spacing between stacked images */
  }

  .blog-row.image-left.two-images .blog-image img {
    max-width: 100%;          /* shrink to fit container */
    height: auto;             /* keep aspect ratio */
    object-fit: contain;      /* no cropping */
  }

  .second {
    order: -1; /* show second div first */
  }


}


@media (max-width: 700px) {
.header-description {
  display: none;
  }
}

/* ===== MOBILE NAV ===== */
@media (max-width: 768px) {
  .page-header.home {
    min-height: 80px;
  }

  .blog-row.image-left.two-images {
    flex-direction: column;
    height: auto;
    margin: 0.5rem;
  }

  .blog-row.image-left.two-images .blog-image {
    width: 100%;
    margin-bottom: 0.75rem;
  }

  .blog-row.image-left.two-images .blog-image img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
  }


  
 
  .page-nav li {
    /*  padding: 0.5rem 1rem; */
    /* padding: clamp(0.3rem, 1vw, 0.5rem) clamp(0.1rem, 1vw, 1rem); */
    padding: 0px;
    margin: 0px;
  }

  .page-nav li a.btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    flex-shrink: 1;
  }

  .hero-content {
    padding: 1rem;
  }

  .hero-image-fallback {
    display: none;
  }
  
  .mobile-only {
    display: block;
  }

  .hero-image-fallback.mobile-only {
    display: block;
  }

  .section {
    padding: 2rem 1rem;
  }

  .hero-overlay h1 {
    font-size: 1.8rem;
  }

  .hero-overlay p {
    font-size: 1rem;
  }

  /* Mobile view: stack image and text */
  .blog-row {
    flex-direction: column;
  }
  .blog-row.image-right {
    flex-direction: column; /* override reverse on mobile */
  }
  .blog-row .blog-image,
  .blog-row .blog-text {
    flex: none;
    width: 100%;
    height: auto;
  }

  /* Mobile typography scaling */
  .blog-row h2 {
    font-size: 1.5rem;    /* ~24px */
  }
  .blog-row h3 {
    font-size: 1.25rem;   /* ~20px */
  }
  .blog-row p {
    font-size: 1rem;      /* ~16px */
  }
} 

/* ===== VERY SMALL SCREENS ===== */
@media (max-width: 420px) {

  .hideHeaderIcon {
    display: none !important;
  }
}

@media (max-width: 480px) {

  .footer-bar {
    justify-content: center;
  }

  .footer-menu {
    justify-content: center;
  }

  .page-nav li a.btn {
    font-size: 0.7rem;
    padding: 0.4rem 0.8rem;
  }
}

/* Each slot wrapper */
.sub-image-wrapper {
  position: relative;
  aspect-ratio: 1 / 1;   /* force square */
  overflow: hidden;
  border-radius: 6px;
  transition: transform 0.3s ease; /* smooth zoom */
}

/* Hover zoom effect */
.sub-image-wrapper:hover {
  transform: scale(2);   /* doubles size */
  z-index: 20;           /* float above neighbors */
  box-shadow: 0 8px 20px rgba(0,0,0,0.25); /* subtle shadow */
  cursor: pointer;
}

/* Images inside wrapper */
.sub-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Placeholder slots */
.sub-image-wrapper.placeholder {
  border: 2px dashed #ccc;
  background: #f5f5f5;
}

.sub-image-wrapper.placeholder img { 
  opacity: 0.99; /*: make it look distinct */
} 

.sub-image-wrapper.placeholder::after {
  content: "More photos coming soon";
  font-size: 1rem;
  color: yellow;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.sub-image-wrapper.placeholder:hover {
  border-color: #999;
  opacity: 0.9;
}

/* Make the row stretch both columns equally */
#dogInfoSection .row {
  align-items: stretch; /* equal height columns */
}

/* END OF DOGS PAGE */


/* FOOTER */
/* ====== FIXED, SCROLL-AWARE FOOTER BANNER ====== */
.fixed-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color:  rgb(181, 192, 176) !important;
  /* background-color: #d9b989 !important; */
  /* box-shadow: 0 -1px 6px rgba(0, 0, 0, 0.1); */
  box-shadow: 0;
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
  z-index: 1000;
}

.fixed-footer,
.page-footer {
  width: 100%;
  margin: 0;
  padding: 0;
}

.fixed-footer.show {
  transform: translateY(0);
}

/* ====== FOOTER BAR & MENU BASE ====== */

.footer-menu a {
  text-decoration: none;
  color: black;/* #59133c; */
  font-weight: 500;
  padding: 0.25rem 0.25rem;
  border-radius: 4px;
  white-space: nowrap; 
}

.footer-menu a:hover {
  color: #e92497;
  font-size: 1.2rem !important;}

/* collapse/expand logic */
.footer-menu-more,
.footer-menu-all {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.footer-menu-more.show,
.footer-menu-all.show {
  max-height: 500px;
}

/* toggle button */
.footer-menu-toggle {
  background: none;
  border: 1px solid #ccc;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
}

/* ====== RESPONSIVE LAYOUT ====== */
.footer-nav {
  flex: 1 1 auto;               /* take up remaining space */
  display: flex;
  justify-content: flex-end;   /* push menu items to the right */
  align-items: center;
  gap: 1rem;
}




/* Small screens (≤767px) */
@media (max-width: 767px) {
  .footer-menu-main,
  .footer-more-wrapper {
    display: none;
  }

  .footer-menu-all {
    display: none;
    flex-direction: column;
    background: #fff;
    padding: 0.5rem;
    border-radius: 4px;
    /* box-shadow: 0 2px 6px rgba(0,0,0,0.1); */
    box-shadow: 0;
    width: 100%;
  }

  .footer-menu-all.show {
    display: flex;
  }

  .all-toggle {
    display: inline-block;
  }
}

@media (max-width: 852px) {
  .header-description {
    max-width: 230px;
  }
}

/* Medium screens (768–991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .footer-nav {
    flex: 1 1 auto; 
    display: flex;
    align-items: center;
    justify-content: flex-end; /* push menus to the right */
    gap: 1rem;
  }

  .footer-menu-main {
    display: flex;
    gap: 1rem;
  }

  .footer-more-wrapper {
    position: relative;
    display: flex;
    align-items: center;
  }

  .footer-menu-more {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem;
    background: #fff;
    border-radius: 4px;
    /* box-shadow: 0 2px 6px rgba(0,0,0,0.1); */
    box-shadow: 0;
  }

  .footer-menu-more.show {
    display: flex;
  }

  .more-toggle {
    display: inline-block;
  }

  .all-toggle,
  .footer-menu-all {
    display: none;
  }
}

/* Large screens (≥992px) */
@media (min-width: 992px) {
  .footer-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: flex-end; /* push menus to the right */
  }

  .footer-menu-main,
  .footer-menu-more {
    display: flex;
    gap: 1rem;
    max-height: none;
    overflow: visible;
  }

  .footer-more-wrapper {
    display: flex;
    align-items: center;
  }

  .footer-menu-toggle,
  .footer-menu-all {
    display: none;
  }
}

.footer-bar {
  display: flex;
  justify-content: flex; /* logo left, nav right */
  align-items: center;
  flex-wrap: nowrap; /* prevent wrapping on desktop */
  padding: 0.5rem 1rem;
  width: 100%;
  max-width: none;
  margin: 0;
  gap: 1rem; /* space between logo/counter/nav */
}

.footer-bar .site-logo {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
}

.footer-bar .site-logo img {
  display: block;
  margin: 0;
}

.footer-bar .footer-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end; /* push menus to the right */
  align-items: center;
  gap: 1rem;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 0 0 auto;
}

.footer-menu {
  display: flex;
  flex-wrap: nowrap; /* keep items in a row */
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-menu a {
  white-space: nowrap; /* stop text wrapping */
}

@media (max-width: 767px) {
  .footer-bar {
    flex-wrap: nowrap;
  }

  .footer-nav {
    justify-content: flex-end;
  }
}

.visit-counter {
  font-size: 1rem;
  color: #333;
  white-space: nowrap;
}

.hide-on-mobile {
  display: list-item !important; /* Or block, depending on desired layout */
}

@media (max-width: 767px) {
  .hide-on-mobile {
    display: none !important; /* Hide the element */
  }

  .visit-counter {
    font-size: 0.8rem;
  }
  .footer-bar {
    padding: 0.5rem;
  }
}

@media (max-width: 480px) {
  .visit-counter {
    display: none;
  }
}

/* ADMIN */
.admin-login-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: url('../images/DogCallOperator.jpeg') no-repeat center center;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 0;
}

.admin-login {
  width: 320px;
  padding: 24px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
  z-index: 1;
  position: relative;
}

.admin-login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-login-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
}

.admin-login-form input {
  padding: 0.5rem 0.65rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-weight: 400;
}

.admin-login-error {
  color: #b00020;
  margin-bottom: 0.75rem;
}

.admin-dashboard {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1rem 5rem;
}

.admin-panel {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.admin-logout {
  margin-top: 1.5rem;
}

.admin-stats-table {
  width: 100%;
  max-width: 480px;
  margin-top: 1rem;
  border-collapse: collapse;
}

.admin-stats-table th,
.admin-stats-table td {
  padding: 0.5rem 0.75rem;
  text-align: left;
}

.admin-stats-note {
  max-width: 560px;
  font-size: 0.95rem;
  color: #555;
}

.admin-dashboard-wide {
  max-width: 1100px;
}

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0 1.5rem;
}

.admin-nav a {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: #f0ebe3;
  color: #333;
  text-decoration: none;
  font-weight: 600;
}

.admin-nav a.active,
.admin-nav a:hover {
  background: #8b6914;
  color: #fff;
}

.admin-flash {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.admin-flash-success {
  background: #e8f5e9;
  color: #1b5e20;
}

.admin-flash-error {
  background: #ffebee;
  color: #b71c1c;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 560px;
}

.admin-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
}

.admin-form input[type="text"],
.admin-form input[type="url"],
.admin-form input[type="number"],
.admin-form input[type="file"],
.admin-form select {
  padding: 0.5rem 0.65rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-weight: 400;
}

.admin-form-actions,
.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.admin-size-fieldset {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 1rem;
}

.admin-size-row {
  display: grid;
  grid-template-columns: 1fr 120px auto;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.admin-remove-size {
  border: none;
  background: #eee;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

.admin-products-table {
  max-width: none;
}

.admin-product-thumb {
  width: 40px;
  height: 40px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 0.35rem;
}

.admin-quick-links {
  padding-left: 1.25rem;
}

.admin-help {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: #555;
}

.admin-row-actions {
  white-space: nowrap;
}

.admin-row-actions a,
.admin-inline-form {
  display: inline;
  margin-right: 0.5rem;
}

.admin-inline-form {
  display: inline;
}

.admin-link-button {
  border: none;
  background: none;
  color: #8b6914;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font: inherit;
}

.admin-link-danger {
  color: #b00020;
}

.admin-delete-form {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #ddd;
}

.admin-btn-danger {
  background-color: #b00020;
  border-color: #b00020;
}

.admin-btn-danger:hover {
  background-color: #8f001a;
  border-color: #8f001a;
}

.admin-subheading {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.1rem;
}

.admin-category-order {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  max-width: 560px;
}

.admin-category-order li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.5rem;
  background: #faf8f5;
  border: 1px solid #e6dfd4;
  border-radius: 6px;
}

.admin-category-order-label code {
  margin-left: 0.5rem;
  font-size: 0.85em;
}

.admin-category-order-actions {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
}
/* ===================================================================*/
/* reusable Modal INFO (currently only used for payment details)*/
/* =================================================================== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; 
  height: 100%;
  background-color: rgba(0,0,0,0.6); /* this darkens the page behind */
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-content {
  background: #f3f2ed !important;          /* solid white background */
  color: black !important;               /* dark text for readability */
  width: 70%;
  max-width: 400px;
  padding: 0.5%;
  /* border: 5px solid rgb(127, 174, 104) !important; */
  border-radius: 20px !important;
  position: relative;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.9); /* adds depth */
  backdrop-filter: none; 
}

#paymentImage {
  border-radius: 20px !important;
}

.modal-logo img {
  margin-bottom: 0px !important;
} 

#modalTitle {
  margin-top: 0px !important;
} 
.close-btn {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 24px;
  cursor: pointer;
}

.modal-body {
  text-align: center;
  margin: 0px;
}

.modal-body p {
  margin: 0.5rem 0;
  font-size: 1rem;
  line-height: 1.5;
}

.modal-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}


/* Icon buttons on smaller screens */
.btn-icon {
  display: none;
  width: 20px;
  height: 20px;
  margin: 0px 8px 0px 0px;
  display: none;
}

.btn-text {
  display: none;
  color: white !important;
  justify-content: center;
  align-items: center;
  font-size: 12px !important;
  cursor: pointer;
}

.btn-text:hover,
.btn-icon {
  color: #e673c0 !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4); /* optional for crispness */
}

.btn-icon-footer {
  display: inline-flex;
  width: 60px;
  height: 60px;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0px 20px 0px 0px;
  background: none;
  border: none;
  text-decoration: none;
  /* box-sizing: border-box; */
}

.btn-icon-footer:hover {
 font-size: 2rem !important;
}

.btn-right {
  margin-right: 20rem;
}

/* Small screens: hide full button, show icon-only */
@media (max-width: 1000px) {
  
  .btn-icon {
    display: inline-flex;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0px 20px 0px 0px;
    background: none;
    border: none;
    text-decoration: none;
    /* box-sizing: border-box; */
  }
  
  .my-btn {
    display: none;
  }

  .btn-text {
    display: block;
    color: white !important;
    justify-content: center;
    align-items: center;
    font-size: 12px !important;
    cursor: pointer;
  }
}

.bold_underline {
  font-weight: bold;
  text-decoration-line: underline;
}

@media only screen and (max-width: 480px) {

  /* Small variant for mobile only */
  .btn--small {
    width: auto;               /* don't stretch full width */
    max-width: 180px !important;         /* fixed compact cap */
    padding: 0.21rem 0.6rem;  /* tighter padding */
    font-size: 0.62rem !important;       /* smaller text */
    border-radius: 16px;
    min-height: 30px !important;         /* keep an accessible touch target */
  }

  /* Optional: keep it centered inside wrappers that still use full-width layout */
  .button-wrapper .btn--small {
    justify-self: center;
  }

  .btn-icon,
  .btn-icon-footer {
    margin: 0px 5px 0px 5px;
  }
}

.blog-background-hero {
  position: relative;
  background-image: url('../images/DogBonesPawsBackgroundHalfSize.jpeg');
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 100%;
  min-width: 300px;
  min-height: 400px;        /* adjust as needed */
  padding: 2px;            /* space around text */
  display: flex;
  flex-direction: column;   /* stack children vertically */
  align-items: center;  /* align text to the left (or use center/right) */
  justify-content: center; /* start at the top */
}


.blog-text-on-background {
  color: black;
  max-width: 800px;         /* keeps text readable */
  background: transparent !important; /*optional overlay for readability */
  padding: 15px;
  border-radius: 6px;
}

.text_blue {
  color: blue !important;
}

.text_bold {
  font-weight: bold !important;
  text-decoration: underline;
}

@media (max-width: 1200px) {
  .blog-background-hero {
    width: 100%;     /* adjust as needed */
  }
}

/* Large screens: center and limit to 40% of viewport width */
@media (min-width: 1200px) {
  .blog-image.imageLargeScreens img {
    width: 50vw;     /* 40% of viewport width */
    max-height: auto; /* optional: cap max size */
    display: block;
    margin: 0 auto;  /* center horizontally */
  }

  .btnfixMaxLength {
    max-width:  30vw !important;
  }
}

/* ================================
CHARITY SHOP – RESPONSIVE GRID
================================ */

/* Main container */
.shop-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 15px;
  scroll-margin-top: 120px;
}

.shop-container h1 {
  text-align: center;
  margin-bottom: 10px;
}

.shop-intro {
  text-align: center;
  margin-bottom: 40px;
  color: #555;
}

/* Category headings */
.shop-category {
  margin: 40px 0 20px;
  text-align: center;
}

/* ================================
   CATEGORY GRID LAYOUT
   ================================ */

.shop-category-grid {
  display: grid;
  gap: 20px;
  align-items: stretch; /* ✅ THIS IS IMPORTANT */
  margin-bottom: 20px;
}

/* Desktop */
@media (min-width: 1024px) {
  .shop-category-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Tablet */
@media (min-width: 821px) and (max-width: 1023px) {
  .shop-category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablet */
@media (min-width: 521px) and (max-width: 820px) {
  .shop-category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 520px) {
  .shop-category-grid {
    display: grid;
    grid-template-columns: 1fr; /* ✅ single column */
    gap: 16px;
  }

  .shop-item {
    width: 100%;
  }
}

/* ================================
   SHOP ITEM (CARD)
   ================================ */

.shop-item {
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 6px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  height: 100%; /* ✅ key for equal heights */
  align-items: center;
}

/* Hover polish */
.shop-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
  transition: all 0.2s ease;
  border: 2px solid rgb(181, 192, 176) !important;
}

/* Product image */
.shop-item-image {
  width: 100%;
  height: 120px;           /* ✅ fixed visual height */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.shop-item-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;     /* ✅ prevents cropping */
  display: block;
  margin: 0 auto 10px;
}

/* Item info */
.shop-item-info {
  width: 100%;  
  display: flex;
  flex-direction: column;
  flex-grow: 1;   /* ✅ pushes actions downward */
}

/* Description / name */
.shop-item-description {
  font-size: 0.85em;
  font-weight: 600;
  text-align: center;
  margin-bottom: 8px;
  color: #333;
  min-height: 2.4em; /* ✅ reserves space even for short names */
}

/* ================================
   SIZES & QUANTITIES
   ================================ */

.shop-item-sizes {
  width: 100%;
}

/* Single size row */

.size-row {
  display: grid;
  grid-template-columns: 52px 52px 30px 45px;
  align-items: center;
  gap: 6px;
  font-size: 0.8em;
  margin-bottom: 6px;
  white-space: nowrap;
}



/* Size name */
.size-name {
  font-weight: 600;
}

/* Price */
.size-price {
  color: #555;  
  min-width: 48px;
  text-align: right;  
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

/* Qty input */
.size-row input[type="number"] {
  width: 45px;
  padding: 3px;
  font-size: 0.85em;
  flex-shrink: 0;
}

.item-total {
  margin-top: auto;
  text-align: center;
  font-size: 0.8em;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}


.shop-summary button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}


/* Remove extra spacing on last row */
.size-row:last-child {
  margin-bottom: 0;
}

.size-row.active {
  background-color: rgb(181, 192, 176) !important;
  border-radius: 4px !important;
  padding-left: 5px;
  padding-right: 2px;
}

.shop-item.active {
  border-color:  rgb(181, 192, 176) !important;
  border-radius: 10px !important;
  background-color:  rgb(226, 234, 221) !important;
}

/* Toggle button */
.size-toggle {
  width: 100%;
  background: #f4f6f8;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 6px 8px;
  font-size: 0.8em;
  cursor: pointer;
  margin-top: auto;     /* ✅ pushes it to same vertical level */
  margin-bottom: 8px;
}

/* Hover feedback */
.size-toggle:hover {
  background: #e9eef3;
}

/* Sizes collapsed by default */
.shop-item-sizes {
  display: none;
}

/* Sizes visible when open */
.shop-item.open .shop-item-sizes {
  display: block;
}

/* Rotate arrow when open */
.shop-item.open .size-toggle {
  background: #e9eef3;
}

.shop-item-image {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-item-image img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

/* ================================
   CHECKOUT AREA
   ================================ */

.shop-summary {

  text-align: center;
  margin-top: 40px;
  padding: 12px 15px;   /* ✅ desktop & tablet padding */
  box-sizing: border-box

}

.shop-summary button {
  padding: 15px 40px;
  font-size: 1.1em;
  cursor: pointer;
}

.note {
  font-size: 0.85em;
  color: #666;
  margin-top: 10px;
}


/* Donation checkbox */
.donation-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.85em;
  color: #333;
}

.donation-option input {
  transform: scale(1.1);
}

.shop-summary.donation-active {
  background-color: #f6fff8;
  border-top: 3px solid #e673c0 !important;
}


/* ================================
   DIVIDERS
   ================================ */

.blog-line {
  border: none;
  border-top: 1px solid #ddd;
  margin: 40px 0;
}

.blog-shopline {
  border: none;
  border-top: 1px solid #ddd;
  margin: 20px 0;
}

/* ================================
   ORDER CONFIRMATION MODAL
   ================================ */

   .order-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
  }

  
  .hidden {
    display: none !important;
  }

  
  .order-modal.hidden {
    display: none;
  }
  
  .order-modal-box {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    max-width: 420px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
  }
  
  .order-total {
    font-weight: bold;
    margin-top: 12px;
  }
  
  .order-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
  }
  
  .order-actions button {
    flex: 1;
    padding: 12px;
    cursor: pointer;
  }
  
  .delivery-option {
    margin-bottom: 12px;
    font-size: 0.9em;
    text-align: left;
  }
  
  .delivery-option p {
    margin-bottom: 6px;
  }
  
  .delivery-option label {
    display: block;
    margin-bottom: 4px;
    cursor: pointer;
  }
  
  .delivery-note {
    font-size: 0.8em;
    color: #666;
    margin-top: 4px;
  }

    /* Spacer to prevent sticky checkout overlap */
    .shop-summary-spacer {
      display: none;
    }

    
  /* Order fulfilment header row */
    .delivery-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 6px;
      width: 100%;
    }

    /* Small clear-selection button / link */
    .clear-selection-link {
      background: none;
      border: none;
      padding: 0;
      font-size: 0.75em;
      color: #888;
      cursor: pointer;
      text-decoration: underline;
      margin-left: auto
    }

    .clear-selection-link:hover {
      color: #333;
    }
  
    .yoco-repeat-info-note {
      margin-top: 6px !important;
      font-size: 0.8em;
      color: #666;
      text-align: center;
    }

    .toggle-info {
      cursor: pointer;
    }
    .toggle-hint {
      font-size: 0.8em;
      color: #777;
      margin-left: 6px;
    }
/* ================================
   STICKY CHECKOUT (MOBILE)
   ================================ */

   @media (max-width: 852px) {
    .shop-summary {
      position: fixed;
      bottom: 0;
      left: 0;
      width: 100%;
      background: #ffffff;
      box-shadow: 0 -4px 12px rgba(0,0,0,0.12);
      margin: 0;
      z-index: 999;      
      /* ✅ ADD THIS */
      box-sizing: border-box;
      padding: calc(12px + env(safe-area-inset-bottom)) 15px;
    }
  
    .shop-summary button {
      width: 100%;
      padding: 16px;
      font-size: 1.1em;
    }
  
    .shop-summary .note {
      display: none; /* reduce clutter on mobile */
    }

    .donation-option {
      margin-bottom: 8px;
      font-size: 0.8em;
    }

    .shop-summary-spacer {
      display: block;
      height: calc(var(--sticky-summary-height) + env(safe-area-inset-bottom));
    }
    
    
    .delivery-option,
    .delivery-header {
      width: 100%;
      text-align: left;
    }

    
    .delivery-header {
      display: flex;
      align-items: center;
    }

    .clear-selection-link {
      margin-left: auto;
    }

    
    /* ✅ Exempt Clear button from full-width mobile rule */
    .shop-summary .clear-selection-link {
      width: auto !important;
      display: inline-flex;
      margin-left: auto;
    }


  }

  /* ================================
   DELIVERY OPTIONS INSIDE ORDER MODAL
   ================================ */

.order-modal .delivery-option {
  margin-top: 10px;
  margin-bottom: 8px;
  font-size: 0.85em;
  padding-top: 10px;
  border-top: 1px solid #eee;
}

.order-modal .delivery-option label {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 6px;
}

.order-modal .delivery-option input[type="radio"] {
  margin-top: 2px;
}

.order-modal .delivery-note {
  font-size: 0.75em;
  margin-top: 2px;
  margin-left: 22px; /* aligns under label text */
  color: #777;
}

.order-modal #deliveryAddressBlock {
  margin-top: 8px;
}

.order-modal #deliveryAddress {
  width: 100%;
  box-sizing: border-box;
  font-size: 0.9em;
}

/* Extra spacing above Order fulfilment header (modal only) */
.order-modal .delivery-header {
  margin-top: 50px;
}

.order-modal-box h3, .order-donation, .order-total {
  text-align: center;
}

.buyer-warning {
  background: #fff5f8;
  border-left: 4px solid #c89bc8;
  padding: 12px;
  margin-bottom: 15px;
  font-size: 0.75em;
  color: #444;
  justify-content: center;
}



/* ================================
   TAB VISIBILITY CONTROL
   ================================ */

.shop-category-block {
  display: none;
  margin-bottom: 25px;
}

.shop-category-block.active-category {
  display: block;
}


/* TABS MODE: category content always visible */
.shop-category-content {
  display: block !important;
}

/* ============================================= */

/* ================================
   BORDERED PAGE TABS
   ================================ */

  
/* ================================
   SHOP CATEGORY TABS – REAL TABS
   ================================ */

   .shop-tabs {
    display: flex;
    gap: 0;
    justify-content: center;
    flex-wrap: wrap;
    background: #ffffff;
    padding: 0 6px;                 /* ✅ no vertical padding */
    margin: 20px 0 0;               /* ✅ remove bottom gap */
    border-bottom: 2px solid #ddd;  /* ✅ main tab line */
  }
  
  /* Individual tab */
  .shop-tab {
    background: #f4f6f8;
    border: 1px solid #ddd;
    border-bottom: none;            /* ✅ key for tab effect */
    border-radius: 6px 6px 0 0;     /* ✅ rounded top only */
    padding: 6px 12px;
    cursor: pointer;
    font-size: 0.8em;
    color: #555;
    margin-bottom: -2px;            /* ✅ pull tab onto line */
    transition: background 0.15s ease;
  }
  
  /* Active tab */
  .shop-tab.active {
    background: #ffffff;
    color: #000;
    font-weight: 600;
    border-color: #2e7d32;
  }
  
  /* Hover */
  .shop-tab:hover {
    background: #e9eef3;
  }
  
  .shop-subtabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 12px 0 22px;
    flex-wrap: wrap;
  }
  
  .shop-subtabs.hidden {
    display: none;
  }
  
  .shop-subtab {
    padding: 5px 12px;        /* slightly smaller than before */
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    border-radius: 10px;      /* keep pill style */
    font-size: 0.8em;         /* ✅ same as main tabs */
    color: #555;
    line-height: 1;
  }
  
  
  .shop-subtab.active {
    background: #ece4ee;
    border-color: #b30db3;
    font-weight: 600;
  }
  

/* Mobile friendliness */

@media (max-width: 768px) {
  .shop-tabs {
    top: 64px; /* match your mobile header height */
    padding: 8px 6px;
  }
}


@media (max-width: 640px) {
  .shop-tabs {
    justify-content: flex-start;
  }

  .shop-tab {
    flex: 0 0 auto;
  }
}

@media (max-width: 640px) {
  .shop-subtabs {
    gap: 8px;               /* slightly tighter, still centered */
  }

  .shop-subtab {
    padding: 4px 10px;
    font-size: 0.75em;
  }
}


  .line-strike {
    text-decoration: line-through;
}

/* ================================
   Shop Success Confirmation page
   ================================ */

.shop-success-page {
  max-width: 720px;
  margin: 40px auto 60px;
  padding: 32px 28px;
  background-color: #ffffff;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  text-align: center;
  line-height: 1.6;
}

.shop-success-page h1 {
  font-size: 1.9rem;
  margin-bottom: 18px;
  color: #2e7d32; /* soft green for success */
}

.shop-success-page h1::before {
  content: "✓ ";
  font-weight: bold;
}

.shop-success-page p {
  font-size: 1rem;
  color: #444;
  margin-bottom: 16px;
}

.shop-success-page strong {
  display: inline-block;
  color: #222;
  font-weight: 600;
}

.shop-success-page p strong {
  font-size: 0.95rem;
}

.shop-success-page p:nth-of-type(2),
.shop-success-page p:nth-of-type(3) {
  background: #f7f9f7;
  padding: 12px 14px;
  border-radius: 8px;
}

.shop-success-page a {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 22px;
  border-radius: 999px;
  background-color: #2e7d32;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.shop-success-page a:hover {
  background-color: #256628;
}

.shop-success-page::before {
  content: "🐾";
  display: block;
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.success-order-items {
  margin-top: 24px;
  text-align: center;
}

.success-order-items h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: #2e7d32;
}

.success-order-items ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.success-order-items li {
  padding: 12px 0;
  border-bottom: 1px dashed #ddd;
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  .shop-success-page {
    margin: 24px 16px 40px;
    padding: 24px 18px;
  }

  .shop-success-page h1 {
    font-size: 1.6rem;
  }
}

/* @media (max-width: 640px) {
  .size-row {
    grid-template-columns: 1fr auto;
    white-space: normal;
    row-gap: 4px;
  }

  .size-name {
    grid-column: 1 / -1;
  }

  .size-price {
    text-align: left;
  }

  .size-row input[type="number"] {
    width: 60px;
    justify-self: end;
  }
} */

/* ================================
   GLOBAL PAGE LOADER
================================ */

.page-loader {
  position: fixed;
  inset: 0;

  width: 100vw;
  height: 100vh;

  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-loader.hidden {
  display: none;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #ddd;
  border-top-color: #cc73f3;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}


.loader-logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;          /* ✅ makes logo round */
  object-fit: cover;           /* ✅ avoids stretching */
  opacity: 0.25;
  display: block;
}

/* spinning animation */
.loader-logo.spinning {
  animation: spin 1s linear infinite;
}


.loader-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.spinner.small {
  width: 28px;
  height: 28px;
  border-width: 3px;
}


.page-loader img {
  flex-shrink: 0;
}




@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
