*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --navy: #005398;
  --navy-dark: #193C53;
  --navy-deeper: #0a2334;
  --navy-card: #00295e;
  --yellow: #FFC810;
  --orange: #EC6625;
  --orange-hover: #c35500;
  --white: #ffffff;
  --cream: #F1E5E2;
  --font-display: 'Baloo 2', cursive;
  --font-body: 'Nunito', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--white);
  overflow-x: hidden;
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 32px;
  background: var(--navy-dark);
  border-bottom: 2px solid rgba(245, 197, 24, 0.15);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.nav-logo .logo-placeholder {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo .logo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--cream);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--yellow);
  transition: width 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--yellow);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 110;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--yellow);
  border-radius: 999px;
}

.nav-toggle span + span {
  margin-top: 5px;
}

/* HERO */
.shop-page-hero {
  max-width: 850px;
  margin: 0 auto;
  padding: 150px 32px 50px;
  text-align: center;
}

.shop-eyebrow {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.shop-page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--yellow);
  line-height: 1;
  margin-bottom: 16px;
}

.shop-page-intro {
  max-width: 620px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.84);
}

/* FEATURED */
.featured-product {
  max-width: 1000px;
  margin: 0 auto;
  padding: 10px 32px 60px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 28px;
  align-items: center;
}

.featured-product-text {
  background: var(--navy-card);
  border-radius: 20px;
  padding: 30px;
  border: 1px solid rgba(245, 197, 24, 0.08);
}

.shop-label {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 200, 16, 0.15);
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 700;
}

.featured-product-text h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--yellow);
  margin-bottom: 12px;
}

.featured-product-text p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.84);
  margin-bottom: 20px;
}

.btn-primary {
  display: inline-block;
  padding: 12px 32px;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn-primary:hover {
  background: var(--orange-hover);
  transform: translateY(-1px);
}

.featured-product-card,
.shop-library-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 18px;
  text-decoration: none;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  appearance: none;
  padding: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.featured-product-card:hover,
.shop-library-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.24);
  border-color: rgba(255, 255, 255, 0.2);
}

.featured-product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

/* GRID */
.shop-library {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 32px 90px;
}

.shop-library-header {
  text-align: center;
  margin-bottom: 28px;
}

.shop-library-header h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--yellow);
  margin-bottom: 8px;
}

.shop-library-header p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
}

.shop-categories {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px 90px;
}

.shop-category + .shop-category {
  margin-top: 42px;
}

.shop-category-header {
  margin-bottom: 18px;
}

.shop-category-header h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--yellow);
  margin-bottom: 6px;
}

.shop-category-header p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.82);
}

.shop-carousel-wrapper {
  position: relative;
}

.shop-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 4px 8px 18px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.22) transparent;
}

.shop-carousel::-webkit-scrollbar {
  height: 10px;
}

.shop-carousel::-webkit-scrollbar-track {
  background: transparent;
}

.shop-carousel::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.22);
  border-radius: 999px;
}

.shop-library-card {
  position: relative;
  display: block;
  flex: 0 0 220px;
  scroll-snap-align: start;
  overflow: hidden;
  border-radius: 18px;
  text-decoration: none;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  appearance: none;
  padding: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.shop-library-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
  transform: translateY(-2px);
}

.shop-library-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.shop-library-info {
  padding: 16px 16px 18px;
}

.shop-library-info h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--yellow);
  margin-bottom: 4px;
}

.shop-library-info p {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.8);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: var(--orange);
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-btn:hover {
  background: var(--orange-hover);
  transform: translateY(-50%) scale(1.05);
}

.carousel-btn.left {
  left: -10px;
}

.carousel-btn.right {
  right: -10px;
}

/* MODAL */
.product-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  overflow-y: auto;
  padding: 24px;
}

.product-modal.open {
  display: block;
}

.product-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 35, 52, 0.76);
  backdrop-filter: blur(4px);
}

.product-modal-content {
  position: relative;
  width: min(92vw, 860px);
  margin: 0 auto;
  background: var(--cream);
  border-radius: 22px;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  max-height: calc(100vh - 48px);
}

.product-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-height: calc(100vh - 48px);
}

.product-modal-image-wrap {
  background: #fff;
  min-height: 100%;
}

.product-modal-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-modal-info {
  padding: 34px 30px;
  color: var(--navy-deeper);
  overflow-y: auto;
}

.product-modal-category {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(0, 83, 152, 0.08);
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 700;
}

.product-modal-info h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.05;
  margin-bottom: 14px;
  color: var(--navy);
}

.product-modal-description {
  font-size: 0.98rem;
  line-height: 1.7;
  color: rgba(10, 35, 52, 0.82);
  margin-bottom: 24px;
}

.product-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s ease, transform 0.2s ease;
}

.product-modal-close:hover {
  background: var(--orange-hover);
  transform: scale(1.05);
}

/* FOOTER */
.site-footer {
  background: var(--navy-deeper);
  border-top: 2px solid rgba(245, 197, 24, 0.12);
  padding: 48px 32px 24px;
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
}

.footer-brand h3,
.footer-links h4,
.footer-note h4 {
  font-family: var(--font-display);
  color: var(--yellow);
}

.footer-brand h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.footer-links h4,
.footer-note h4 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.footer-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  margin-bottom: 12px;
}

.footer-brand p,
.footer-note p,
.footer-links a,
.footer-bottom p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
}

.footer-links ul {
  list-style: none;
}

.footer-links li + li {
  margin-top: 8px;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--yellow);
}

.footer-source {
  margin-top: 10px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.58);
}

.footer-bottom {
  max-width: 1000px;
  margin: 28px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.58);
}

.shop-carousel-wrapper {
  position: relative;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: var(--orange);
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
}

.carousel-btn.left { left: -10px; }
.carousel-btn.right { right: -10px; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .featured-product,
  .product-modal-grid {
    grid-template-columns: 1fr;
  }

  .product-modal-content {
    max-height: none;
  }

  .product-modal-grid {
    max-height: none;
  }

  .product-modal-image-wrap {
    max-height: 280px;
  }

  .product-modal-info {
    overflow-y: visible;
  }
}

@media (max-width: 800px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-logo {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 700px) {
  .nav-links {
    gap: 16px;
  }

  .nav-links a {
    font-size: 0.75rem;
  }

  .shop-page-hero {
    padding-top: 130px;
  }

  .shop-categories {
    padding: 0 20px 70px;
  }

  .shop-library-card {
    flex: 0 0 190px;
  }

  .carousel-btn {
    width: 32px;
    height: 32px;
  }

  .carousel-btn.left {
    left: -4px;
  }

  .carousel-btn.right {
    right: -4px;
  }

  .product-modal {
    padding: 16px;
  }

  .product-modal-content {
    width: 100%;
    border-radius: 18px;
  }

  .product-modal-info {
    padding: 22px 20px 24px;
  }

  .product-modal-info h3 {
    font-size: 1.6rem;
  }

  .product-modal-description {
    font-size: 0.92rem;
    line-height: 1.65;
  }

  .product-modal-close {
    top: 10px;
    right: 10px;
  }

    nav {
    padding: 12px 20px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    background: var(--navy-dark);
    border-bottom: 2px solid rgba(245, 197, 24, 0.15);
    padding: 10px 20px 16px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li + li {
    margin-top: 10px;
  }

  .nav-links a {
    display: block;
    font-size: 0.9rem;
    padding: 6px 0;
  }

  .footer-note {
    display: none;
  }
}