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

body {
  font-family: "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  background: linear-gradient(180deg, #f0f7ff 0%, #d9eaff 45%, #ffffff 100%);
  color: #111;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

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

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  color: #333;
}

.logo {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

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

.nav-menu a {
  color: #555;
  font-size: 0.95rem;
}

.cart-btn {
  background: #007bff;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.hero {
  padding: 80px 0 60px;
  color: #333;
}

.hero-wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-text p {
  font-size: 1.05rem;
  color: #555;
  margin-bottom: 24px;
  max-width: 620px;
}

.hero-badge {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: #e6f2ff;
  color: #0056b3;
  border: 1px solid #b3d7ff;
  margin-bottom: 18px;
  font-size: 0.9rem;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
  padding: 13px 18px;
  border-radius: 14px;
  font-weight: 700;
  display: inline-block;
}

.btn-primary {
  background: #007bff;
  color: white;
}

.btn-secondary {
  border: 1px solid #ccc;
  color: #333;
  background: #f8f9fa;
}

.hero-card {
  background: #ffffff;
  border: 1px solid #e6e6e6;
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.05);
}

.fish-tank {
  border-radius: 24px;
  background: linear-gradient(180deg, #a8d8ff 0%, #6faded 40%, #4a90e2 100%);
  padding: 24px;
  min-height: 360px;
  position: relative;
  overflow: hidden;
}

.bubble {
  position: absolute;
  bottom: -30px;
  background: rgba(255,255,255,0.6);
  border-radius: 50%;
  animation: rise 10s infinite ease-in;
}

.bubble:nth-child(1) { width: 16px; height: 16px; left: 18%; animation-delay: 0s; }
.bubble:nth-child(2) { width: 24px; height: 24px; left: 52%; animation-delay: 2s; }
.bubble:nth-child(3) { width: 12px; height: 12px; left: 72%; animation-delay: 4s; }
.bubble:nth-child(4) { width: 18px; height: 18px; left: 35%; animation-delay: 1s; }

@keyframes rise {
  0% { transform: translateY(0); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translateY(-420px); opacity: 0; }
}

.tank-title {
  position: relative;
  z-index: 2;
  color: white;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.tank-text {
  position: relative;
  z-index: 2;
  color: rgba(255,255,255,0.9);
  max-width: 280px;
}

section {
  padding: 70px 0;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 12px;
  color: #003d7a;
}

.section-desc {
  color: #4a6a8a;
  margin-bottom: 16px;
}

.about {
  background: #ffffff;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.about-card {
  background: #f8f9fa;
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 61, 122, 0.08);
}

.about-card h3 {
  margin-bottom: 10px;
  color: #004085;
}

.shop {
  background: #f0f8ff;
}

.shop-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  border: 1px solid #b8d8e8;
  background: white;
  color: #004085;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}

.filter-btn.active {
  background: #004085;
  color: white;
  border-color: #004085;
}

.search-box input {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #c5dceb;
  min-width: 240px;
  outline: none;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.product-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 61, 122, 0.08);
  display: flex;
  flex-direction: column;
}

.product-image {
  height: 220px;
  background: linear-gradient(135deg, #e0f7fa, #b2ebf2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.product-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.product-tag {
  display: inline-block;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e0f7fa;
  color: #00796b;
  font-size: 0.82rem;
  font-weight: 700;
}

.product-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #003d7a;
}

.product-desc {
  color: #5a7381;
  font-size: 0.95rem;
}

.product-bottom {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.adsense-ad {
    margin-bottom: 20px;
}

.price {
  font-size: 1.1rem;
  font-weight: 800;
  color: #004085;
}

.add-btn {
  border: none;
  background: #007bff;
  color: white;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
}

.newsletter {
  background: #003d7a;
  color: white;
}

.newsletter-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}

.newsletter p {
  color: rgba(255,255,255,0.82);
  margin-top: 10px;
}

.newsletter-form {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 24px;
  border-radius: 24px;
}

.newsletter-form input,
.newsletter-form textarea {
  width: 100%;
  margin-bottom: 12px;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.08);
  color: white;
  outline: none;
}

.newsletter-form input::placeholder,
.newsletter-form textarea::placeholder {
  color: rgba(255,255,255,0.55);
}

.newsletter-form button {
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 14px;
  background: #007bff;
  color: white;
  font-weight: 800;
  cursor: pointer;
}

footer {
  background: #00274d;
  color: rgba(255,255,255,0.72);
  padding: 28px 0;
  font-size: 0.95rem;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cart-panel {
  position: fixed;
  top: 0;
  right: -420px;
  width: min(390px, 100%);
  height: 100vh;
  background: white;
  box-shadow: -12px 0 30px rgba(0,0,0,0.18);
  z-index: 2000;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

.cart-panel.open {
  right: 0;
}

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

.cart-header h3 {
  color: #003d7a;
}

.close-cart {
  border: none;
  background: #eff7fb;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
}

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

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #edf3f7;
}

.cart-thumb {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: #e0f7fa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.cart-item h4 {
  font-size: 0.98rem;
  color: #003d7a;
  margin-bottom: 4px;
}

.cart-item p {
  color: #5b7483;
  font-size: 0.9rem;
}

.qty-box {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.qty-box button {
  border: none;
  background: #eaf6fc;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
}

.remove-btn {
  border: none;
  background: transparent;
  color: #8aa0ae;
  cursor: pointer;
  font-size: 0.9rem;
}

.cart-footer {
  padding: 20px;
  border-top: 1px solid #e7eef3;
  background: #fbfdff;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  margin-bottom: 14px;
  color: #003d7a;
}

.checkout-btn {
  width: 100%;
  border: none;
  background: #004085;
  color: white;
  padding: 14px;
  border-radius: 14px;
  font-weight: 800;
  cursor: pointer;
  margin-bottom: 10px;
}

.mail-btn {
  width: 100%;
  display: block;
  text-align: center;
  background: #007bff;
  color: white;
  padding: 14px;
  border-radius: 14px;
  font-weight: 800;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.36);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
  z-index: 1500;
}

.overlay.show {
  opacity: 1;
  visibility: visible;
}

.empty-cart {
  color: #6d8492;
  text-align: center;
  padding: 40px 10px;
}

@media (max-width: 980px) {
  .hero-wrap,
  .newsletter-wrap,
  .about-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 50px;
  }
}

@media (max-width: 640px) {
  .nav {
    gap: 12px;
    flex-direction: column;
    align-items: flex-start;
  }

  .shop-top {
    align-items: stretch;
  }

  .search-box input {
    width: 100%;
    min-width: 100%;
  }
}
