/* =====================================================
   Hana Gift Mall Separated
   login.html / mall.html 분리형
   상품 이미지는 틀에 꽉 차게 object-fit: cover 적용
===================================================== */

:root {
  --green: #008485;
  --green-dark: #006d6e;
  --green-soft: #eefafa;
  --navy: #11118f;
  --purple: #c7b4ff;
  --yellow: #ffd53d;
  --bg: #f7f8fb;
  --white: #ffffff;
  --text: #222631;
  --sub: #697386;
  --line: #e7ebf0;
  --red: #ef4444;
  --shadow: 0 14px 34px rgba(31, 41, 55, .07);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--text);
  background: #fff;
  font-weight: 400;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.hidden {
  display: none !important;
}

/* ===================== 로그인 ===================== */
.is-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 18px;
  background: linear-gradient(180deg, #f7fbfb, #eef6f6);
}

.login-page {
  width: 100%;
  max-width: 480px;
}

.login-card {
  padding: 48px 38px;
  border: 1px solid rgba(0,132,133,.1);
  border-radius: 30px;
  background: #fff;
  text-align: center;
  box-shadow: 0 22px 50px rgba(0, 132, 133, .08);
}

.login-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  color: var(--green);
}

.login-logo strong {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: .2px;
}

.logo-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--green);
  color: #fff;
}

.login-card h1 {
  margin-bottom: 9px;
  color: #0f172a;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -.03em;
}

.login-card > p {
  margin-bottom: 32px;
  color: var(--sub);
  line-height: 1.65;
  font-size: .96rem;
}

.login-form {
  display: grid;
  gap: 19px;
  text-align: left;
}

.form-group {
  display: grid;
  gap: 8px;
}

.form-group label {
  color: #344054;
  font-size: .9rem;
  font-weight: 600;
}

.form-group label em {
  color: var(--red);
  font-style: normal;
}

.input-with-icon {
  position: relative;
}

.input-with-icon i {
  position: absolute;
  top: 50%;
  left: 17px;
  color: #8090a4;
  transform: translateY(-50%);
}

input {
  width: 100%;
  min-height: 51px;
  padding: 0 15px;
  border: 1.4px solid #dfe5ec;
  border-radius: 14px;
  background: #fbfcfe;
  color: var(--text);
  outline: 0;
  font-size: .97rem;
  transition: .2s ease;
}

.input-with-icon input {
  padding-left: 47px;
}

input:focus {
  border-color: var(--green);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0,132,133,.08);
}

input:read-only {
  background: #f1f5f9;
  color: #94a3b8;
  border-color: #e2e8f0;
  cursor: not-allowed;
}

input:read-only:focus {
  box-shadow: none;
  border-color: #e2e8f0;
}

.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--sub);
  font-size: .9rem;
}

.login-options label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.login-options input,
.agree-box input,
.type-card input {
  width: 17px;
  min-height: 17px;
  height: 17px;
  accent-color: var(--green);
}

.login-options button {
  border: 0;
  background: none;
  color: #4b5565;
  font-weight: 600;
}

.btn-primary {
  min-height: 55px;
  border: 0;
  border-radius: 15px;
  background: var(--green);
  color: #fff;
  font-size: 1.02rem;
  font-weight: 600;
  box-shadow: 0 10px 22px rgba(0,132,133,.18);
  transition: .2s ease;
}

.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
}

.login-notice {
  margin-top: 28px;
  padding-top: 19px;
  border-top: 1px solid var(--line);
  color: var(--sub);
  font-size: .83rem;
  line-height: 1.6;
}

/* ===================== Header ===================== */
.is-mall {
  background: #fff;
}

.mall-page {
  padding-bottom: 80px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid #eef1f5;
  background: rgba(255,255,255,.93);
  backdrop-filter: blur(10px);
}

.header-inner {
  max-width: 1180px;
  height: 74px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  display: block;
  max-width: 50px;
  height: auto;
}gap: 9px;
}

.brand span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
}

.brand strong {
  font-weight: 700;
  letter-spacing: -.02em;
  font-size: 18px;
}

.site-header nav {
  display: flex;
  gap: 34px;
}

.site-header nav a {
  color: #374151;
  font-size: .93rem;
  font-weight: 500;
}

.site-header nav a:hover {
  color: var(--green);
}

.member-box {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--sub);
  font-size: .9rem;
}

.member-box button {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--sub);
}

/* ===================== Main Visual Slider ===================== */
.main-visual {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 52px 22px 30px;
  overflow: hidden;
}

.visual-track-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 28px;
}

.visual-track {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
  transition: transform .55s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}

.visual-card {
  border-radius: 28px;
  overflow: hidden;
}

.slide-card {
  flex: 0 0 100%;
  width: 100%;
  min-height: 340px;
  padding: 56px 92px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 28px;
  box-shadow: var(--shadow);
  opacity: 1;
  transform: none;
  transition: opacity .45s ease;
}

.slide-card.is-active {
  opacity: 1;
}

.slide-yellow {
  background: linear-gradient(135deg, #ffd33d, #ffc83a);
}

.slide-purple {
  background: linear-gradient(135deg, #b798ff 0%, #e5b2ff 100%);
}

.slide-lavender {
  background: linear-gradient(135deg, #eeeaff, #dcd9ff);
}

.visual-copy span {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(0,0,0,.78);
  color: #fff;
  font-size: .82rem;
  font-weight: 500;
}

.visual-copy h1 {
  margin-bottom: 16px;
  color: #1f2230;
  font-size: clamp(2rem, 4vw, 2.85rem);
  line-height: 1.16;
  letter-spacing: -.055em;
  font-weight: 600;
}

.visual-copy p {
  margin-bottom: 26px;
  color: #3f4251;
  line-height: 1.65;
}

.visual-copy a {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: #fff;
  color: #222;
  font-weight: 500;
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
}

.slide-products {
  position: relative;
  min-height: 190px;
}

.slide-products img {
  position: absolute;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 28px rgba(31, 41, 55, .14);
}

.slide-products img:nth-child(1) {
  width: 168px;
  height: 126px;
  top: 4px;
  right: 28px;
  transform: rotate(7deg);
}

.slide-products img:nth-child(2) {
  width: 152px;
  height: 112px;
  right: 0;
  bottom: 6px;
  transform: rotate(-4deg);
}

.slide-products img:nth-child(3) {
  width: 136px;
  height: 104px;
  left: 4px;
  bottom: 8px;
  transform: rotate(-8deg);
}

.visual-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: #5d6677;
  box-shadow: 0 8px 18px rgba(31,41,55,.08);
  transform: translateY(-50%);
}

.visual-arrow.left {
  left: 42px;
}

.visual-arrow.right {
  right: 42px;
}

.visual-arrow:hover {
  color: var(--green);
  transform: translateY(-50%) scale(1.04);
}

.visual-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 22px;
}

.visual-dots button {
  width: 10px;
  height: 10px;
  min-height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #d5dce5;
}

.visual-dots button.active {
  background: #20242c;
}



/* ===================== Main Visual Image Overlay ===================== */

/* 기존 배경컬러 유지 */
.slide-yellow {
  background: linear-gradient(135deg, #ffd33d, #ffc83a);
}

.slide-purple {
  background: linear-gradient(135deg, #b798ff 0%, #e5b2ff 100%);
}

.slide-lavender {
  background: linear-gradient(135deg, #eeeaff, #dcd9ff);
}

/* 슬라이드 기본 설정 */
.slide-card {
  position: relative;
  overflow: hidden;
}

/* 배경컬러 위에 이미지 배치 - 투명도 없음 */
.slide-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 1;
  pointer-events: none;
}

/* 각 슬라이드 이미지 */
.visual-img-01::after {
  background-image: url("/assets/img/main001.webp");
}

.visual-img-02::after {
  background-image: url("/assets/img/main002.webp");
}

.visual-img-03::after {
  background-image: url("/assets/img/main003.webp");
}

/* 텍스트는 이미지 위로 */
.visual-copy {
  position: relative;
  z-index: 2;
}

/* ===================== Quick Menu ===================== */
.quick-menu {
  max-width: 680px;
  margin: 0 auto 46px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 0 22px;
}

.quick-menu a {
  display: grid;
  justify-items: center;
  gap: 9px;
  color: #374151;
  font-size: .85rem;
  font-weight: 500;
}

.quick-menu i {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #f2f5f8;
  color: var(--green);
  font-size: 1.15rem;
  transition: .2s ease;
}

.quick-menu a:hover i {
  background: var(--green);
  color: #fff;
  transform: translateY(-3px);
}

/* ===================== Section Common ===================== */
.section,
.member-status,
.submit-bar,
.footer {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 22px;
  padding-right: 22px;
}

.section {
  padding-top: 58px;
}

.section-title {
  margin-bottom: 26px;
  text-align: center;
}

.section-title span {
  display: inline-block;
  margin-bottom: 9px;
  color: var(--green);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.section-title h2 {
  margin-bottom: 10px;
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -.04em;
}

.section-title p {
  color: var(--sub);
  line-height: 1.65;
}

.row-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
}

/* ===================== How To ===================== */
.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step-card {
  position: relative;
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(31,41,55,.04);
}

.step-card em {
  display: inline-block;
  margin-bottom: 18px;
  color: #c7d0dd;
  font-size: .92rem;
  font-style: normal;
  font-weight: 600;
}

.step-card i {
  position: absolute;
  top: 24px;
  right: 22px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: var(--green-soft);
  color: var(--green);
}

.step-card h3 {
  margin-bottom: 9px;
  font-size: 1.08rem;
  font-weight: 600;
}

.step-card p {
  color: var(--sub);
  font-size: .92rem;
  line-height: 1.55;
}

/* ===================== Member Status New Design ===================== */

.member-status {
  max-width: 1136px;
   margin: 30px auto 34px;
  padding: 24px 28px;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 20px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(0, 132, 133, 0.1), rgba(255, 255, 255, 0.96) 48%),
    #ffffff;
  border: 1px solid rgba(0, 132, 133, 0.14);
  box-shadow: 0 16px 38px rgba(31, 41, 55, 0.08);
  position: relative;
  overflow: hidden;
}

.member-status::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(0, 132, 133, 0.08);
  pointer-events: none;
}

.member-status-icon {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(135deg, #008485, #00a3a4);
  color: #ffffff;
  font-size: 1.55rem;
  box-shadow: 0 14px 28px rgba(0, 132, 133, 0.26);
}

.member-status-content {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.member-status-label {
  display: inline-block;
  margin-bottom: 6px;
  color: #008485;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.member-status-content strong {
  display: block;
  margin-bottom: 6px;
  color: #111827;
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.member-status-content p {
  margin: 0;
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.55;
}

.member-status-badge {
  position: relative;
  z-index: 1;
  min-width: 120px;
  height: 44px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #008485;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(0, 132, 133, 0.22);
  white-space: nowrap;
}

/* 모바일 */
@media (max-width: 768px) {
  .member-status {
    grid-template-columns: 54px 1fr;
    gap: 16px;
    padding: 22px;
    border-radius: 24px;
  }

  .member-status-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    font-size: 1.35rem;
  }

  .member-status-badge {
    grid-column: 1 / -1;
    width: 100%;
    height: 42px;
  }

  .member-status-content strong {
    font-size: 1.12rem;
  }

  .member-status-content p {
    font-size: 0.9rem;
  }
}



/* ===================== Gift Cards ===================== */
.gift-groups {
  display: grid;
  gap: 30px;
}

.gift-group {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--shadow);
}

.group-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.group-head h3 {
  margin-bottom: 7px;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -.03em;
}

.group-head p {
  color: var(--sub);
  font-size: .92rem;
}

.group-head span {
  flex-shrink: 0;
  height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: .84rem;
  font-weight: 600;
}

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

.product-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.product-card {
  position: relative;
  overflow: hidden;
  border: 1.4px solid #edf1f5;
  border-radius: 24px;
  background: #fff;
  text-align: left;
  transition: .2s ease;
}

.product-card:hover {
  border-color: var(--green);
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0,132,133,.08);
}

.product-card.selected {
  border-color: var(--green);
  background: #f8ffff;
  box-shadow: 0 0 0 1px var(--green) inset;
}

/* 상품 이미지 정사각형 */
.product-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f4f7fa;
  overflow: hidden;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.product-info {
  padding: 19px;
}

.product-info h4 {
  min-height: 47px;
  margin-bottom: 14px;
  color: #202632;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.45;
  word-break: keep-all;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  color: var(--sub);
  font-size: .88rem;
}

.product-meta strong {
  color: var(--green);
  font-weight: 500;
}

.product-check {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #c0c8d4;
  box-shadow: 0 6px 14px rgba(31,41,55,.08);
}

.product-card.selected .product-check {
  background: var(--green);
  color: #fff;
}

/* ===================== Responsive ===================== */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-grid.three {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .gift-group {
    padding: 24px 20px;
    border-radius: 24px;
  }

  .group-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-grid,
  .product-grid.three {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .product-info {
    padding: 15px;
  }

  .product-info h4 {
    min-height: auto;
    font-size: .95rem;
  }
}

@media (max-width: 480px) {
  .product-grid,
  .product-grid.three {
    grid-template-columns: 1fr;
  }
}

/* ===================== Cart ===================== */
.btn-outline {
  height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--sub);
  font-weight: 500;
}

.btn-outline:hover {
  border-color: var(--green);
  color: var(--green);
}

.cart-list {
  display: grid;
  gap: 12px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.cart-empty {
  padding: 30px;
  border-radius: 18px;
  background: #f8fafc;
  color: var(--sub);
  text-align: center;
}

.cart-item {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid #eef2f6;
  border-radius: 20px;
  background: #fff;
}

.cart-img {
  width: 110px;
  height: 82px;
  overflow: hidden;
  border-radius: 16px;
  background: #f6f8fb;
}

.cart-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.cart-info em {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--green);
  font-size: .84rem;
  font-style: normal;
  font-weight: 500;
}

.cart-info strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
  font-weight: 500;
}

.cart-info p {
  color: var(--sub);
  font-size: .9rem;
}

.cart-remove {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 13px;
  background: #fff1f1;
  color: var(--red);
}

/* ===================== Delivery ===================== */
.agree-box,
.delivery-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.agree-box {
  margin-bottom: 16px;
}

.agree-box label {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 500;
}

.agree-box p {
  margin-top: 10px;
  padding-left: 28px;
  color: var(--sub);
  font-size: .9rem;
}

.address-type {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 22px;
}

.type-card {
  position: relative;
  display: grid;
  grid-template-columns: 20px 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 18px;
  border: 1.4px solid var(--line);
  border-radius: 20px;
  background: #fff;
  cursor: pointer;
  transition: .2s ease;
}

.type-card.active {
  border-color: var(--green);
  background: var(--green-soft);
}

.type-card i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: #f2f5f8;
  color: var(--green);
}

.type-card strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 500;
}

.type-card span {
  display: block;
  color: var(--sub);
  font-size: .88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.delivery-form {
  display: grid;
  gap: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.zip-grid {
  grid-template-columns: 1fr 190px;
  align-items: end;
}

.btn-address {
  min-height: 51px;
  border: 0;
  border-radius: 14px;
  background: var(--navy);
  color: #fff;
  font-weight: 500;
}

.btn-address:hover {
  background: #07066f;
}

.btn-address:disabled {
  opacity: .45;
  cursor: not-allowed;
}

/* ===================== 신청버튼 ===================== */
.submit-bar {
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
}

.submit-bar > div {
  text-align: center;
}

.submit-bar strong {
  display: block;
  margin-bottom: 6px;
}

.submit-bar p {
  margin: 0;
}

.submit-bar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.submit-bar {
  margin-top: 42px;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-radius: 28px;
  background: #008a83;
  color: #fff;
}

.submit-bar strong {
  font-size: 1.16rem;
  font-weight: 500;
}

.submit-bar p {
  margin-top: 6px;
  color: rgba(255,255,255,.72);
}

.submit-bar button {
  min-width: 220px;
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #00513f;
  font-size: 20px;
  font-weight: 600;
}

/* ===================== Complete / Footer / Modal ===================== */
.is-complete {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 18px;
  background: var(--bg);
}

.footer {
  margin-top: 70px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--sub);
  font-size: .9rem;
}

.footer strong {
  color: var(--text);
  font-weight: 600;
}

.complete-page {
  width: 100%;
  max-width: 720px;
}

.complete-card {
  padding: 50px 36px;
  border-radius: 32px;
  background: #fff;
  text-align: center;
  box-shadow: var(--shadow);
}

.complete-icon {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-size: 2.3rem;
}

.complete-card h1 {
  margin-bottom: 10px;
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: -.04em;
}

.complete-card > p {
  color: var(--sub);
}

.complete-list {
  display: grid;
  gap: 10px;
  margin: 26px 0;
  text-align: left;
}

.complete-row {
  padding: 14px 16px;
  border-radius: 16px;
  background: #f8fafc;
  display: flex;
  gap: 12px;
  align-items: center;
}

.complete-row img {
  width: 68px;
  height: 54px;
  object-fit: cover;
  border-radius: 12px;
}

.complete-row strong {
  color: var(--green);
  font-weight: 500;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(15,23,42,.58);
  backdrop-filter: blur(4px);
}

.modal.show {
  display: flex;
}

.modal-box {
  width: 100%;
  max-width: 420px;
  padding: 34px 30px;
  border-radius: 26px;
  background: #fff;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,.2);
}

.modal-icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-size: 1.75rem;
}

.modal-icon.error {
  background: #fee2e2;
  color: var(--red);
}

.modal-box h3 {
  margin-bottom: 10px;
  font-size: 1.22rem;
  font-weight: 600;
}

.modal-box p {
  margin-bottom: 24px;
  color: var(--sub);
  line-height: 1.65;
  word-break: keep-all;
}

.modal-box button {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 14px;
  background: var(--green);
  color: #fff;
  font-weight: 500;
}

/* ===================== Terms Modal & Agree Box ===================== */
.agree-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.agree-header label {
  margin-bottom: 0;
}

.btn-terms {
  background: var(--green-soft);
  border: 1px solid rgba(0, 132, 133, 0.15);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green);
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-terms:hover {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.terms-modal-box {
  max-width: 640px;
  padding: 32px 28px;
  text-align: left;
}

.terms-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.terms-header h3 {
  margin-bottom: 0;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.modal-box .btn-close-terms {
  width: auto;
  min-height: auto;
  background: transparent;
  border: none;
  font-size: 1.6rem;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  line-height: 1;
}

.modal-box .btn-close-terms:hover {
  background: #f1f5f9;
  color: var(--text);
}

.terms-content {
  max-height: 50vh;
  overflow-y: auto;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #334155;
  margin-bottom: 24px;
  padding-right: 14px;
}

.terms-content::-webkit-scrollbar {
  width: 6px;
}
.terms-content::-webkit-scrollbar-track {
  background: #f1f1f1; 
  border-radius: 4px;
}
.terms-content::-webkit-scrollbar-thumb {
  background: #cbd5e1; 
  border-radius: 4px;
}
.terms-content::-webkit-scrollbar-thumb:hover {
  background: #94a3b8; 
}

.terms-content h4 {
  margin: 16px 0 6px;
  font-size: 0.9rem;
  color: var(--green);
}

.terms-content h4:first-child {
  margin-top: 0;
}

.terms-content p {
  margin-bottom: 8px;
  color: var(--text);
}

.terms-content ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 12px;
}

.terms-content li {
  margin-bottom: 4px;
  color: var(--sub);
}

.terms-footer {
  text-align: center;
}

.btn-terms-confirm {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
}




/* ===================== Responsive ===================== */
@media (max-width: 1080px) {
  .site-header nav {
    display: none;
  }

  .visual-side {
    display: none;
  }

  .visual-arrow.left {
    left: 34px;
  }

  .visual-arrow.right {
    right: 34px;
  }

  .product-grid,
  .product-grid.three,
  .step-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .login-card {
    padding: 40px 24px;
    border-radius: 26px;
  }

  .header-inner {
    height: auto;
    padding: 16px;
    flex-wrap: wrap;
  }

  .member-box {
    width: 100%;
    justify-content: space-between;
  }

  .main-visual {
    padding-top: 30px;
  }

  .slide-card {
    flex-basis: 100%;
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 34px 26px;
  }

  .slide-products {
    min-height: 145px;
  }

  .slide-products img:nth-child(1) {
    width: 124px;
    height: 96px;
    right: 30px;
  }

  .slide-products img:nth-child(2) {
    width: 118px;
    height: 92px;
  }

  .slide-products img:nth-child(3) {
    width: 104px;
    height: 84px;
  }

  .visual-arrow {
    display: none;
  }

  .quick-menu {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }

  .quick-menu i {
    width: 42px;
    height: 42px;
  }

  .quick-menu span {
    font-size: .76rem;
  }

  .section {
    padding-top: 44px;
  }

  .section-title,
  .row-title {
    text-align: left;
  }

  .row-title,
  .group-head,
  .member-status,
  .submit-bar,
  .footer {
    flex-direction: column;
    align-items: stretch;
  }

  .product-grid,
  .product-grid.three,
  .step-grid,
  .form-grid,
  .zip-grid,
  .address-type {
    grid-template-columns: 1fr;
  }

  .gift-group,
  .agree-box,
  .delivery-card,
  .cart-list {
    padding: 22px;
    border-radius: 22px;
  }

  .cart-item {
    grid-template-columns: 88px 1fr auto;
    gap: 12px;
  }

  .cart-img {
    width: 88px;
    height: 68px;
  }

  .submit-bar button {
    width: 100%;
  }
}


/* 주소 선택 설명 한줄 처리 */
.address-type .type-card {
  min-width: 0;
}

.address-type .type-card div,
.address-type .type-card strong,
.address-type .type-card span {
  min-width: 0;
}

.address-type .type-card span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 상품 이미지가 카드 틀을 꽉 채우도록 보정 */
.product-img,
.cart-img,
.complete-row img,
.admin-table-img {
  background: #f3f6f9;
}

.product-img img,
.cart-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* =====================================================
   Hana Bank 로그인 페이지 - 흰색 큰박스 디자인
   배경 이미지 + 화이트 로그인 박스
===================================================== */

body.admin-login-theme,
body.admin-login-theme.is-login {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  display: block;
  background:
    linear-gradient(rgba(5, 12, 18, 0.56), rgba(5, 12, 18, 0.32)),
    url("../img/login_bg.jpg") center center / cover no-repeat fixed !important;
  color: #111827;
  overflow-x: hidden;
}

/* 배경 장식 */
body.admin-login-theme::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(0, 132, 133, 0.24), transparent 32%),
    radial-gradient(circle at 82% 78%, rgba(0, 132, 133, 0.16), transparent 30%);
}

/* 로그인 전체 영역 */
.admin-login-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 36px 20px;
}

/* 큰 흰색 박스 */
.admin-login-shell {
  width: min(980px, 100%);
  min-height: 560px;
  display: grid;
  grid-template-columns: 1fr 1px 430px;
  align-items: center;
  gap: 54px;
  padding: 56px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* 좌측 로고 영역 */
.admin-login-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* 기존 아이콘 숨김 */
.admin-brand-mark {
  display: none;
}

/* 로고 */
.admin-brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-brand-logo img {
  display: block;
  max-width: 280px;
  width: 100%;
  height: auto;
}

/* 기존 텍스트 로고를 사용할 경우 대비 */
.admin-login-brand h1 {
  margin: 0 0 8px;
  color: #111827;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 0.95;
}

.admin-login-brand p {
  color: #6b7280;
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* 가운데 구분선 */
.admin-login-divider {
  width: 1px;
  height: 360px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(17, 24, 39, 0.18),
    transparent
  );
}

/* 오른쪽 로그인 영역 */
.admin-login-card {
  width: 100%;
}

/* 로그인 타이틀 */
.admin-login-title {
  margin-bottom: 30px;
}

.admin-login-title span {
  display: inline-block;
  margin-bottom: 14px;
  color: #008485;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.admin-login-title h2 {
  margin: 0 0 12px;
  color: #111827;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.045em;
}

.admin-login-title p {
  margin: 0;
  color: #6b7280;
  font-size: 0.96rem;
  line-height: 1.72;
}

/* 폼 */
.admin-login-form {
  display: grid;
  gap: 18px;
}

.admin-form-row {
  display: grid;
  gap: 9px;
}

.admin-form-row label {
  color: #374151;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

/* 입력창 */
.admin-input-box {
  position: relative;
}

.admin-input-box > i {
  position: absolute;
  top: 50%;
  left: 16px;
  color: #9ca3af;
  transform: translateY(-50%);
  z-index: 2;
}

.admin-input-box input {
  width: 100%;
  height: 54px;
  min-height: 54px;
  padding: 0 16px 0 46px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #f9fafb;
  color: #111827;
  outline: none;
  font-size: 0.98rem;
  transition: 0.2s ease;
  box-shadow: none;
}

.admin-input-box input::placeholder {
  color: #9ca3af;
}

.admin-input-box input:focus {
  background: #ffffff;
  border-color: #008485;
  box-shadow: 0 0 0 4px rgba(0, 132, 133, 0.1);
}

.btn-toggle-pw {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  padding: 5px;
  cursor: pointer;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  font-size: 1.1rem;
}
.btn-toggle-pw:hover {
  color: #4b5563;
}
.btn-toggle-pw:focus-visible {
  outline: 2px solid #008485;
  border-radius: 4px;
}

.admin-input-box:focus-within i {
  color: #008485;
}

/* 로그인 옵션 */
.admin-login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2px 0 4px;
  color: #6b7280;
  font-size: 0.88rem;
}

.admin-login-options label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-login-options input {
  width: 16px;
  height: 16px;
  min-height: 16px;
  accent-color: #008485;
}

.admin-login-options button {
  border: 0;
  background: none;
  color: #6b7280;
  font-weight: 600;
  cursor: pointer;
}

.admin-login-options button:hover {
  color: #008485;
}

/* 로그인 버튼 */
.admin-login-btn {
  height: 56px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #008485, #00a2a3);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 18px 36px rgba(0, 132, 133, 0.28);
  transition: 0.2s ease;
  cursor: pointer;
}

.admin-login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(0, 132, 133, 0.38);
}

.admin-login-btn:active {
  transform: translateY(0);
}

/* 안내 박스 */
.admin-login-notice {
  margin-top: 24px;
  padding: 16px 18px;
  border: 1px solid rgba(0, 132, 133, 0.16);
  border-radius: 14px;
  background: rgba(0, 132, 133, 0.055);
  color: #6b7280;
  font-size: 0.82rem;
  line-height: 1.6;
}

.admin-login-notice i {
  color: #008485;
  margin-right: 4px;
}

/* IP */
.admin-login-ip {
  margin-top: 18px;
  color: #9ca3af;
  font-size: 0.82rem;
  text-align: right;
}

.admin-login-ip span {
  color: #4b5563;
  font-weight: 600;
}

/* 태블릿 */
@media (max-width: 900px) {
  .admin-login-shell {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 40px 28px;
  }

  .admin-login-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(
      to right,
      transparent,
      rgba(17, 24, 39, 0.16),
      transparent
    );
  }

  .admin-login-brand {
    justify-content: center;
    text-align: center;
    flex-direction: column;
  }

  .admin-brand-logo img {
    max-width: 230px;
  }

  .admin-login-card {
    max-width: 460px;
    margin: 0 auto;
  }
}

/* 모바일 */
@media (max-width: 520px) {
  .admin-login-page {
    padding: 18px;
  }

  .admin-login-shell {
    min-height: auto;
    padding: 30px 20px;
    border-radius: 24px;
  }

  .admin-brand-logo img {
    max-width: 200px;
  }

  .admin-login-title h2 {
    font-size: 1.65rem;
  }

  .admin-login-title p {
    font-size: 0.9rem;
  }

  .admin-input-box input {
    height: 52px;
    min-height: 52px;
  }

  .admin-login-btn {
    height: 54px;
  }
}. p r o d u c t - s w i p e r   {   p a d d i n g - b o t t o m :   4 5 p x   ! i m p o r t a n t ;   }  
 