* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #173f51;
  background: #f7ffff;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
  padding: 14px clamp(18px, 4vw, 58px);
  background: rgba(5, 71, 92, 0.97);
  color: white;
  box-shadow: 0 8px 25px rgba(0, 44, 62, 0.22);
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.brand-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  font-weight: 700;
  line-height: 1.1;
}

.brand-subtitle {
  margin-top: 3px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.86;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav a {
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover {
  color: #ffe58b;
}

.cart-button,
.menu-toggle {
  border: 0;
  border-radius: 999px;
  background: #f8c94d;
  color: #173f51;
  font-weight: 800;
  cursor: pointer;
}

.cart-button {
  padding: 10px 16px;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  font-size: 1.4rem;
}

.hero {
  min-height: clamp(420px, 68vw, 850px);
  background-image: url("assets/hero-background.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: #cbeeed;
  border-top: 1px solid #cbeeed;
  border-bottom: 1px solid #cbeeed;
}

.category-strip a {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 145px;
  padding: 24px 16px;
  background: white;
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.category-strip a:hover {
  z-index: 1;
  transform: translateY(-3px);
  background: #f0ffff;
}

.category-strip span {
  font-size: 2rem;
}

.category-strip strong {
  margin-top: 8px;
  color: #0b6f7c;
  font-size: 1.02rem;
}

.category-strip small {
  color: #647b87;
}

.shop-intro {
  padding: 70px 24px 55px;
  background:
    radial-gradient(circle at top left, rgba(89, 224, 230, 0.17), transparent 35%),
    linear-gradient(180deg, #f8ffff 0%, #eefafa 100%);
  text-align: center;
}

.shop-intro-content {
  width: min(760px, 100%);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 8px;
  color: #16818a;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.shop-intro h1,
.section-heading h2 {
  margin: 0;
  color: #123f5a;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.1;
}

.shop-intro h1 {
  font-size: clamp(2.15rem, 5vw, 4rem);
}

.shop-intro p {
  max-width: 680px;
  margin: 20px auto 0;
  color: #536f7c;
  font-size: 1.08rem;
}

.section {
  padding: 74px clamp(20px, 5vw, 72px);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 38px;
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.section-heading p:last-child {
  margin: 15px auto 0;
  color: #617783;
}

.books-section {
  background: white;
}

.store-grid {
  width: min(1040px, 100%);
  margin: 0 auto;
}

.store-card {
  overflow: hidden;
  border: 1px solid #d9eeee;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 20px 55px rgba(15, 88, 101, 0.14);
}

.featured-product {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  align-items: center;
}

.product-image-wrap {
  display: grid;
  min-height: 520px;
  place-items: center;
  padding: 42px;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.88), rgba(215, 247, 248, 0.85)),
    #dff7f7;
}

.product-image {
  width: min(340px, 100%);
  filter: drop-shadow(0 18px 22px rgba(0, 59, 78, 0.2));
}

.product-details {
  padding: clamp(32px, 5vw, 64px);
}

.badge,
.coming {
  display: inline-block;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge {
  padding: 7px 12px;
  background: #e9d9ff;
  color: #693ca5;
}

.product-details h3 {
  margin: 16px 0 6px;
  color: #123f5a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
}

.rating {
  margin: 0;
  color: #efb81d;
  letter-spacing: 0.08em;
}

.price {
  margin: 18px 0;
  color: #0e7580;
  font-size: 2rem;
  font-weight: 900;
}

.quantity {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  padding: 6px;
  border: 1px solid #cfe8e9;
  border-radius: 999px;
  background: #f7ffff;
}

.quantity button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: white;
  color: #0d6d76;
  font-size: 1.35rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(24, 89, 97, 0.1);
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.gold {
  background: #f7c948;
  color: #173f51;
  box-shadow: 0 10px 22px rgba(218, 170, 35, 0.22);
}

.button.purple {
  background: #7651b5;
  color: white;
  box-shadow: 0 10px 22px rgba(83, 50, 145, 0.2);
}

.secure-note {
  display: block;
  margin-top: 15px;
  color: #72858d;
}

.gifts {
  background: #eefafa;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.product-card {
  padding: 28px;
  border: 1px solid #d7ecec;
  border-radius: 22px;
  background: white;
  text-align: center;
  box-shadow: 0 14px 35px rgba(15, 88, 101, 0.08);
}

.placeholder {
  display: grid;
  width: 82px;
  height: 82px;
  margin: 0 auto 18px;
  place-items: center;
  border-radius: 50%;
  background: #e8f8f8;
  font-size: 2.2rem;
}

.coming {
  padding: 6px 10px;
  background: #fff2c8;
  color: #805f00;
}

.product-card h3 {
  margin: 15px 0 8px;
  color: #164b62;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
}

.product-card p {
  margin: 0;
  color: #657b84;
}

.about {
  background: white;
}

.narrow-copy {
  max-width: 760px;
  margin: 0 auto;
  color: #536f7c;
  text-align: center;
  font-size: 1.08rem;
}

.contact {
  background: linear-gradient(180deg, #effafa, #ffffff);
}

.contact-form {
  display: grid;
  gap: 17px;
  width: min(680px, 100%);
  margin: 0 auto;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: #214e5e;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #cfe4e5;
  border-radius: 14px;
  padding: 13px 15px;
  background: white;
  color: #173f51;
}

.contact-form textarea {
  resize: vertical;
}

.site-footer {
  padding: 28px 20px;
  background: #073f55;
  color: white;
  text-align: center;
}

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  width: min(410px, 92vw);
  height: 100vh;
  padding: 22px;
  background: white;
  box-shadow: -20px 0 45px rgba(0, 44, 62, 0.22);
  transform: translateX(105%);
  transition: transform 0.3s ease;
}

.cart-panel.open {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e0eeee;
}

.cart-header h2 {
  color: #123f5a;
}

.cart-header button {
  border: 0;
  background: transparent;
  color: #173f51;
  font-size: 2rem;
  cursor: pointer;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px 0;
}

.empty-cart {
  color: #70848c;
  text-align: center;
}

.cart-item {
  padding: 16px 0;
  border-bottom: 1px solid #e6eeee;
}

.cart-item strong,
.cart-item span {
  display: block;
}

.cart-footer {
  border-top: 1px solid #e0eeee;
  padding-top: 18px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.full-width {
  width: 100%;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 1900;
  visibility: hidden;
  background: rgba(0, 28, 40, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-overlay.open {
  visibility: visible;
  opacity: 1;
}

@media (max-width: 980px) {
  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    top: 82px;
    right: 18px;
    display: none;
    width: min(320px, calc(100vw - 36px));
    padding: 20px;
    border-radius: 18px;
    background: #075268;
    box-shadow: 0 18px 35px rgba(0, 44, 62, 0.25);
  }

  .site-nav.open {
    display: grid;
  }

  .category-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-product {
    grid-template-columns: 1fr;
  }

  .product-image-wrap {
    min-height: auto;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 74px;
  }

  .brand-title {
    font-size: 1.2rem;
  }

  .brand-subtitle {
    font-size: 0.62rem;
  }

  .hero {
    min-height: 340px;
  }

  .category-strip {
    grid-template-columns: 1fr;
  }

  .category-strip a {
    min-height: 120px;
  }

  .section,
  .shop-intro {
    padding: 52px 18px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-image-wrap,
  .product-details {
    padding: 28px 22px;
  }

  .product-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}


.external-link {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
}

.external-link:hover {
  border-color: #ffe58b;
  background: rgba(255, 255, 255, 0.08);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-bottom: 10px;
}

.footer-links a {
  color: #ffe58b;
  font-weight: 800;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}
