/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  line-height: 1.6;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #2d2d2d;
  background-color: #f5f2ee;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  margin-bottom: 1rem;
  line-height: 1.3;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: #333;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Extended Header */
.site-header-extended {
  background-color: #fff;
  border-bottom: 1px solid #ece8e1;
  padding: 1.25rem 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.profile-image img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.header-text .site-title {
  font-size: 1.8rem;
  font-weight: bold;
  line-height: 1.2;
  margin: 0;
  color: #333;
}

.site-tagline {
  font-size: 1rem;
  color: #666;
  margin: 0.25rem 0 0 0;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.search-container {
  position: relative;
  display: flex;
  align-items: center;
  background-color: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 0.5rem;
}

.search-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 4px 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.search-dropdown li a {
  display: block;
  padding: 0.6rem 0.8rem;
  text-decoration: none;
  color: #333;
  font-size: 0.9rem;
}

.search-dropdown li a:hover {
  background-color: #f5f5f5;
}

.search-dropdown-empty {
  padding: 0.6rem 0.8rem;
  color: #999;
  font-size: 0.9rem;
}

.search-input {
  border: none;
  background: none;
  padding: 0.25rem;
  font-size: 0.9rem;
  width: 150px;
}

.search-input:focus {
  outline: none;
}

.search-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.cart-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cart-link {
  color: #333;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.cart-count {
  background-color: #e8a030;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
}

.signin-link {
  color: #666;
  font-size: 0.9rem;
}

/* Main content */
.main-content-alt {
  background-color: #f5f2ee;
  min-height: calc(100vh - 200px);
}

/* Hero section */
.hero-section {
  background-color: #fff;
  padding: 3rem 0;
  text-align: center;
}

.hero-text {
  max-width: 1000px;
  margin: 0 auto;
}

.super-stories {
  font-size: 4rem;
  font-weight: bold;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.super-stories {
  background: linear-gradient(45deg, #4ecdc4, #ff6b9d, #ff8c42, #4ecdc4);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient 3s ease infinite;
}

@keyframes gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.project-announcement {
  font-size: 2.5rem;
  font-weight: normal;
  color: #333;
  margin-top: 1rem;
  line-height: 1.2;
}

/* Feature sections */
.feature-sections {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.feature-image {
  height: 200px;
  overflow: hidden;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-content {
  padding: 1.5rem;
}

.feature-content h4 {
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.feature-content p {
  color: #666;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.feature-btn {
  background-color: #333;
  color: white;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background-color 0.3s ease;
}

.feature-btn:hover {
  background-color: #555;
  text-decoration: none;
}


/* Footer */
.site-footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 2rem 0;
  margin-top: auto;
}

/* About page styles */
.about-hero {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e0e0e0;
}

.about-hero h2 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 1rem;
}

.about-intro {
  font-size: 1.25rem;
  color: #666;
  margin-bottom: 0;
}

.about-story {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.story-content h3 {
  color: #333;
  margin: 2rem 0 1rem 0;
  font-size: 1.3rem;
}

.story-content p {
  margin-bottom: 1.5rem;
  color: #555;
}

.about-cta {
  text-align: center;
  margin-top: 3rem;
  padding: 2rem;
  background-color: #f8f9fa;
  border-radius: 8px;
}

.btn-cta {
  background-color: #333;
  color: white;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 4px;
  font-size: 1.1rem;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btn-cta:hover {
  background-color: #555;
  text-decoration: none;
}

/* Page navigation styles */
.page-navigation {
  background-color: #1e2d40;
  margin: 0;
  border-bottom: none;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 0;
  padding: 0 1rem;
}

.nav-item {
  padding: 1rem 1.75rem;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: color 0.2s ease;
  border-bottom: 3px solid transparent;
}

.nav-item:hover {
  color: rgba(255, 255, 255, 0.9);
  background-color: transparent;
  text-decoration: none;
}

.nav-item.active {
  color: #fff;
  background-color: transparent;
  border-bottom-color: #e8a030;
}

.nav-item.active:hover {
  color: #fff;
  background-color: transparent;
}

/* Page content */
.page-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem 2rem;
}

.page-header {
  text-align: center;
  padding: 2rem 1rem 1rem;
  margin-bottom: 1.25rem;
}

.page-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: #1e2d40;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 0;
}

.page-title::after {
  content: '';
  display: block;
  width: 44px;
  height: 3px;
  background-color: #e8a030;
  margin: 1rem auto 0;
  border-radius: 2px;
}

.page-subtitle {
  margin-top: 1rem;
  color: #666;
  font-size: 1.1rem;
}

/* Contact page styles */
.contact-hero {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e0e0e0;
}

.contact-hero h2 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 1rem;
}

.contact-intro {
  font-size: 1.25rem;
  color: #666;
  margin-bottom: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.contact-info h3 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 1.5rem;
}

.contact-details {
  margin-bottom: 2rem;
}

.contact-item {
  margin-bottom: 1rem;
  display: flex;
  gap: 1rem;
}

.contact-item strong {
  color: #333;
  min-width: 80px;
}

.contact-item a {
  color: #007acc;
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}

.contact-services h4 {
  color: #333;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.contact-services ul {
  list-style: none;
  padding: 0;
}

.contact-services li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
  color: #555;
}

.contact-services li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #4ecdc4;
  font-weight: bold;
}

.contact-form h3 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #333;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #4ecdc4;
  box-shadow: 0 0 0 2px rgba(78, 205, 196, 0.2);
}

.btn-submit {
  background-color: #333;
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-submit:hover {
  background-color: #555;
}

/* Books page styles */
.books-hero {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e0e0e0;
}

.books-hero h2 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 1rem;
}

.books-grid {
  max-width: 800px;
  margin: 0 auto;
}

.book-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.book-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.book-content {
  padding: 2rem;
}

.book-content h3 {
  color: #333;
  margin-bottom: 1rem;
}

.book-content h4 {
  color: #333;
  margin: 1.5rem 0 0.5rem 0;
}

.book-content ul {
  margin-bottom: 2rem;
}

.book-content li {
  margin-bottom: 0.5rem;
  color: #555;
}

.book-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #1e2d40;
  color: #fff;
  border: none;
  border-radius: 7px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-primary:hover {
  background: #2d4460;
  color: #fff;
  text-decoration: none;
}

.btn-secondary {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  background: transparent;
  color: #1e2d40;
  border: 1.5px solid #1e2d40;
  border-radius: 7px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-secondary:hover {
  background: #1e2d40;
  color: #fff;
  text-decoration: none;
}

/* Shop page styles */
.shop-hero {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e0e0e0;
}

.shop-hero h2 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 1rem;
}

.shop-content {
  width: 100%;
}

.shop-footer-info {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e8e3db;
}

.pricing-note,
.shipping-note {
  flex: 1;
}

.pricing-note h3,
.shipping-note h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  color: #1e2d40;
  margin-bottom: 0.4rem;
  letter-spacing: 0;
}

.pricing-note p,
.shipping-note p {
  font-size: 0.875rem;
  color: #7a7065;
  margin: 0;
  line-height: 1.6;
}

/* Mailing list styles */
.mailing-list-hero {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e0e0e0;
}

.mailing-list-hero h2 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 1rem;
}

.mailing-benefits ul {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.mailing-benefits li {
  margin-bottom: 1rem;
  padding: 0.5rem 0;
  color: #555;
}

.radio-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.radio-label input[type="radio"] {
  display: none;
}

.radio-custom {
  width: 20px;
  height: 20px;
  border: 2px solid #ddd;
  border-radius: 50%;
  position: relative;
}

.radio-label input[type="radio"]:checked + .radio-custom {
  border-color: #4ecdc4;
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
  content: '';
  width: 10px;
  height: 10px;
  background-color: #4ecdc4;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Free stuff styles */
/* Colouring gallery */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.gallery-filter-btn {
  padding: 0.45rem 1.1rem;
  border: 1.5px solid #1e2d40;
  border-radius: 20px;
  background: transparent;
  color: #1e2d40;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.75px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.gallery-filter-btn:hover {
  background: #1e2d40;
  color: #fff;
}

.gallery-filter-btn.active {
  background: #1e2d40;
  color: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.gallery-item {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(30, 45, 64, 0.08);
  transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 0.5rem;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  box-shadow: 0 6px 18px rgba(30, 45, 64, 0.15);
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item--hidden {
  display: none;
}

.gallery-footer-note {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e8e3db;
  font-size: 0.875rem;
  color: #7a7065;
  text-align: center;
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
}

/* Download cards */
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 0 0 1rem;
}

.download-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(30, 45, 64, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.download-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(30, 45, 64, 0.14);
}

.download-icon-wrap {
  background: #fdf8f3;
  font-size: 2.5rem;
  text-align: center;
  padding: 1.75rem 1rem;
  line-height: 1;
}

.download-body {
  padding: 1.25rem 1.25rem 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.download-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e2d40;
  margin: 0 0 0.5rem;
}

.download-desc {
  font-size: 0.875rem;
  color: #7a7065;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 0;
}

.download-btn {
  display: block;
  margin: 0.75rem -1.25rem 0;
  padding: 0.75rem 1rem;
  background: #1e2d40;
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: background 0.2s ease;
}

.download-btn:hover {
  background: #2d4460;
  color: #fff;
  text-decoration: none;
}

.downloads-footer {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e8e3db;
  font-size: 0.9rem;
  color: #7a7065;
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .book-cta,
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

.radio-group {
    flex-direction: column;
  }
}

/* Page navigation responsive styles */
@media (max-width: 768px) {
  .nav-container {
    flex-wrap: wrap;
    padding: 0;
  }

  .nav-item {
    padding: 0.75rem 1rem;
    font-size: 0.7rem;
    letter-spacing: 1px;
  }

  .page-title {
    font-size: 2rem;
  }
}

/* Responsive design */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .header-left {
    flex-direction: column;
    gap: 1rem;
  }

  .profile-image img {
    width: 60px;
    height: 60px;
  }

  .header-text .site-title {
    font-size: 1.5rem;
  }

  .header-right {
    flex-direction: column;
    gap: 1rem;
  }

  .search-container {
    width: 100%;
    max-width: 250px;
  }

  .search-input {
    width: 100%;
  }

  .super-stories {
    font-size: 2.5rem;
  }

  .project-announcement {
    font-size: 1.8rem;
  }

  .feature-sections {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Shopping Cart Styles */
/* Cart layout */
.cart-section {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.75rem;
  align-items: start;
}

.cart-main {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(30, 45, 64, 0.08);
  overflow: hidden;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.75rem 1.25rem;
  border-bottom: 1px solid #f0ebe4;
}

.cart-header h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e2d40;
  margin: 0;
}

.btn-clear-cart {
  background: none;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  color: #a09890;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease;
}

.btn-clear-cart:hover {
  color: #c0392b;
}

.cart-items {
  padding: 0 1.75rem;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid #f0ebe4;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: #1e2d40;
  margin-bottom: 0.35rem;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #7a7065;
  font-size: 0.85rem;
}

.cart-item-price {
  font-weight: 600;
  color: #1e2d40;
  font-size: 0.95rem;
  white-space: nowrap;
}

.cart-item-remove {
  background: none;
  border: none;
  color: #c8bfb5;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0.2rem;
  line-height: 1;
  transition: color 0.15s ease;
}

.cart-item-remove:hover {
  color: #c0392b;
}

.cart-empty {
  text-align: center;
  color: #a09890;
  font-style: italic;
  padding: 3.5rem 1.75rem;
  margin: 0;
}

.quantity-input {
  width: 52px;
  padding: 0.3rem 0.4rem;
  border: 1.5px solid #e0d8d0;
  border-radius: 5px;
  font-size: 0.85rem;
  text-align: center;
  color: #1e2d40;
  font-family: 'DM Sans', sans-serif;
}

.quantity-input:focus {
  outline: none;
  border-color: #1e2d40;
  box-shadow: 0 0 0 2px rgba(30, 45, 64, 0.1);
}

#discount-code-section {
  padding: 1rem 1.75rem 1.5rem;
  border-top: 1px solid #f0ebe4;
}

#discount-code-input-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

#discount-code-input {
  flex: 1;
  padding: 0.55rem 0.9rem;
  border: 1.5px solid #e0d8d0;
  border-radius: 7px;
  font-size: 0.875rem;
  color: #1e2d40;
  font-family: 'DM Sans', sans-serif;
  transition: border-color 0.15s ease;
}

#discount-code-input:focus {
  outline: none;
  border-color: #1e2d40;
  box-shadow: 0 0 0 2px rgba(30, 45, 64, 0.1);
}

.btn-apply {
  padding: 0.55rem 1rem;
  background: transparent;
  color: #1e2d40;
  border: 1.5px solid #1e2d40;
  border-radius: 7px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-apply:hover {
  background: #1e2d40;
  color: #fff;
}

#discount-code-applied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.discount-code-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.discount-code-description {
  font-size: 0.8rem;
  color: #7a7065;
}

.btn-remove-code {
  background: none;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  color: #a09890;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease;
}

.btn-remove-code:hover {
  color: #c0392b;
}

/* Cart sidebar */
.cart-sidebar {
  position: sticky;
  top: 1.5rem;
}

.cart-totals {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(30, 45, 64, 0.08);
  padding: 1.5rem 1.75rem;
}

.cart-totals-label {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e2d40;
  margin: 0 0 1.25rem;
}

.cart-totals > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
  font-size: 0.875rem;
  color: #7a7065;
}

.cart-totals .discount {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
  font-size: 0.875rem;
  color: #2d7a3a;
}

#code-effects .code-discount,
#auto-discounts .auto-discount {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
  font-size: 0.875rem;
  color: #2d7a3a;
}

.cart-totals .total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e2d40;
  border-top: 1px solid #f0ebe4;
  padding-top: 0.85rem;
  margin-top: 0.4rem;
  margin-bottom: 0;
}

.cart-actions {
  margin-top: 0.75rem;
}

.btn-checkout {
  display: block;
  width: 100%;
  padding: 0.9rem 1rem;
  background: #1e2d40;
  color: #fff;
  border: none;
  border-radius: 9px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.75px;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn-checkout:hover {
  background: #2d4460;
  transform: translateY(-1px);
}

.btn-checkout:active {
  transform: translateY(0);
}

@media (max-width: 680px) {
  .cart-section {
    grid-template-columns: 1fr;
  }

  .cart-sidebar {
    position: static;
  }
}

/* Products Grid Styles */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
  margin: 0 0 1rem;
}

.product-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(30, 45, 64, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(30, 45, 64, 0.14);
}

.product-image {
  height: 260px;
  overflow: hidden;
  background: #fdf8f3;
  flex-shrink: 0;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
}

.product-info {
  padding: 1.25rem 1.25rem 0.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e2d40;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.product-description {
  font-size: 0.875rem;
  color: #7a7065;
  margin-bottom: 0.75rem;
  line-height: 1.6;
  flex: 1;
}

.product-meta {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.775rem;
  color: #a09890;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-footer {
  display: flex;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid #f0ebe4;
  margin-top: auto;
}

.product-price {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e2d40;
}

/* Button Styles */
.btn-add-cart {
  display: block;
  width: calc(100% - 2.5rem);
  margin: 0.75rem 1.25rem 1.25rem;
  background: #1e2d40;
  color: #fff;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 7px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn-add-cart:hover {
  background: #2d4460;
  transform: translateY(-1px);
}

.btn-add-cart:active {
  transform: translateY(0);
}

.btn-add-cart:disabled {
  background: #c8c0b8;
  cursor: not-allowed;
  transform: none;
}



/* Checkout Success/Cancel Pages */
.checkout-status {
  text-align: center;
  padding: 60px 20px;
  max-width: 600px;
  margin: 0 auto;
}

.checkout-status h2 {
  color: #28a745;
  margin-bottom: 20px;
}

.checkout-status.cancel h2 {
  color: #dc3545;
}

.checkout-status p {
  color: #666;
  margin-bottom: 30px;
  line-height: 1.6;
}

.checkout-status .actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Product Detail Page Styles */
.product-detail-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.product-detail-hero {
  background-color: white;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-detail-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-detail-image img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.product-detail-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-detail-info h1 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 1rem;
}

.product-detail-description {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.product-detail-meta {
  background-color: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.meta-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e0e0e0;
}

.meta-item:last-child {
  border-bottom: none;
}

.meta-label {
  font-weight: 600;
  color: #333;
}

.meta-value {
  color: #666;
}

.product-detail-pricing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem;
  background-color: #f8f9fa;
  border-radius: 8px;
}

.product-detail-price {
  font-size: 2rem;
  font-weight: bold;
  color: #333;
}

.btn-add-cart-large {
  flex: 1;
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.product-detail-content {
  background-color: white;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-detail-content h2 {
  color: #333;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.product-detail-content h3 {
  color: #333;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
}

.product-detail-content p {
  color: #666;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.product-detail-content ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.product-detail-content li {
  color: #666;
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.product-detail-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.product-detail-content em {
  display: block;
  text-align: center;
  font-size: 0.9rem;
  color: #999;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.product-detail-back {
  text-align: center;
  margin-top: 2rem;
}

.btn-back {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #f8f9fa;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.btn-back:hover {
  background-color: #e9ecef;
  text-decoration: none;
}

/* Product card link */
.product-card {
  position: relative;
}

.product-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  color: inherit;
  text-decoration: none;
}

.product-link:hover {
  text-decoration: none;
}

.product-link:hover .product-title {
  color: #2d4460;
}

/* External Purchase Styles */
.btn-external-buy {
  background: #2d4460;
  text-decoration: none;
}

.btn-external-buy:hover {
  background: #3d5878;
  color: white;
  text-decoration: none;
}

.product-price-external {
  font-size: 0.9rem;
  color: #7a7065;
  font-style: italic;
}

.product-detail-external-note {
  font-size: 1rem;
  color: #555;
  font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
  }

  .shop-footer-info {
    flex-direction: column;
    gap: 1rem;
  }
  
  
  .product-footer {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }
  
  .shipping-options {
    grid-template-columns: 1fr;
  }
  
  .product-detail-hero {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .product-detail-info h1 {
    font-size: 2rem;
  }
  
  .product-detail-pricing {
    flex-direction: column;
    align-items: stretch;
  }
  
  .product-detail-price {
    text-align: center;
  }
}

/* ================================================================
   School Visits page
   ================================================================ */

/* ── Hero quote rotator ── */
.sv-hero {
  background: linear-gradient(135deg, #3d6b52 0%, #2c4f3b 100%);
  color: #fff;
  padding: 4rem 1.5rem;
  text-align: center;
}

.sv-hero__inner {
  max-width: 780px;
  margin: 0 auto;
}

.sv-hero__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 1.5rem;
}

.sv-quotes {
  position: relative;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sv-quote {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

.sv-quote--active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.sv-quote p {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-style: italic;
  line-height: 1.6;
  color: #fff;
  margin-bottom: 1rem;
}

.sv-quote cite {
  font-size: 0.875rem;
  font-style: normal;
  color: rgba(255,255,255,0.75);
  display: block;
}

.sv-quote-dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.sv-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, transform 0.3s;
}

.sv-dot--active,
.sv-dot:hover {
  background: #fff;
  transform: scale(1.25);
}

/* ── Page body ── */
.sv-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

/* ── Intro ── */
.sv-intro {
  margin-bottom: 3.5rem;
}

.sv-intro__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 5vw, 2.8rem);
  color: #2c4f3b;
  margin-bottom: 1rem;
}

.sv-intro__lead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 1rem;
}

/* ── Session cards ── */
.sv-sessions {
  margin-bottom: 4rem;
}

.sv-sessions__heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.75rem;
  color: #2c4f3b;
  margin-bottom: 1.75rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid #d4e8db;
}

.sv-session-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.sv-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.75rem;
  border: 1px solid #e5ede8;
  box-shadow: 0 2px 8px rgba(44,79,59,0.06);
  transition: box-shadow 0.25s, transform 0.25s;
}

.sv-card:hover {
  box-shadow: 0 6px 20px rgba(44,79,59,0.12);
  transform: translateY(-3px);
}

.sv-card--highlight {
  border-color: #3d6b52;
  background: linear-gradient(160deg, #f3f9f5 0%, #fff 60%);
}

.sv-card__tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #3d6b52;
  margin-bottom: 0.6rem;
}

.sv-card__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  color: #1a3327;
  margin-bottom: 0.75rem;
}

.sv-card p {
  font-size: 0.925rem;
  line-height: 1.65;
  color: #555;
  margin-bottom: 0.65rem;
}

.sv-card p:last-child {
  margin-bottom: 0;
}

/* ── Testimonials grid ── */
.sv-testimonials {
  margin-bottom: 3.5rem;
}

.sv-testimonials__heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.75rem;
  color: #2c4f3b;
  margin-bottom: 1.75rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid #d4e8db;
}

.sv-testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.sv-testimonial {
  background: #fff;
  border-left: 4px solid #3d6b52;
  border-radius: 0 10px 10px 0;
  padding: 1.5rem 1.5rem 1.25rem;
  margin: 0;
  box-shadow: 0 1px 6px rgba(44,79,59,0.05);
  transition: box-shadow 0.25s;
}

.sv-testimonial:hover {
  box-shadow: 0 4px 16px rgba(44,79,59,0.1);
}

.sv-testimonial blockquote {
  margin: 0 0 0.75rem;
  padding: 0;
}

.sv-testimonial blockquote p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #444;
  font-style: italic;
  margin: 0;
}

.sv-testimonial blockquote p::before { content: '\201C'; }
.sv-testimonial blockquote p::after  { content: '\201D'; }

.sv-testimonial figcaption {
  font-size: 0.8rem;
  font-weight: 500;
  color: #3d6b52;
  letter-spacing: 0.02em;
}

/* ── CTA strip ── */
.sv-cta {
  background: linear-gradient(135deg, #3d6b52 0%, #2c4f3b 100%);
  border-radius: 14px;
  padding: 2.5rem 2rem;
  text-align: center;
  color: #fff;
}

.sv-cta__text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
  color: #fff;
}

.sv-cta__btn {
  display: inline-block;
  background: #fff;
  color: #2c4f3b;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 2rem;
  border-radius: 40px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.sv-cta__btn:hover {
  background: #e8f5ec;
  transform: translateY(-2px);
  text-decoration: none;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .sv-hero {
    padding: 2.5rem 1rem;
  }

  .sv-quotes {
    min-height: 200px;
  }

  .sv-session-cards,
  .sv-testimonial-grid {
    grid-template-columns: 1fr;
  }

  .sv-cta {
    padding: 2rem 1.25rem;
  }
}