@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Italiana&family=Jost:wght@300;400;500;600&display=swap");

:root {
  --paper: #f7f2e8;
  --card: #fffdf5;
  --blue: #1a3352;
  --blue-soft: rgba(26, 51, 82, 0.08);
  --gold: #c9a84c;
  --sand: #ddd3b8;
  --muted: #9a8e7a;
  --olive: #496b2f;
  --red: #7a2020;
  --shadow: 0 18px 48px rgba(26, 51, 82, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255, 230, 108, 0.18), transparent 32rem),
    radial-gradient(circle at bottom right, rgba(26, 51, 82, 0.10), transparent 30rem),
    var(--paper);
  color: var(--blue);
  font-family: "Jost", Arial, sans-serif;
  font-weight: 400;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.wishlist-page {
  position: relative;
  overflow-x: hidden;
}

.deco {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  opacity: 0.40;
  object-fit: contain;
  filter: saturate(0.95);
  mix-blend-mode: multiply;
}

.deco-shell {
  top: 24px;
  right: 42px;
  width: 112px;
  transform: rotate(8deg);
  opacity: 0.34;
}

.deco-lemons {
  top: 32px;
  left: 52px;
  width: 112px;
  transform: rotate(-10deg);
  opacity: 0.30;
}

.deco-sun {
  top: 150px;
  right: 120px;
  width: 92px;
  transform: rotate(14deg);
  opacity: 0.28;
}

.deco-bow {
  top: 290px;
  left: 34px;
  width: 118px;
  transform: rotate(-7deg);
  opacity: 0.28;
}

.deco-limoncello {
  right: 18px;
  top: 42%;
  width: 128px;
  transform: rotate(6deg);
  opacity: 0.30;
}

.deco-palm {
  left: 20px;
  bottom: 58px;
  width: 138px;
  transform: rotate(-4deg);
  opacity: 0.26;
}

.deco-cocktail {
  right: 64px;
  bottom: 66px;
  width: 124px;
  transform: rotate(-8deg);
  opacity: 0.26;
}

.wl {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding-bottom: 80px;
}

.wl-header {
  text-align: center;
  padding: 56px 24px 36px;
  border-bottom: 1px solid rgba(201, 185, 138, 0.28);
}

.wl-eyebrow {
  margin-bottom: 14px;
  color: #9a8459;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 5px;
  text-transform: uppercase;
}

.wl-title,
.site-title {
  margin: 0;
  color: var(--blue);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(58px, 10vw, 96px);
  font-weight: 300;
  letter-spacing: 8px;
  line-height: 0.92;
  text-transform: uppercase;
}

.wl-sub {
  margin-top: 8px;
  color: var(--gold);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 20px;
  font-style: italic;
  letter-spacing: 2px;
}

.wl-stamp-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 22px;
}

.wl-stamp {
  position: relative;
  border: 1.5px solid var(--blue);
  padding: 6px 17px;
  color: var(--blue);
  font-size: 9px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
}

.wl-stamp::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 0.5px solid rgba(26, 51, 82, 0.8);
}

.wl-ornament,
.section-divider,
.wl-foot {
  color: #c9b98a;
}

.wl-ornament {
  font-size: 14px;
  letter-spacing: 6px;
}

.wl-body {
  max-width: 960px;
  margin: 0 auto;
  padding: 44px 24px 0;
}

.section-divider {
  margin: 0 0 38px;
  text-align: center;
  font-size: 16px;
  letter-spacing: 10px;
}

.wl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 28px;
}

.gift-card {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--sand);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.gift-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.card-ribbon {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--blue), var(--gold));
}

.gift-image-button {
  position: relative;
  display: flex;
  width: 100%;
  height: 230px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 0;
  background: #f0ebe0;
  padding: 0;
}

.gift-image-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gift-card:hover .gift-image-button img {
  transform: scale(1.04);
}

.gift-placeholder {
  font-size: 72px;
}

.card-tag {
  position: absolute;
  top: 14px;
  right: 12px;
  padding: 5px 11px;
  border: 1px solid currentColor;
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.tag-free {
  background: #edf5e4;
  color: #3a6b1e;
}

.tag-taken {
  background: #f5e4e4;
  color: var(--red);
}

.card-shop-flag {
  position: absolute;
  bottom: 0;
  left: 0;
  max-width: 100%;
  background: rgba(255, 253, 245, 0.72);
  backdrop-filter: blur(3px);
  padding: 5px 11px;
  color: rgba(26, 51, 82, 0.8);
  font-size: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.card-body {
  padding: 18px 20px 22px;
}

.card-thumbs {
  display: flex;
  gap: 7px;
  padding: 9px 12px 0;
  background: var(--card);
  overflow-x: auto;
}

.card-thumb {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid transparent;
  background: transparent;
  padding: 0;
}

.card-thumb.active {
  border-color: var(--blue);
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-category {
  margin-bottom: 5px;
  color: var(--gold);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.card-name {
  min-height: 56px;
  margin: 0 0 12px;
  color: var(--blue);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 27px;
  font-weight: 400;
  line-height: 1.05;
}

.card-name-link {
  color: inherit;
  text-decoration: none;
}

.card-name-link:hover {
  color: var(--gold);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #e8e0cc;
  padding-top: 13px;
}

.card-price {
  color: var(--blue);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 24px;
  font-weight: 600;
  white-space: nowrap;
}

.card-price span {
  margin-left: 2px;
  color: #9a8459;
  font-size: 13px;
  font-weight: 300;
}

.btn-reserve,
.btn-taken,
.modal-booking-content button,
form button {
  border: 1px solid var(--blue);
  background: transparent;
  color: var(--blue);
  padding: 10px 16px;
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 2.3px;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn-reserve:hover,
.modal-booking-content button:hover,
form button:hover {
  background: var(--blue);
  color: var(--card);
  transform: translateY(-1px);
}

.btn-taken {
  border-color: #c0b4a0;
  color: #a79b86;
  cursor: default;
}

.empty-state,
.wl-foot {
  text-align: center;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  letter-spacing: 3px;
}

.empty-state {
  padding: 44px 20px;
  border: 1px solid var(--sand);
  background: rgba(255, 253, 245, 0.72);
  color: var(--muted);
  font-size: 18px;
}

.wl-foot {
  margin-top: 56px;
  font-size: 16px;
}

.modal,
.modal-booking {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
  background: rgba(26, 51, 82, 0.58);
  padding: 18px;
}

.modal.open,
.modal-booking.open {
  display: flex;
}

.intro-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  align-items: center;
  justify-content: center;
  background: rgba(26, 51, 82, 0.48);
  padding: 18px;
  overflow: hidden;
}

.intro-modal.open {
  display: flex;
}

.intro-card {
  position: relative;
  width: min(460px, 92vw);
  aspect-ratio: 1073 / 1466;
  max-height: calc(100vh - 36px);
  overflow: hidden;
  border-radius: 24px;
  background:
    url("intro-frame.png") center / 100% 100% no-repeat,
    #fffdf5;
  padding: clamp(58px, 7vw, 76px) clamp(38px, 6vw, 52px) clamp(24px, 3.5vw, 32px);
  text-align: center;
  box-shadow: 0 28px 90px rgba(26, 51, 82, 0.34);
}

.intro-card::before {
  content: none;
}

.intro-title {
  position: relative;
  z-index: 2;
  width: min(250px, 58%);
  margin: 0 auto clamp(12px, 2vw, 18px);
  color: #e2d447;
  font-family: "Italiana", "Cormorant Garamond", Georgia, serif;
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: 0;
}

.intro-photo {
  position: relative;
  z-index: 2;
  display: block;
  width: min(238px, 55%);
  aspect-ratio: 4 / 5;
  margin: 0 auto clamp(12px, 2vw, 16px);
  object-fit: cover;
  object-position: center 30%;
  border: 9px solid #f4f8fb;
  box-shadow: 0 18px 48px rgba(26, 51, 82, 0.18);
}

.intro-next {
  position: relative;
  z-index: 2;
  border: 1px solid var(--blue);
  background: transparent;
  color: var(--blue);
  padding: 10px 30px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.intro-next:hover {
  background: var(--blue);
  color: var(--card);
}

.side-invite-stack {
  position: fixed;
  right: -38px;
  bottom: 34px;
  z-index: 40;
  width: 132px;
  height: 184px;
  animation: invite-nudge 5.5s ease-in-out infinite;
}

.side-invite-card {
  position: absolute;
  inset: 0;
  width: 118px;
  height: 166px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 14px;
  background: var(--card);
  padding: 0;
  box-shadow: 0 14px 34px rgba(26, 51, 82, 0.22);
}

.side-invite-card-primary {
  z-index: 2;
  transform: rotate(-4deg);
}

.side-invite-card-secondary {
  z-index: 1;
  left: 18px;
  top: 12px;
  transform: rotate(7deg);
  opacity: 0.92;
}

.side-invite-stack:hover {
  transform: translateX(-34px);
}

.side-invite-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@keyframes invite-nudge {
  0%, 72%, 100% {
    transform: translateX(0);
  }
  76% {
    transform: translateX(-16px);
  }
  80% {
    transform: translateX(-5px);
  }
  84% {
    transform: translateX(-13px);
  }
  88% {
    transform: translateX(0);
  }
}

.side-popup-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 310;
  align-items: center;
  justify-content: center;
  background: rgba(26, 51, 82, 0.58);
  padding: 18px;
}

.side-popup-modal.open {
  display: flex;
}

.side-popup-card {
  position: relative;
  width: min(440px, 92vw);
  max-height: calc(100vh - 36px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.side-popup-image {
  width: 100%;
  max-height: calc(100vh - 112px);
  object-fit: contain;
  border: 8px solid var(--card);
  box-shadow: 0 28px 90px rgba(26, 51, 82, 0.34);
}

.side-popup-next {
  border: 1px solid var(--blue);
  background: var(--card);
  color: var(--blue);
  padding: 11px 34px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.side-popup-next:hover {
  background: var(--blue);
  color: var(--card);
}

.modal img {
  max-width: min(90vw, 900px);
  max-height: 90vh;
  border: 8px solid var(--card);
  box-shadow: var(--shadow);
  object-fit: contain;
}

.modal-booking-content {
  position: relative;
  width: min(420px, 100%);
  border: 1px solid var(--sand);
  background: var(--card);
  padding: 36px 30px;
  text-align: center;
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: 0;
  background: none;
  color: #b0a898;
  padding: 0;
  font-size: 22px;
  line-height: 1;
}

.modal-emoji {
  margin-bottom: 8px;
  font-size: 48px;
}

.modal-booking-content h2 {
  margin: 0 0 4px;
  color: var(--blue);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 30px;
  font-weight: 400;
}

.modal-price {
  margin-bottom: 18px;
  color: var(--gold);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 20px;
}

.modal-booking-content p {
  margin: 0 0 18px;
  color: #9a8459;
  font-size: 12px;
  line-height: 1.6;
}

input,
select {
  width: 100%;
  border: 1px solid var(--sand);
  background: var(--paper);
  color: var(--blue);
  outline: none;
  padding: 11px 14px;
  font-size: 13px;
}

input:focus,
select:focus {
  border-color: #9a8459;
}

.modal-booking-content input {
  margin-bottom: 12px;
}

.modal-booking-content button:not(.modal-close) {
  width: 100%;
  margin: 0 0 10px;
  padding: 12px;
}

.modal-booking-content button:last-child {
  border: 0;
  color: #9a8e7a;
  background: none;
  padding: 0;
  text-decoration: underline;
  box-shadow: none;
}

/* Admin and login screens */
body:not(.wishlist-page) {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: flex-start;
  flex-direction: column;
  padding: 44px 18px 70px;
}

body:not(.wishlist-page)::before {
  content: "";
  position: fixed;
  right: -30px;
  bottom: -70px;
  width: 210px;
  height: 330px;
  background: url("deco/lemon-tree.png") center / contain no-repeat;
  opacity: 0.18;
  pointer-events: none;
}

h1 {
  margin: 0 0 26px;
  color: var(--blue);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 300;
  letter-spacing: 4px;
  line-height: 1;
  text-align: center;
}

form,
.login-container,
.tbl-header,
.tbl-content {
  position: relative;
  z-index: 1;
  width: min(1200px, 100%);
  border: 1px solid var(--sand);
  background: rgba(255, 253, 245, 0.82);
}

form,
.login-container {
  padding: 24px;
  box-shadow: var(--shadow);
}

form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  margin-bottom: 26px;
}

form label {
  align-self: center;
  color: var(--blue);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.6px;
}

form button {
  grid-column: 1 / -1;
  justify-self: start;
}

.login-container {
  max-width: 420px;
}

.login-container h1 {
  margin-bottom: 22px;
  font-size: clamp(38px, 8vw, 58px);
  letter-spacing: 2px;
}

.login-container form {
  display: flex;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
  flex-direction: column;
  gap: 12px;
}

.error {
  margin-bottom: 12px;
  color: var(--red);
  font-size: 14px;
  text-align: center;
}

.tbl-header {
  border-bottom: 0;
  background: var(--blue);
}

.tbl-content {
  overflow-x: auto;
  border-top: 0;
  margin-bottom: 24px;
}

table {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  border-collapse: collapse;
  table-layout: fixed;
}

th,
td {
  padding: 15px;
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--card);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

td {
  color: var(--blue);
  border-bottom: 1px solid #e8e0cc;
  font-size: 14px;
  font-weight: 500;
}

tbody tr:nth-child(even) {
  background: rgba(26, 51, 82, 0.035);
}

td img {
  max-width: 100px;
  height: auto;
  border: 4px solid var(--card);
  box-shadow: 0 8px 24px rgba(26, 51, 82, 0.12);
  cursor: pointer;
}

.admin-link,
.admin-name-link {
  color: var(--blue);
  word-break: break-word;
}

.admin-name-link {
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.admin-images {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.admin-image-button {
  width: 54px;
  height: 54px;
  border: 0;
  background: transparent;
  padding: 0;
}

.admin-image-button img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.delete-product-button {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(122, 32, 32, 0.45);
  background: #f5e4e4;
  color: var(--red);
  padding: 0;
  font-size: 24px;
  line-height: 1;
}

.delete-product-button:hover {
  background: var(--red);
  color: var(--card);
}

.status {
  display: inline-block;
  border: 1px solid currentColor;
  padding: 5px 10px;
  font-size: 9px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.status.free {
  background: #edf5e4;
  color: var(--olive);
}

.status.busy {
  background: #f5e4e4;
  color: var(--red);
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 253, 245, 0.7);
}

::-webkit-scrollbar-thumb {
  background: var(--blue);
}

@media (max-width: 768px) {
  .wl-header {
    padding-top: 44px;
  }

  .wl-stamp-row {
    gap: 10px;
  }

  .wl-stamp {
    letter-spacing: 2px;
  }

  .wl-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 22px;
  }

  .gift-card {
    width: min(100%, 300px);
  }

  .gift-image-button {
    height: 180px;
  }

  .card-body {
    padding: 14px 16px 18px;
  }

  .card-thumbs {
    gap: 6px;
    padding: 8px 10px 0;
  }

  .card-thumb {
    width: 34px;
    height: 34px;
  }

  .card-name {
    min-height: 44px;
    font-size: 23px;
    margin-bottom: 10px;
  }

  .card-footer {
    padding-top: 11px;
  }

  .card-price {
    font-size: 21px;
  }

  .card-tag {
    top: 10px;
    right: 10px;
    padding: 4px 9px;
    font-size: 7.5px;
    letter-spacing: 2px;
  }

  .card-shop-flag {
    padding: 4px 9px;
    font-size: 7px;
  }

  .card-category {
    font-size: 7.5px;
    letter-spacing: 2.4px;
  }

  .deco {
    opacity: 0.18;
  }

  .intro-card {
    width: min(380px, 92vw);
    padding: 54px 30px 22px;
  }

  .intro-title {
    width: min(218px, 60%);
    font-size: clamp(29px, 8.5vw, 39px);
  }

  .intro-photo {
    width: min(210px, 56%);
  }

  .side-invite-stack {
    right: -52px;
    bottom: 22px;
    width: 116px;
    height: 162px;
  }

  .side-invite-card {
    width: 108px;
    height: 152px;
  }

  form {
    grid-template-columns: 1fr;
  }

  table {
    min-width: 760px;
  }
}

@media (max-width: 480px) {
  .wl-title,
  .site-title {
    letter-spacing: 5px;
  }

  .card-footer {
    align-items: center;
    flex-direction: row;
  }

  .btn-reserve {
    padding: 9px 12px;
    font-size: 7.5px;
    letter-spacing: 1.8px;
  }

  th,
  td {
    padding: 9px;
    font-size: 12px;
  }
}
