/* ===========================================================
   CHIHO SHOPPING – White Modern Theme
   (HTML 구조 그대로, 색/레이아웃만 전면 교체)
=========================================================== */

/* 기본 리셋 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f7f7f7;
  color: #111827;
}

a {
  color: inherit;
  text-decoration: none;
}
ul { list-style: none; }

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

/* 페이지 래퍼 */
.shopping-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===========================================================
   HEADER
=========================================================== */

.shopping-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e5e7eb;
}

.shopping-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.shopping-logo a {
  font-weight: 800;
  letter-spacing: 0.16em;
  font-size: 18px;
  color: #111827;
}

.shopping-nav ul {
  display: flex;
  gap: 18px;
}

.shopping-nav a {
  font-size: 14px;
  color: #4b5563;
  opacity: 0.9;
}

.shopping-nav a:hover {
  color: #111827;
  opacity: 1;
}

.shopping-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #4b5563;
}

.shopping-header-right a {
  color: #4b5563;
}

.shopping-header-right a:hover {
  color: #111827;
}

/* ===========================================================
   FLASH MESSAGE
=========================================================== */

.shopping-flash-wrap {
  max-width: 1200px;
  margin: 10px auto 0;
  padding: 0 20px;
}

.shopping-flash {
  background: #e5f3ff;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  color: #1d4ed8;
}

/* ===========================================================
   HERO (메인 인트로)
=========================================================== */

.shopping-hero {
  position: relative;
  min-height: 420px;
  padding: 40px 0 20px;
  background: linear-gradient(120deg, #fdfcfb, #f3f4f6);
}

.shopping-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.shopping-hero-text {
  flex: 1.2;
}

.shopping-hero-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  color: #111827;
  text-transform: uppercase;
}

.shopping-hero-subtitle {
  font-size: 16px;
  color: #4b5563;
  margin-bottom: 6px;
}

.shopping-hero-period {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 18px;
}

.shopping-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 999px;
  background: #111827;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.shopping-hero-btn:hover {
  background: #0f172a;
}

.shopping-hero-art {
  flex: 1;
  max-width: 360px;
  height: 240px;
  border-radius: 24px;
  overflow: hidden;
  background: #e5e7eb;
  box-shadow: 0 20px 50px rgba(15, 23, 42, .12);
}

/* HERO 정렬용 (옵션) */
.shopping-align-left .shopping-hero-text { text-align: left; }
.shopping-align-center .shopping-hero-text { text-align: center; margin: 0 auto; }
.shopping-align-right .shopping-hero-text { text-align: right; margin-left: auto; }

@media (max-width: 960px) {
  .shopping-hero-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .shopping-hero-art {
    width: 100%;
    max-width: none;
  }
}

/* ===========================================================
   상단 필터바 (카드형)
=========================================================== */

.shopping-top-filters {
  max-width: 1200px;
  margin: 24px auto 0;
  padding: 0 20px;
}

.shopping-top-filters-inner {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  padding: 12px 16px 10px;
  box-shadow: 0 14px 35px rgba(15, 23, 42, .06);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shopping-filter-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.shopping-filter-row-bottom {
  border-top: 1px solid #e5e7eb;
  padding-top: 8px;
  margin-top: 4px;
}

.shopping-filter-label {
  font-size: 12px;
  color: #6b7280;
  min-width: 70px;
}

/* 검색 */
.shopping-search-form-horizontal {
  flex: 1;
  display: flex;
  gap: 8px;
}

.shopping-search-form-horizontal input {
  flex: 1;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  color: #111827;
  font-size: 13px;
}

.shopping-search-form-horizontal input::placeholder {
  color: #9ca3af;
}

.shopping-search-form-horizontal button {
  padding: 8px 14px;
  border-radius: 999px;
  border: none;
  background: #111827;
  color: #ffffff;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

.shopping-search-form-horizontal button:hover {
  background: #020617;
}

/* 카테고리 pill */

.shopping-category-scroll {
  flex: 1;
  display: flex;
  overflow-x: auto;
  gap: 8px;
  padding-bottom: 4px;
}

.shopping-category-scroll::-webkit-scrollbar {
  height: 4px;
}
.shopping-category-scroll::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 999px;
}

.cat-item {
  padding: 6px 14px;
  border-radius: 999px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  font-size: 12px;
  white-space: nowrap;
  color: #4b5563;
}

.cat-item.active {
  background: #111827;
  color: #ffffff;
  border-color: #111827;
}

/* 정렬 셀렉트 */

.shopping-sort-horizontal {
  margin-left: auto;
}

.shopping-sort-horizontal select {
  padding: 6px 24px 6px 10px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #4b5563;
  font-size: 12px;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #9ca3af 50%),
    linear-gradient(135deg, #9ca3af 50%, transparent 50%);
  background-position: calc(100% - 12px) 50%, calc(100% - 8px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

@media (max-width: 640px) {
  .shopping-filter-row {
    flex-direction: column;
    align-items: stretch;
  }
  .shopping-filter-label {
    min-width: auto;
  }
  .shopping-sort-horizontal {
    margin-left: 0;
  }
}

/* ===========================================================
   섹션 공통
=========================================================== */

.shopping-section {
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 20px;
}

.shopping-section-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #111827;
}

.shopping-section-desc {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 18px;
}

/* 섹션 사이 배너 (텍스트만 있는 구분용) */

.shopping-divider {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  text-align: center;
  font-size: 15px;
  color: #4b5563;
}

/* ===========================================================
   상품 그리드
=========================================================== */

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

@media (max-width: 1024px) {
  .shopping-product-grid,
  .shopping-product-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .shopping-product-grid,
  .shopping-product-grid-3 {
    grid-template-columns: 1fr;
  }
}

/* ===========================================================
   상품 카드
=========================================================== */

.shopping-card {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  padding: 10px 10px 12px;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, border-color 0.15s ease-out;
  box-shadow: 0 14px 35px rgba(15, 23, 42, .04);
}

.shopping-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(15, 23, 42, .10);
  border-color: #d1d5db;
}

.shopping-card-link {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

/* 썸네일 */

.shopping-card-thumb,
.shopping-product-thumb {
  position: relative;
  width: 100%;
  padding-top: 75%; /* 4:3 */
  border-radius: 12px;
  overflow: hidden;
  background: #f3f4f6;
}

.shopping-card-thumb img,
.shopping-product-thumb img,
.shopping-card img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* 할인/뱃지 */

.shopping-card-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.8);
  font-size: 11px;
  color: #f9fafb;
}

/* 카드 본문 텍스트 */

.shopping-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}

.shopping-card-title {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.shopping-card-summary {
  font-size: 12px;
  color: #6b7280;
  min-height: 32px;
}

.shopping-card-meta,
.shopping-card-rating {
  font-size: 11px;
  color: #9ca3af;
}

/* 가격 라인 */

.shopping-card-price-wrap {
  margin-top: 6px;
}

.shopping-card-price-main {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price-sale {
  font-weight: 700;
  font-size: 14px;
  color: #111827;
}

.price-base {
  font-size: 11px;
  text-decoration: line-through;
  color: #9ca3af;
}

.price-normal {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

/* 카드 버튼 */

.shopping-card-actions {
  margin-top: 10px;
}

.shopping-card-actions form { margin: 0; }

.shopping-card-btn-main {
  width: 100%;
  padding: 8px 10px;
  border-radius: 999px;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: #111827;
  color: #ffffff;
}

.shopping-card-btn-main:hover {
  background: #020617;
}

/* 로더 */

.shopping-loader {
  text-align: center;
  padding: 16px;
  font-size: 13px;
  color: #6b7280;
}

/* ===========================================================
   FOOTER
=========================================================== */

.shopping-footer {
  border-top: 1px solid #e5e7eb;
  padding: 24px 0 28px;
  margin-top: 50px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 12px;
}

.shopping-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.shopping-footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 14px;
}

.shopping-footer-label {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #111827;
}

.shopping-footer-text {
  font-size: 12px;
  color: #6b7280;
}

.shopping-footer-bottom {
  font-size: 11px;
  color: #9ca3af;
  text-align: center;
}

@media (max-width: 768px) {
  .shopping-footer-cols {
    grid-template-columns: 1fr;
  }
}

/* ===========================================================
   회원가입 / 로그인
=========================================================== */

.shopping-auth-wrap {
  max-width: 480px;
  margin: 48px auto 80px;
  padding: 0 20px;
}

.shopping-auth-wrap h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 18px;
  color: #111827;
}

.shopping-auth-form {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  padding: 18px 16px 20px;
  box-shadow: 0 16px 40px rgba(15,23,42,.06);
  font-size: 13px;
}

.shopping-auth-form .form-row {
  margin-bottom: 12px;
}

.shopping-auth-form label {
  display: block;
  font-size: 12px;
  margin-bottom: 6px;
  color: #4b5563;
}

.shopping-auth-form input[type="text"],
.shopping-auth-form input[type="password"],
.shopping-auth-form input[type="email"],
.shopping-auth-form input[type="tel"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  color: #111827;
  font-size: 13px;
  margin-bottom: 16px;
}

.shopping-auth-form input::placeholder {
  color: #9ca3af;
}

.shopping-address-search .shopping-address-line {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.shopping-address-search .shopping-address-line input[type="text"] {
  flex: 1;
  height: 42px;
  padding: 10px 12px;
}

.shopping-address-search .shopping-address-line button {
  height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  background: #111827;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shopping-auth-form button[type="submit"] {
  width: 100%;
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 999px;
  border: none;
  background: #111827;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* ===========================================================
   상세 페이지
=========================================================== */

/* 상세 래퍼, 구조는 그대로 두고 배경만 화이트 카드로 */
.shopping-detail-wrap {
  max-width: 1100px;
  margin: 40px auto 80px;
  padding: 32px 40px 40px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(15,23,42,.06);
}

.shopping-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: flex-start;
}

@media (max-width: 900px) {
  .shopping-detail-wrap {
    padding: 20px 16px 28px;
  }
  .shopping-detail-grid {
    grid-template-columns: 1fr;
  }
}

.shopping-detail-main-img {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  padding: 0;
  max-width: 520px;
  margin: 0 auto;
  background: #f3f4f6;
  box-shadow: none;
}

.shopping-detail-main-bg { display: none; }

.shopping-detail-main-img img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  border-radius: 20px;
}

.shopping-detail-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #111827;
}

.shopping-detail-summary {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 12px;
}

.shopping-detail-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  margin-bottom: 16px;
  color: #f59e0b;
}

.shopping-detail-rating .score {
  color: #4b5563;
}

/* 가격 */

.shopping-detail-price {
  margin-bottom: 18px;
}

.shopping-detail-price .price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.shopping-detail-price .sale {
  font-size: 22px;
  font-weight: 800;
  color: #111827;
}

.shopping-detail-price .base {
  font-size: 14px;
  text-decoration: line-through;
  color: #9ca3af;
}

.shopping-detail-price .disc {
  font-size: 14px;
  font-weight: 700;
  color: #ef4444;
}

/* 폼 */

.shopping-detail-form {
  margin-top: 4px;
}

.shopping-detail-row {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.shopping-detail-row label {
  font-size: 13px;
  font-weight: 600;
  color: #4b5563;
}

.shopping-detail-row input[type="number"] {
  width: 80px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  color: #111827;
  font-size: 13px;
}

.shopping-detail-row .btn-main,
.shopping-detail-row .btn-sub,
.btn-back-detail {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
}

.shopping-detail-row .btn-main {
  background: #111827;
  color: #ffffff;
  border: none;
  font-weight: 600;
}

.shopping-detail-row .btn-main:hover {
  background: #020617;
}

.shopping-detail-row .btn-sub {
  background: #ffffff;
  color: #111827;
  border: 1px solid #d1d5db;
}

.btn-back-detail {
  background: transparent;
  border: 1px solid #d1d5db;
  color: #6b7280;
}

.stock-info {
  font-size: 12px;
  color: #6b7280;
}

.shopping-detail-tags {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.shopping-detail-tags .tag {
  font-size: 11px;
  background: #f3f4f6;
  border-radius: 999px;
  padding: 3px 8px;
  color: #4b5563;
}

/* 상세 설명 영역 */

.shopping-detail-content {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid #e5e7eb;
}

.shopping-detail-content h2 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #111827;
}

.shopping-detail-html {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.7;
}

.shopping-detail-html img {
  max-width: 600px !important;
  height: auto !important;
  display: block;
  margin: 12px auto;
  object-fit: contain;
  border-radius: 8px;
}

/* 공통 배송/교환/반품 섹션 */

.product-policy-section {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px dashed #e5e7eb;
  font-size: 13px;
  color: #4b5563;
  line-height: 1.7;
}

.product-policy-section h2 {
  font-size: 16px;
  margin-bottom: 8px;
}

.product-policy-box {
  margin-bottom: 16px;
}

.product-policy-box h3 {
  font-size: 14px;
  margin-bottom: 4px;
  color: #111827;
}

.product-policy-box ul {
  padding-left: 1.0rem;
}

/* ===========================================================
   장바구니 / 주문 요약
=========================================================== */

.shopping-cart-summary-box,
.shopping-checkout-summary {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  color: #111827 !important;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(15,23,42,.05);
}

.shopping-cart-summary-box h2,
.shopping-checkout-summary h2 {
  font-size: 16px;
  font-weight: 700;
  color: #111827 !important;
  margin-bottom: 12px;
}

.shopping-cart-summary-box .label,
.shopping-cart-summary-box .value,
.shopping-checkout-summary .label,
.shopping-checkout-summary .value {
  font-size: 13px;
  color: #4b5563 !important;
}

.shopping-cart-summary-box hr,
.shopping-checkout-summary hr {
  border-color: #e5e7eb !important;
}

.shopping-cart-summary-box .btn-pay,
.shopping-checkout-summary .btn-pay {
  background: #111827 !important;
  color: #ffffff !important;
  font-weight: 700;
  border-radius: 999px;
  padding: 10px 14px;
  border: none;
}

.shopping-cart-summary-box .btn-continue,
.shopping-checkout-summary .btn-continue {
  background: #f9fafb !important;
  color: #111827 !important;
  border: 1px solid #d1d5db !important;
  border-radius: 999px;
  padding: 10px 14px;
}

.shopping-cart-summary-box .total-amount,
.shopping-checkout-summary .total-amount {
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #111827 !important;
}

/* 장바구니 라인 텍스트 */

.shopping-cart-item,
.shopping-cart-item * {
  color: #111827 !important;
}

.shopping-cart-item .price {
  font-weight: 600;
  color: #111827 !important;
}

.shopping-cart-item .item-sub {
  font-size: 12px;
  color: #6b7280 !important;
}

/* 할인율 빨간색 통일 */

.price-discount-badge,
.cart-price-block .disc,
.shopping-detail-price .disc {
  color: #ff0000 !important;
}

.price-discount-badge {
  background: #ff0000 !important;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 11px;
}

/* ===========================================================
   장바구니 토스트 알림
=========================================================== */

.shopping-toast {
  position: fixed;
  right: 24px;
  top: 80px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #111827;
  color: #f9fafb;
  font-size: 13px;
  box-shadow: 0 16px 40px rgba(15,23,42,0.5);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity .2s ease, transform .2s ease;
  z-index: 9999;
}

.shopping-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.shopping-toast-error {
  background: #dc2626;
}

/* ===========================================================
   정책 모달 (글자색 보정)
=========================================================== */

.policy-modal,
.policy-modal * {
  color: #111 !important;
}
/* 할인 배지 텍스트 색상 강제 통일 */
.price-discount-badge,
.shopping-detail-badge,
.shopping-card-badge {
  color: #ffffff !important;   /* 글자색 흰색 */
  background: #ff0000 !important; /* 배경 빨강 */
}
/* ===========================================================
   상단 카테고리 가로 메뉴
=========================================================== */

.shopping-top-cat-nav {
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
}

.shopping-top-cat-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6px 20px 4px;
}

.shopping-top-cat-inner ul {
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 13px;
  justify-content: center;   /* 가운데 정렬 추가 */
}

.shopping-top-cat-inner li {
  list-style: none;
}

.shopping-top-cat-inner a {
  color: #6b7280;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  text-decoration: none;
  transition: color .15s ease, border-color .15s ease;
}

.shopping-top-cat-inner a:hover {
  color: #111827;
}

.shopping-top-cat-inner a.active {
  color: #111827;
  font-weight: 600;
  border-color: #111827;
}
/* ===========================================================
   장바구니 레이아웃
=========================================================== */

.shopping-cart-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 30px;
  align-items: flex-start;
}

.shopping-cart-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 주문 요약 카드 내부 정렬 */
.shopping-cart-summary-box .summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin: 4px 0;
}

.shopping-cart-summary-box .summary-row.total {
  margin-top: 6px;
}

.shopping-cart-summary-box .btn-pay,
.shopping-cart-summary-box .btn-continue {
  width: 100%;
  display: block;
  text-align: center;
  margin-top: 8px;
}

@media (max-width: 900px) {
  .shopping-cart-grid {
    grid-template-columns: 1fr;
  }
}
/* 장바구니 레이아웃 */
.shopping-cart-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 24px;
  align-items: flex-start;
}

.shopping-cart-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shopping-cart-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1.7fr) minmax(0, 1.2fr);
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15,23,42,.04);
}

.cart-thumb img {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
}
.cart-thumb-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  background: #f3f4f6;
}

.cart-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cart-title a {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  text-decoration: none;
}
.cart-summary {
  font-size: 12px;
  color: #6b7280;
}
.cart-option {
  font-size: 12px;
  color: #9ca3af;
}

.cart-price-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-size: 13px;
}
.cart-unit {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.cart-qty {
  font-size: 12px;
  color: #6b7280;
}
.cart-line-total {
  font-size: 13px;
  font-weight: 600;
}
.cart-line-total .label {
  margin-right: 4px;
  color: #6b7280;
}

.cart-remove-form {
  margin-top: 2px;
}
.btn-remove {
  border: none;
  background: none;
  color: #9ca3af;
  font-size: 11px;
  cursor: pointer;
  text-decoration: underline;
}

/* 전체 비우기 */
.cart-clear-form {
  margin-top: 6px;
  text-align: right;
}
.btn-clear-all {
  border: 1px solid #ef4444;
  background: transparent;
  color: #b91c1c;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
}

/* summary-row 정의는 앞에서 추가한 것 그대로 사용 */

@media (max-width: 900px) {
  .shopping-cart-grid {
    grid-template-columns: 1fr;
  }
  .shopping-cart-item {
    grid-template-columns: auto minmax(0, 1.5fr);
  }
}
/* ===========================================================
   장바구니 주문 요약 카드 (오른쪽)
=========================================================== */

.shopping-cart-summary-box {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 18px;
  padding: 20px 22px 22px;   /* 🔸 안쪽 패딩 넉넉하게 */
  box-shadow: 0 14px 35px rgba(15,23,42,.06);
  color: #111827 !important;
}

.shopping-cart-summary-box h2 {
  margin-bottom: 14px;        /* 제목 아래 여백 */
  font-size: 16px;
  font-weight: 700;
  color: #111827 !important;
}

.shopping-cart-summary-box .summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 6px 0;              /* 각 줄 간 간격 */
  font-size: 13px;
}

.shopping-cart-summary-box .summary-row .label {
  color: #6b7280;
}

.shopping-cart-summary-box .summary-row.total {
  margin-top: 10px;
  font-weight: 700;
}

.shopping-cart-summary-box .total-amount {
  font-size: 18px;
  font-weight: 800;
}

.shopping-cart-summary-box hr {
  margin: 16px 0;
  border-color: #e5e7eb;
}

/* 버튼 영역 */
.cart-summary-actions {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shopping-cart-summary-box .btn-pay {
  width: 100%;
  display: block;
  text-align: center;
  padding: 10px 0;            /* 🔸 버튼 높이 살짝 줄임 */
  border-radius: 999px;
  border: none;
  background: #111827;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
}

.shopping-cart-summary-box .btn-continue {
  width: 100%;
  display: block;
  text-align: center;
  padding: 9px 0;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #111827;
  font-size: 13px;
}
/* ===========================================================
   주문 요약 카드 (장바구니 / 주문서 작성 공통)
=========================================================== */

.shopping-cart-summary-box,
.shopping-checkout-summary {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 18px;
  padding: 20px 22px 22px;      /* ✅ 안쪽 패딩 충분히 */
  box-shadow: 0 14px 35px rgba(15,23,42,.06);
  color: #111827 !important;
}

.shopping-cart-summary-box h2,
.shopping-checkout-summary h2 {
  margin-bottom: 14px;          /* 제목 아래 여백 */
  font-size: 16px;
  font-weight: 700;
  color: #111827 !important;
}

.shopping-cart-summary-box .summary-row,
.shopping-checkout-summary .summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 6px 0;                /* 행 간 간격 */
  font-size: 13px;
}

.shopping-cart-summary-box .summary-row .label,
.shopping-checkout-summary .summary-row .label {
  color: #6b7280;
}

.shopping-cart-summary-box .summary-row.total,
.shopping-checkout-summary .summary-row.total {
  margin-top: 10px;
  font-weight: 700;
}

.shopping-cart-summary-box .total-amount,
.shopping-checkout-summary .total-amount {
  font-size: 18px;
  font-weight: 800;
}

.shopping-cart-summary-box hr,
.shopping-checkout-summary hr {
  margin: 16px 0;
  border-color: #e5e7eb;
}

/* 버튼 영역 */
.cart-summary-actions {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shopping-cart-summary-box .btn-pay,
.shopping-checkout-summary .btn-pay {
  width: 100%;
  display: block;
  text-align: center;
  padding: 10px 0;              /* ✅ 버튼 높이 적당하게 */
  border-radius: 999px;
  border: none;
  background: #111827;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
}

.shopping-cart-summary-box .btn-continue,
.shopping-checkout-summary .btn-continue {
  width: 100%;
  display: block;
  text-align: center;
  padding: 9px 0;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #111827;
  font-size: 13px;
}
/* ===========================================================
   좌우 플로팅 패널 (퀵 메뉴 / 미니 카트)
=========================================================== */

.shopping-floating-left,
.shopping-floating-right {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
}

.shopping-floating-left { left: 20px; }
.shopping-floating-right { right: 20px; }

.floating-toggle {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(15,23,42,.15);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #111827;
}

/* 패널 공통 */
.floating-panel {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 20px 50px rgba(15,23,42,.16);
  padding: 12px 14px;
  min-width: 190px;
  font-size: 13px;
}

/* 왼쪽 패널은 오른쪽으로, 오른쪽 패널은 왼쪽으로 */
.floating-panel-left { left: 52px; }
.floating-panel-right { right: 52px; }

/* hover 시 패널 보이기 */
.shopping-floating-left:hover .floating-panel-left,
.shopping-floating-right:hover .floating-panel-right {
  opacity: 1;
  pointer-events: auto;
}

/* 왼쪽 메뉴 리스트 */
.floating-panel-left ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.floating-panel-left a {
  color: #4b5563;
  text-decoration: none;
}
.floating-panel-left a:hover {
  color: #111827;
  font-weight: 600;
}

/* 오른쪽 미니카트 */
.floating-panel-right h3 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: #111827;
}
.floating-cart-list {
  list-style:none;
  padding:0;
  margin:0 0 8px;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.floating-cart-list li {
  display:flex;
  gap:8px;
  align-items:center;
}
.floating-cart-list .thumb img {
  width:40px;
  height:40px;
  border-radius:10px;
  object-fit:cover;
}
.floating-cart-list .info { flex:1; }
.floating-cart-list .name {
  font-size:12px;
  color:#111827;
}
.floating-cart-list .meta {
  font-size:11px;
  color:#6b7280;
}
.floating-cart-link {
  display:block;
  margin-top:4px;
  font-size:12px;
  text-align:right;
  text-decoration:none;
  color:#111827;
}
.floating-cart-link:hover { text-decoration:underline; }
.floating-cart-empty {
  font-size:12px;
  color:#9ca3af;
  margin:0;
}

@media (max-width: 768px) {
  .shopping-floating-left,
  .shopping-floating-right {
    display:none; /* 모바일에서는 숨김 */
  }
}
/* ===========================================================
   CHIHO OBJECTS Premium Shopping Theme
   (Hero / Moodboard / Magazine integrated)
=========================================================== */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f7f7f7;
  color: #111827;
}

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

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

/* ===========================================================
   PAGE WRAPPER
=========================================================== */
.shopping-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===========================================================
   HEADER / NAVIGATION (Sticky)
=========================================================== */

.shopping-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.95);
  border-bottom: 1px solid #e5e7eb;
}

.shopping-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.shopping-logo a {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .15em;
}

.shopping-nav ul {
  display: flex;
  gap: 18px;
}

.shopping-nav a {
  font-size: 14px;
  color: #4b5563;
  opacity: 0.9;
}

.shopping-nav a:hover {
  opacity: 1;
  color: #111827;
}

.shopping-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #4b5563;
}

/* 카테고리 탭 */

.shopping-top-cat-nav {
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
}

.shopping-top-cat-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6px 20px 4px;
}

.shopping-top-cat-inner ul {
  display: flex;
  gap: 20px;
  justify-content: center;
  font-size: 13px;
}

.shopping-top-cat-inner a {
  color: #6b7280;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

.shopping-top-cat-inner a.active {
  color: #111827;
  font-weight: 600;
  border-color: #111827;
}

/* ===========================================================
   HERO SECTION — Apple Style
=========================================================== */

.hero-section {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.hero-title {
  font-size: 54px;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 18px;
  color: #6b7280;
  max-width: 500px;
  line-height: 1.6;
}

.hero-btn {
  margin-top: 26px;
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

.hero-btn:hover {
  background: #000;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
  }
  .hero-title {
    font-size: 40px;
  }
}

/* ===========================================================
   BEST VISUAL — Moodboard Style
=========================================================== */
.visual-moodboard {
  width: 100%;
  position: relative;
  padding: 160px 0;
}

.mood-inner {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 4vw;
  position: relative;
  height: 520px;
  transform: translateX(80px);  /* 데스크탑에서 전체를 오른쪽으로 80px 이동 */
}

.mood-title-text {
  font-size: 44px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #111;
}

.mood-desc-text {
  font-size: 17px;
  color: #6b7280;
  max-width: 520px;
  line-height: 1.6;
}

/* Moodboard 이미지 (데스크탑) */
.mood-inner img {
  position: absolute;
  width: 280px;
  height: 280px;
  object-fit: contain;
  transition: transform .3s ease, opacity .3s ease;
}

.mood-inner img:hover {
  transform: scale(1.05);
  opacity: 1;
}
@media (max-width: 768px) {

  .visual-moodboard {
    padding: 80px 0;
  }

  .mood-inner {
    max-width: 100%;
    padding: 0 6vw;
    height: auto;
    transform: none;              /* 모바일에서는 가운데 기준으로 */
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* 이미지: 절대좌표 → 일반 흐름으로 전환 */
  .mood-inner img {
    position: static;             /* absolute 해제 */
    width: 70vw;                  /* 화면 기준 적당한 크기 */
    height: auto;
    left: auto;
    top: auto;
    transform: none !important;   /* 데스크탑용 scale/translate 무시 */
    opacity: 1;
    margin-bottom: 12px;
  }

  /* 텍스트 위치 재정의 (inline style 덮기) */
  .mood-title {
    position: static !important;
    bottom: auto !important;
    left: auto !important;
    margin-top: 12px;
    text-align: center;
  }

  .mood-title-text {
    font-size: 26px;
  }

  .mood-desc-text {
    max-width: none;
    font-size: 14px;
  }
}
/* ===========================================================
   RECOMMENDED VISUAL — Magazine Layout
=========================================================== */

.visual-magazine {
  width: 100%;
}

.magazine-title {
  font-size: 48px;

  font-weight: 700;
  color: #111;
  margin-bottom: 14px;
}

.magazine-desc {
  font-size: 18px;
  color: #6b7280;
  line-height: 1.7;
}

/* Responsive */
@media (max-width: 900px) {
  .magazine-inner {
    flex-direction: column;
    text-align: center;
  }
  .magazine-title {
    font-size: 36px;
  }
}

/* ===========================================================
   PRODUCT GRIDS
=========================================================== */

.shopping-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.shopping-section-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

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

@media (max-width: 1024px) {
  .shopping-product-grid,
  .shopping-product-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .shopping-product-grid,
  .shopping-product-grid-3 {
    grid-template-columns: 1fr;
  }
}

/* ===========================================================
   FLOATING PANELS (Left / Right)
=========================================================== */

.shopping-floating-left,
.shopping-floating-right {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
}

.shopping-floating-left { left: 20px; }
.shopping-floating-right { right: 20px; }

.floating-toggle {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #d1d5db;
  box-shadow: 0 10px 25px rgba(15,23,42,.15);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.floating-panel {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 12px 14px;
  min-width: 200px;
  box-shadow: 0 20px 50px rgba(15,23,42,.16);
  transition: opacity .18s ease, transform .18s ease;
}

/* open on hover */
.shopping-floating-left:hover .floating-panel-left,
.shopping-floating-right:hover .floating-panel-right {
  opacity: 1;
  pointer-events: auto;
}

.floating-panel-left { left: 52px; }
.floating-panel-right { right: 52px; }

/* Persistent hover so panel doesn't disappear */
.floating-panel-left:hover,
.floating-panel-right:hover {
  opacity: 1 !important;
  pointer-events: auto !important;
}


/* Mini cart list */
.floating-cart-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 0;
}

.floating-cart-list li {
  display: flex;
  gap: 8px;
  align-items: center;
}

.floating-cart-list .thumb img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
}

/* ===========================================================
   FOOTER
=========================================================== */

.shopping-footer {
  background: #f3f4f6;
  border-top: 1px solid #e5e7eb;
  padding: 40px 0;
  margin-top: 60px;
}

.shopping-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.shopping-footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.shopping-footer-label {
  font-weight: 600;
  margin-bottom: 6px;
}

@media (max-width: 768px) {
  .shopping-footer-cols {
    grid-template-columns: 1fr;
  }
}

/* ===========================================================
   ADMIN EDIT BUTTON
=========================================================== */

.admin-edit-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 20;
  background: #111;
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
}

.admin-edit-btn:hover {
  background: #000;
}
/* ===========================================================
   HERO SECTION — Apple Style (Full-width 개선)
=========================================================== */

/* ===========================================================
   HERO SECTION — Now using Magazine Layout Style
=========================================================== */

.hero-section {
  width: 100%;
  padding: 140px 0;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  width: 100%;
  max-width: 1600px;      /* RECO와 동일한 폭 */
  margin: 0 auto;
  padding: 0 4vw;
  display: flex;
  align-items: center;
  justify-content: space-between;  /* Magazine layout */
  gap: 60px;
}

/* 텍스트 영역 */
.hero-title {
  font-size: 48px;        /* RECO title와 동일 */
  font-weight: 700;
  color: #111;
  line-height: 1.25;
  margin-bottom: 14px;
}

.hero-subtitle {
  font-size: 18px;
  color: #6b7280;
  line-height: 1.7;
  max-width: 540px;
}

/* 버튼 */
.hero-btn {
  margin-top: 26px;
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}
.hero-btn:hover { background: #000; }

/* 이미지 영역 */
.hero-art img {
  width: 420px;          /* RECO 이미지 크기와 동일 */
  height: 420px;
  object-fit: contain;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.18));
  transition: transform .3s ease;
}

/* 반응형 */
@media (max-width: 900px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
  }
  .hero-art img {
    width: 300px;
    height: 300px;
  }
  .hero-title {
    font-size: 36px;
  }
}
/* ===========================================================
   BEST VISUAL — Moodboard Style (Full-width 개선)
=========================================================== */

.visual-moodboard {
  width: 100%;
  position: relative;
  padding: 160px 0;
}

.mood-inner {
  width: 100%;
  max-width: 1600px;         /* 기존 1400 → 1600 */
  margin: 0 auto;
  padding: 0 4vw;
  position: relative;
  height: 520px;
}

.mood-title-text {
  font-size: 44px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #111;
}

.mood-desc-text {
  font-size: 17px;
  color: #6b7280;
  max-width: 520px;         /* 여유 확대 */
  line-height: 1.6;
}

/* Moodboard 이미지 */
.mood-inner img {
  position: absolute;
  width: 280px;             /* 기존 260 → 약간 키움 */
  height: 280px;
  object-fit: contain;
  transition: transform .3s ease, opacity .3s ease;
}

.mood-inner img:hover {
  transform: scale(1.05);
  opacity: 1;
}
/* ===========================================================
   RECOMMENDED VISUAL — Magazine Layout (Full-width)
=========================================================== */

.visual-magazine {
  width: 100%;
  padding: 140px 0;
}

.magazine-inner {
  width: 100%;
  max-width: 1600px;        /* 1400 → 1600 */
  margin: 0 auto;
  padding: 0 4vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.magazine-title {
  font-size: 48px;
  font-weight: 700;
  color: #111;
  margin-bottom: 14px;
}

.magazine-desc {
  font-size: 18px;
  color: #6b7280;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .magazine-inner {
    flex-direction: column;
    text-align: center;
  }
  .magazine-title {
    font-size: 36px;
  }
}
/* ===========================================================
   PRODUCT GRIDS — 4 Columns
=========================================================== */

.shopping-section {
  width: 100%;
  max-width: 1600px;     /* 전체 레이아웃 확대 */
  margin: 60px auto;
  padding: 0 4vw;
}

.shopping-product-grid,
.shopping-product-grid-3 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);   /* ★ 변경: 4열 */
  gap: 24px;                               /* 여유 넉넉하게 */
}

@media (max-width: 1400px) {
  .shopping-product-grid,
  .shopping-product-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .shopping-product-grid,
  .shopping-product-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .shopping-product-grid,
  .shopping-product-grid-3 {
    grid-template-columns: 1fr;
  }
}
.policy-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.policy-modal-overlay.open { display: flex; }

.policy-modal {
  background: #fff;
  width: 92%;
  max-width: 760px;
  max-height: 80vh;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 40px rgba(0,0,0,.22);
}
.policy-modal-header {
  padding: 14px 18px;
  border-bottom: 1px solid #e5e7eb;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.policy-modal-body {
  padding: 18px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.6;
}
.policy-modal-close {
  cursor: pointer;
  background: none;
  border: none;
  font-size: 20px;
  padding: 4px 10px;
}
.shopping-logo a {
  font-family: "Playfair Display", serif;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #111;
  text-transform: uppercase;
}
/* --- 카드 전체 --- */
.pretty-card {
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  transition: all .25s ease;
}
.pretty-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}

/* --- 가격 박스 --- */
.shopping-price-box {
  margin-top: 8px;
}

.shopping-price-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.price-sale {
  font-size: 1.25rem;
  font-weight: 700;
  color: #e11d48; /* 예쁜 진한 레드 */
}

.price-normal {
  font-size: 1.3rem;
  font-weight: 700;
  color: #111;
}

/* 정가 (취소선) */
.price-base {
  font-size: .85rem;
  color: #999;
  text-decoration: line-through;
}

/* 할인률 라벨 */
.price-discount-tag {
  background: #e11d48;
  color: #fff;
  font-size: .75rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

/* 정가 영역 */
.shopping-base-row {
  margin-top: 4px;
}
/* 가격 한 줄 레이아웃 */
.price-line-modern {
  margin-top: 10px;
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 0.95rem;
}
/* 전체 가격 라인 */
.price-line-modern {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ① 할인률: 크게 + 두껍게 + 선명한 오렌지 */
.price-percent {
  font-size: 1.05rem;      /* 더 큼 */
  font-weight: 700;        /* 더 두꺼움 */
  color: #f15a24;          /* 오렌지 계열 (레퍼런스 톤) */
  letter-spacing: -0.5px;
}

/* ② 정가(취소선): 더 작고 흐리게 */
.price-base {
  font-size: 0.85rem;      /* 더 작게 */
  color: #c2c2c2;          /* 아주 흐린 회색 */
  text-decoration: line-through;
  font-weight: 400;
  letter-spacing: -0.3px;
}

/* ③ 최종 할인가: 가장 크게 + 두껍게 */
.price-sale {
  font-size: 1.15rem;      /* 확실히 큼 */
  font-weight: 800;        /* 두껍게 */
  color: #1a1a1a;          /* 거의 블랙 */
  letter-spacing: -0.5px;
}
@media (max-width: 768px) {
  .visual-moodboard {
    display: none !important;
  }
}
/* ===========================================================
   모바일용 햄버거 버튼 & 모바일 카테고리 메뉴
   (데스크탑 레이아웃은 건드리지 않음)
=========================================================== */

/* 기본: 햄버거 숨김 (데스크탑) */
.shopping-hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  padding: 4px 8px;
  cursor: pointer;
  margin-left: 8px;
}

/* 모바일 전용 카테고리 메뉴 오버레이 */
.shopping-mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 9999;
}

/* 메뉴 열렸을 때 */
.shopping-mobile-nav.open {
  display: block;
}

.shopping-mobile-nav-inner {
  position: absolute;
  right: 0;
  top: 0;
  width: 70%;
  max-width: 320px;
  height: 100%;
  background: #ffffff;
  box-shadow: -4px 0 20px rgba(15,23,42,.25);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
}

.shopping-mobile-nav-inner ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shopping-mobile-nav-inner a {
  font-size: 15px;
  color: #4b5563;
  padding: 6px 0;
  border-bottom: 1px solid #e5e7eb;
}

.shopping-mobile-nav-inner a.active {
  color: #111827;
  font-weight: 600;
}

/* 모바일에서만 햄버거 / 모바일 메뉴 사용 */
@media (max-width: 768px) {
  /* 상단 카테고리 바는 모바일에서 숨김 */
  .shopping-top-cat-nav {
    display: none;
  }

  /* 햄버거 버튼 보이기 */
  .shopping-hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* 필요하면 nav 간격 조금 줄이기 */
  .shopping-header-inner {
    padding: 10px 14px;
  }
}

/* 이미 있던 설정: 모바일에서 BEST MOODBOARD 숨기기 */
@media (max-width: 768px) {
  .visual-moodboard {
    display: none !important;
  }
}

/* =========================================
   모바일 헤더 정리 (로고 & 상단 메뉴)
========================================= */
@media (max-width: 768px) {

  /* 헤더 전체 여백 조금 줄이기 */
  .shopping-header-inner {
    padding: 8px 12px;
  }

  /* CHIHO OBJECTS 로고 크기 & 자간 축소 */
  .shopping-logo a {
    font-size: 18px;
    letter-spacing: 0.08em;
  }

  /* 오른쪽 로그인/회원가입/장바구니 글자도 작게 + 줄바꿈 방지 */
  .shopping-header-right {
    font-size: 11px;
    gap: 6px;
    white-space: nowrap;     /* 전체를 한 줄로 */
  }

  .shopping-header-right span,
  .shopping-header-right a {
    white-space: nowrap;     /* 각 요소 안에서 줄바꿈 금지 */
  }
}
/* =========================================
   모바일 헤더: 로그인/이름 + 장바구니만 표시
========================================= */
@media (max-width: 768px) {

  /* 헤더 여백/로고 살짝 축소 */
  .shopping-header-inner {
    padding: 8px 12px;
  }

  .shopping-logo a {
    font-size: 20px;
    letter-spacing: 0.08em;
  }

  /* 오른쪽 영역 글자 조금 키우고 한 줄 유지 */
  .shopping-header-right {
    font-size: 13px;
    gap: 8px;
    display: flex;
    align-items: center;
    white-space: nowrap;
  }

  .shopping-header-right .header-user-name,
  .shopping-header-right .header-login-link,
  .shopping-header-right .header-cart-link {
    white-space: nowrap;
  }

  /* 모바일에서 숨길 항목들:
     - 회원가입
     - 로그아웃
     - 관리자용 링크(상품 관리/등록) */
  .shopping-header-right .header-signup-link,
  .shopping-header-right .header-logout-link,
  .shopping-header-right .header-admin-link {
    display: none !important;
  }
}
/* =========================================
   모바일 장바구니 레이아웃 정리
========================================= */
@media (max-width: 768px) {

  /* 장바구니 섹션 여백 살짝 정리 */
  .shopping-section {
    max-width: 100%;
    margin: 30px auto;
    padding: 0 14px;
  }

  /* 좌/우 2컬럼 → 1컬럼 (리스트 위, 요약 아래) */
  .shopping-cart-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 0;
  }

  /* 장바구니 아이템 카드 레이아웃 */
  .shopping-cart-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr); /* 왼쪽 썸네일, 오른쪽 내용 */
    grid-auto-rows: auto;
    column-gap: 10px;
    row-gap: 6px;
    padding: 10px 12px;
  }

  /* 썸네일: 왼쪽 고정, 위/아래 모두 차지 */
  .shopping-cart-item .cart-thumb {
    grid-column: 1;
    grid-row: 1 / span 3;
  }

  .shopping-cart-item .cart-thumb img,
  .shopping-cart-item .cart-thumb-placeholder {
    width: 70px;
    height: 70px;
  }

  /* 상품명/요약: 오른쪽 위 */
  .shopping-cart-item .cart-info {
    grid-column: 2;
    grid-row: 1;
  }

  .shopping-cart-item .cart-title a {
    font-size: 14px;
  }

  .shopping-cart-item .cart-summary,
  .shopping-cart-item .cart-option {
    font-size: 12px;
  }

  /* 🔥 가격/수량/합계: 오른쪽 아래, 오른쪽 정렬 */
  .shopping-cart-item .cart-price-block {
    grid-column: 2;   /* 왼쪽으로 안 떨어지게 명시 */
    grid-row: 2;
    align-items: flex-end;
    text-align: right;
    font-size: 12px;
  }

  .shopping-cart-item .cart-unit {
    justify-content: flex-end;
  }

  .shopping-cart-item .cart-qty,
  .shopping-cart-item .cart-line-total {
    margin-top: 2px;
  }

  .shopping-cart-item .cart-remove-form {
    margin-top: 4px;
  }

  /* 주문 요약 박스는 아래에서 전체 폭 */
  .cart-summary-wrap,
  .shopping-cart-summary-box {
    width: 100%;
  }
}
/* =========================================
   주문서 작성(shopping_checkout) 레이아웃
   - 장바구니(cart)와 완전히 분리
========================================= */

/* 데스크탑: 왼쪽(주문+배송) / 오른쪽(결제) 2컬럼 */
.shopping-checkout-layout {
  max-width: 1200px;
  margin: 40px auto 60px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 24px;
  align-items: flex-start;
}

@media (max-width: 768px) {

  /* ✅ 모바일에서는 완전 1열 + 전체 폭 사용 */
  .shopping-checkout-layout {
    max-width: 100%;
    width: 100%;
    margin: 24px auto 40px;
    padding: 0 12px;
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  /* 왼쪽 영역(주문상품+배송지) */
  .shopping-checkout-layout .checkout-left {
    order: 1;
    width: 100%;
  }

  /* 오른쪽 결제 정보 박스 */
  .shopping-checkout-layout .shopping-checkout-summary {
    order: 2;
    width: 100%;
  }

  /* 안에 들어있는 카드(section)들도 부모 폭을 100%로 */
  .shopping-checkout-layout .checkout-left > section {
    width: 100%;
  }

  .shopping-checkout-layout .shopping-checkout-summary > * {
    width: 100%;
  }
}
/* 가격 + 수량 인라인 정렬 */
.shopping-detail-price-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;  /* 모바일에서는 아래로 자연스럽게 떨어지게 */
}

/* 기존 margin-bottom 제거 */
.shopping-detail-price {
  margin-bottom: 0;
}

/* 수량 인라인 그룹 */
.shopping-detail-qty-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #4b5563;
}

.shopping-detail-qty-inline label {
  font-weight: 600;
}

.shopping-detail-qty-inline input[type="number"] {
  width: 80px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  color: #111827;
  font-size: 13px;
}
/* 장바구니 비었을 때 카드 타이포 줄이기 */
.cart-empty-card p {
  font-size: 14px;      /* 기본보다 작게 */
  margin-bottom: 10px;
  color: #888; 
}

.cart-empty-card .cart-empty-btn {
  font-size: 13px;      /* 버튼 텍스트도 조금 줄이기 */
     /* 버튼 높이도 살짝 줄임(선택) */
  color: #888; 
}
