:root {
  --sea-deep: #1a2f3d;
  --sea-mist: #4a6b6f;
  --sand-warm: #e8e0d3;
  --cream: #f8f5f0;
  --ink: #2c2522;
  --soft-ink: #544e48;
  --light-sand: #f5f0e8;
  --wave: #c5b9a8;
}

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

body {
  font-family: 'Noto Serif JP', 'Playfair Display', Georgia, serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.75;
  overflow-x: hidden;
  font-size: 15.5px;
}

h1, h2, h3, .logo, .serif {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(248,245,240,0.96);
  backdrop-filter: blur(14px);
  z-index: 1000;
  border-bottom: 1px solid var(--sand-warm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 0;
}

.logo {
  font-size: 25px;
  color: var(--sea-deep);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 11px;
}

.logo img { height: 40px; width: auto; }

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

.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14.5px;
  transition: color 0.2s;
  position: relative;
  padding: 6px 0;
  display: inline-block;
}

.nav-links a:hover { color: var(--sea-mist); }

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

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

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cart-icon {
  position: relative;
  cursor: pointer;
  font-size: 20px;
  color: var(--sea-deep);
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -7px;
  background: var(--sea-mist);
  color: white;
  font-size: 10px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: system-ui, sans-serif;
  font-weight: 500;
}

.hamburger {
  display: none;
  font-size: 23px;
  cursor: pointer;
  color: var(--sea-deep);
}

.btn {
  display: inline-block;
  padding: 14px 38px;
  background: transparent;
  color: var(--sea-deep);
  border: 1.5px solid var(--sea-deep);
  font-size: 14px;
  letter-spacing: 1.2px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  font-family: inherit;
}

.btn:hover {
  background: var(--sea-deep);
  color: white;
}

.btn-primary {
  background: var(--sea-deep);
  color: white;
  border-color: var(--sea-deep);
}

.btn-primary:hover {
  background: var(--sea-mist);
  border-color: var(--sea-mist);
}

section { padding: 82px 0; }

.section-title {
  text-align: center;
  font-size: 34px;
  margin-bottom: 9px;
  color: var(--sea-deep);
  letter-spacing: 0.6px;
}

.section-subtitle {
  text-align: center;
  color: var(--sea-mist);
  font-size: 13.5px;
  margin-bottom: 46px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.horizon {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--sand-warm), transparent);
  margin: 52px 0;
}

.wave-divider {
  height: 38px;
  background: linear-gradient(transparent, rgba(232,224,211,0.6));
  position: relative;
}

.wave-divider:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--wave),
    var(--wave) 18px,
    transparent 18px,
    transparent 34px
  );
  opacity: 0.35;
}

/* Product Cards - sea specific */
.product-card {
  background: white;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 6px 22px rgba(0,0,0,0.055);
  transition: transform 0.4s cubic-bezier(0.23, 1.0, 0.32, 1), box-shadow 0.4s;
  border: 1px solid rgba(232,224,211,0.6);
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(26,47,61,0.09);
}

.product-card img {
  width: 100%;
  height: 338px;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}

.product-card:hover img {
  transform: scale(1.025);
}

.product-info {
  padding: 23px 21px 24px;
}

.product-info h3 {
  font-size: 17.5px;
  margin-bottom: 4px;
  color: var(--sea-deep);
  line-height: 1.25;
}

.product-info .price {
  font-size: 15.5px;
  color: var(--sea-mist);
  margin-bottom: 13px;
}

.product-info .meta {
  font-size: 12.5px;
  color: #7a7063;
  margin-bottom: 13px;
  letter-spacing: 0.3px;
}

.product-info .btn {
  padding: 10px 22px;
  font-size: 13px;
  width: 100%;
  text-align: center;
  border-color: var(--sea-deep);
  color: var(--sea-deep);
}

.product-info .btn:hover {
  background: var(--sea-deep);
  color: white;
}

/* Footer */
footer {
  background: var(--sea-deep);
  color: #d1c7b8;
  padding: 64px 0 34px;
  font-size: 13.5px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 38px;
}

.footer-col h3 {
  color: white;
  margin-bottom: 15px;
  font-size: 13.5px;
  letter-spacing: 1.1px;
}

.footer-col a, .footer-col p {
  color: #d1c7b8;
  display: block;
  margin-bottom: 7px;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 50px;
  padding-top: 22px;
  text-align: center;
  font-size: 12px;
  opacity: 0.85;
}

/* Modal styles */
.popup {
  position: fixed;
  top: 22px;
  right: 22px;
  background: white;
  color: var(--ink);
  padding: 16px 26px;
  box-shadow: 0 14px 42px rgba(0,0,0,0.16);
  border-radius: 2px;
  z-index: 99999;
  display: none;
  font-size: 14.5px;
  border-left: 5px solid var(--sea-mist);
  max-width: 310px;
}

.cart-modal, .checkout-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.55);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  width: 94%;
  max-width: 510px;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 3px;
  padding: 30px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.modal-header h3 { font-size: 20px; color: var(--sea-deep); }

.close-btn {
  background: none;
  border: none;
  font-size: 25px;
  cursor: pointer;
  color: #888;
  line-height: 1;
}

.cart-item {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}

.cart-item img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 2px;
}

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

.cart-item-info h5 { margin-bottom: 3px; font-size: 14.5px; }

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

.cart-qty button {
  width: 24px;
  height: 24px;
  border: 1px solid #ccc;
  background: white;
  cursor: pointer;
  font-size: 15px;
}

.cart-total {
  font-size: 17px;
  font-weight: 700;
  margin: 22px 0;
  text-align: right;
}

/* Responsive base */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .container { padding: 0 18px; }
  .section-title { font-size: 27px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 420px) {
  .nav { padding: 14px 0; }
  .logo { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
:root { color-scheme: light; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
