/* ==========================================================================
   Hero Product Add Walkthrough Stylesheet — 100% Production Quality
   ========================================================================== */

.hw-product-walkthrough-container {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  box-sizing: border-box;
  font-family: 'DM Sans', sans-serif;
  color: #1E1E1E;
  user-select: none;
}

/* Outer Shell / Device Frame */
.hw-pf-shell {
  background-color: #EDE6DC;
  border: 1.5px solid #561023;
  box-shadow: 8px 8px 0 0 #561023, -12px -10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  height: 520px;
  display: flex;
  flex-direction: column;
}

/* Main Layout: Full-Width Wishlist Canvas */
.hw-pf-main-layout {
  display: flex;
  flex: 1;
  width: 100%;
  position: relative;
}

.hw-pf-left-canvas {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 24px 36px 24px;
  background-color: #EDE6DC;
  position: relative;
  box-sizing: border-box;
}

/* Wishlist Top Intro Section */
.hw-pf-date-rule {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #561023;
  text-align: center;
  margin-bottom: 12px;
  display: block;
  opacity: 0.85;
}

.hw-pf-hero-message {
  font-family: 'Nanum Myeongjo', serif;
  font-style: italic;
  font-size: 17px;
  line-height: 1.4;
  color: #561023;
  text-align: center;
  max-width: 620px;
  margin: 0 auto 16px;
}

/* Filter Bar Row (Sort Dropdown on Top Right of Grid) */
.hw-pf-filter-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.hw-pf-sort-dropdown {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  background: #FFFFFF;
  color: #561023;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 2px 2px 0 0 rgba(86, 16, 35, 0.15);
  border: 1px solid rgba(86, 16, 35, 0.12);
}

.hw-pf-sort-dropdown .sort-icon {
  font-size: 13px;
}

/* Grid Layout: Action Cards (Left) + Product Cards (Right) */
.hw-pf-grid-area {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

/* Stacked Action Cards Column */
.hw-pf-actions-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 220px;
  flex-shrink: 0;
}

.hw-pf-action-card {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-sizing: border-box;
  position: relative;
  cursor: pointer;
  min-height: 90px;
}

/* 1. Add Gift Card (Matching User Reference Image 1) */
.hw-pf-add-gift-card {
  background: #FFFFFF;
  border: none;
  box-shadow: 4px 4px 0 0 #D4C9BD;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hw-pf-add-gift-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 0 #D4C9BD;
}

.hw-pf-icon-circle {
  width: 42px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hw-pf-card-label-gift {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: #561023;
}

/* 2. Add Cash Fund Card (Matching User Reference Image 1) */
.hw-pf-add-cash-card {
  background: #561023;
  border: none;
  box-shadow: 4px 4px 0 0 #3F0C1A;
  justify-content: space-between;
}

.hw-pf-card-label-cash {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #FFFFFF;
  line-height: 1.25;
}

.hw-pf-cash-motif-icon {
  width: 42px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Product Card Grid Container */
.hw-pf-products-col {
  display: flex;
  gap: 20px;
  flex: 1;
}

/* Product Card (Exact 100% Match to Reference Image 2 Target UI) */
.hw-pf-product-card {
  width: 230px;
  background: #FFFFFF;
  border: none;
  box-shadow: 7px 7px 0 0 #D4C9BD;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.hw-pf-product-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  background: #F8F5F0;
  display: block;
}

.hw-pf-product-details {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  background: #FFFFFF;
}

.hw-pf-product-title {
  font-family: 'Nanum Myeongjo', 'Cormorant Garamond', Georgia, serif;
  font-size: 17px;
  font-weight: 400;
  color: #561023;
  margin-bottom: 8px;
  line-height: 1.3;
}

.hw-pf-product-price {
  font-family: 'Nanum Myeongjo', 'Cormorant Garamond', Georgia, serif;
  font-size: 16px;
  font-weight: 400;
  color: #561023;
  margin-bottom: 18px;
}

.hw-pf-view-btn {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #EDE6DC;
  border: none;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: #561023;
  cursor: pointer;
}

/* Newly Created Product Slot Entry Animation */
.hw-pf-new-product-slot {
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.hw-pf-new-product-slot.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* ==========================================================================
   ADD GIFT GATEWAY MODAL OVERLAY (100% Match to Reference Image 2)
   ========================================================================== */

.hw-pf-modal-overlay {
  position: absolute;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.hw-pf-modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Gateway Modal Container Sheet with Solid Coral Shadow (Image 2) */
.hw-pf-gateway-sheet {
  max-width: 440px;
  width: 100%;
  background: #194234;
  border-radius: 0;
  position: relative;
  box-shadow: 6px 6px 0 0 #E45558, -8px -6px 24px rgba(0, 0, 0, 0.3);
  border: 1.5px solid #194234;
  overflow: hidden;
  box-sizing: border-box;
}

/* Header Section with Dark Curved Graphic Motif (Image 2) */
.hw-pf-gateway-intro {
  position: relative;
  overflow: hidden;
  padding: 36px 32px 26px;
  background: #194234;
}

/* Watermark Motif Background Pattern for Gateway Modal Header (Matching Image 1) */
.hw-pf-gateway-deco {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  top: -25px;
  right: -55px;
  width: 250px;
  height: 250px;
  background-color: rgba(255, 255, 255, 0.08); /* Translucent ogee watermark on dark green */
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22331%22%20height%3D%22343%22%20viewBox%3D%220%200%20331%20343%22%20fill%3D%22none%22%3E%3Cpath%20d%3D%22M%200%20161.564%20L%200%20181.377%20C%202.119%20196.957%2010.77%20210.95%2022.953%20220.181%20C%2037.726%20231.352%2055.5%20236.819%2072.568%20243.228%20C%2095.404%20251.753%20118.004%20262.394%20135.896%20279.68%20C%20152.787%20295.965%20165.088%20318.954%20165.265%20343%20C%20165.441%20318.954%20177.742%20295.907%20194.633%20279.68%20C%20212.525%20262.453%20235.184%20251.753%20257.961%20243.228%20C%20275.029%20236.819%20292.803%20231.352%20307.576%20220.181%20C%20321.054%20210.01%20330.235%20194.018%20331%20176.497%20L%20331%20166.503%20C%20330.235%20148.923%20321.112%20132.99%20307.576%20122.819%20C%20292.803%20111.648%20275.029%20106.122%20257.961%2099.772%20C%20235.125%2091.247%20212.525%2080.606%20194.633%2063.32%20C%20177.742%2047.035%20165.441%2024.046%20165.265%200%20C%20165.088%2024.046%20152.787%2047.093%20135.896%2063.32%20C%20118.004%2080.547%2095.345%2091.247%2072.568%2099.772%20C%2055.5%20106.181%2037.726%20111.648%2022.953%20122.819%20C%2010.712%20132.05%202.06%20146.043%200%20161.623%20L%200%20161.564%20Z%22%20fill%3D%22%23000%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22331%22%20height%3D%22343%22%20viewBox%3D%220%200%20331%20343%22%20fill%3D%22none%22%3E%3Cpath%20d%3D%22M%200%20161.564%20L%200%20181.377%20C%202.119%20196.957%2010.77%20210.95%2022.953%20220.181%20C%2037.726%20231.352%2055.5%20236.819%2072.568%20243.228%20C%2095.404%20251.753%20118.004%20262.394%20135.896%20279.68%20C%20152.787%20295.965%20165.088%20318.954%20165.265%20343%20C%20165.441%20318.954%20177.742%20295.907%20194.633%20279.68%20C%20212.525%20262.453%20235.184%20251.753%20257.961%20243.228%20C%20275.029%20236.819%20292.803%20231.352%20307.576%20220.181%20C%20321.054%20210.01%20330.235%20194.018%20331%20176.497%20L%20331%20166.503%20C%20330.235%20148.923%20321.112%20132.99%20307.576%20122.819%20C%20292.803%20111.648%20275.029%20106.122%20257.961%2099.772%20C%20235.125%2091.247%20212.525%2080.606%20194.633%2063.32%20C%20177.742%2047.035%20165.441%2024.046%20165.265%200%20C%20165.088%2024.046%20152.787%2047.093%20135.896%2063.32%20C%20118.004%2080.547%2095.345%2091.247%2072.568%2099.772%20C%2055.5%20106.181%2037.726%20111.648%2022.953%20122.819%20C%2010.712%20132.05%202.06%20146.043%200%20161.623%20L%200%20161.564%20Z%22%20fill%3D%22%23000%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E");
}

.hw-pf-gateway-eyebrow,
.hw-pf-gateway-headline {
  position: relative;
  z-index: 1;
}

.hw-pf-gateway-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: rgba(237, 230, 220, 0.7);
  font-family: 'DM Sans', sans-serif;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
}

.hw-pf-gateway-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #D5C800;
  margin: 0 0 8px;
  display: block;
}

.wedding-page .hw-pf-gateway-headline,
.hw-pf-gateway-headline {
  font-family: 'Cormorant Garamond', 'Nanum Myeongjo', Georgia, serif !important;
  font-weight: 400 !important;
  font-size: 32px !important;
  line-height: 1.08 !important;
  letter-spacing: -0.025em !important;
  color: #EDE6DC !important;
  margin: 0 !important;
}

/* Body Section (Cream #EDE6DC) */
.hw-pf-gateway-body {
  padding: 22px 32px 28px;
  background: #EDE6DC;
  display: flex;
  flex-direction: column;
}

.wedding-page .hw-pf-gateway-subhead,
.hw-pf-gateway-subhead {
  font-family: 'DM Mono', monospace !important;
  font-size: 0.68rem !important;
  line-height: 1.45 !important;
  color: rgba(86, 16, 35, 0.75) !important;
  margin: 0 0 18px !important;
}

.hw-pf-url-row {
  display: flex;
  gap: 0;
  background: #FFFFFF;
  border: 1.5px solid rgba(86, 16, 35, 0.25);
  box-sizing: border-box;
}

.hw-pf-url-input {
  flex: 1;
  height: 42px;
  border: none;
  background: transparent;
  font-family: 'DM Mono', monospace;
  font-size: 0.74rem;
  color: #1E1E1E;
  padding: 0 12px;
  outline: none;
  box-sizing: border-box;
}

.hw-pf-url-input::placeholder {
  color: rgba(30, 30, 30, 0.35);
}

.hw-pf-autofill-btn {
  width: 96px;
  height: 42px;
  background: #194234;
  border: none;
  font-family: 'DM Mono', monospace;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #FFFFFF;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.15s ease;
}

.hw-pf-autofill-btn.loading {
  background: #E45558;
}

/* Divider with 'OR' Label */
.hw-pf-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
}

.hw-pf-divider-line {
  flex: 1;
  height: 1px;
  background: rgba(86, 16, 35, 0.18);
}

.hw-pf-divider-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(86, 16, 35, 0.45);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Action Tiles Grid */
.hw-pf-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.hw-pf-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px;
  background: transparent;
  border: 1px solid rgba(86, 16, 35, 0.2);
  cursor: pointer;
  text-align: left;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.hw-pf-tile:hover {
  border-color: #561023;
  transform: translateY(-1px);
}

.hw-pf-tile-icon-yellow {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.hw-pf-tile-icon-pink {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #E163C3;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.hw-pf-tile-label {
  font-family: 'Cormorant Garamond', 'Nanum Myeongjo', Georgia, serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: #561023;
  display: block;
  line-height: 1.2;
}

.hw-pf-tile-sub {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  color: rgba(86, 16, 35, 0.5);
  display: block;
  margin-top: 2px;
}

/* Cursor & Ripple Animation Elements */
.hw-pf-cursor {
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  z-index: 2000;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.hw-pf-ripple {
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #E45558;
  background: rgba(228, 85, 88, 0.25);
  z-index: 1999;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.2);
}

.hw-pf-ripple.active {
  animation: hwPfRippleAnim 0.45s cubic-bezier(0, 0, 0.2, 1) forwards;
}

@keyframes hwPfRippleAnim {
  0% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(0.3);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.6);
  }
}

/* Responsive Rules */
/* Maintained desktop side-by-side layout across all viewports */
