/* =============================================
   6 STREET ROASTERY — shop.css
   쇼핑 페이지 & 장바구니
   ============================================= */

/* ── SHOP PAGE ── */
#page-shop {
  min-height: 100vh; background: #f5edcf; color: #1a1a1a;
  padding: 3rem 3rem 5rem;
}
.shop-header { margin-bottom: 2.5rem; }
.shop-header h1 {
  font-family: 'IM Fell English', serif; font-size: 2rem;
  font-weight: 400; color: #1a1a1a; margin-bottom: 1.5rem;
}
.gift-card-btn {
  display: inline-block; background: #2d4a2d; color: #f5edcf; border: none;
  padding: 0.85rem 2rem;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 0.75rem; transition: background .2s; cursor: pointer;
}
.gift-card-btn:hover { background: #1a2e1a; }
.gift-card-note {
  font-size: 0.72rem; color: #5a5040; font-style: italic;
  display: block; margin-bottom: 2.5rem;
}
.shop-cat-filter { display: flex; gap: 0; margin-bottom: 2rem; }
.cat-btn {
  background: none; border: 1px solid #c8b88a;
  padding: 0.45rem 1.25rem; font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #5a5040; transition: all .15s; margin-right: -1px; cursor: pointer;
}
.cat-btn:hover, .cat-btn.active { background: #2d4a2d; color: #f5edcf; border-color: #2d4a2d; }

/* ── PRODUCT GRID ── */
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.product-card { cursor: pointer; position: relative; }
.product-card:hover .product-img-wrap img { transform: scale(1.03); }

.product-img-wrap {
  width: 100%; aspect-ratio: 1; overflow: hidden;
  background: #e8dfc8; position: relative; margin-bottom: 0.75rem;
  display: flex; align-items: center; justify-content: center;
}
.product-img-wrap img {
  width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease;
}
.product-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem; background: #ddd4b8;
}
.sold-out-badge {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: #1a1a1a; color: #f5edcf; text-align: center; padding: 0.5rem;
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase;
}
.product-name { font-size: 0.85rem; font-weight: 400; color: #1a1a1a; margin-bottom: 0.25rem; }
.product-price { font-size: 0.82rem; color: #3d3020; }
.product-add-btn {
  margin-top: 0.5rem; background: none;
  border: 1px solid #8a7a5a; padding: 0.4rem 1rem;
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: #3d3020; cursor: pointer; transition: all .15s;
}
.product-add-btn:hover { background: #2d4a2d; color: #f5edcf; border-color: #2d4a2d; }

/* ── CART DRAWER ── */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4);
  z-index: 500; opacity: 0; visibility: hidden; transition: all .3s;
}
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-drawer {
  position: absolute; right: 0; top: 0; bottom: 0; width: 380px;
  background: #f5edcf; padding: 2rem;
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.cart-overlay.open .cart-drawer { transform: translateX(0); }

.cart-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid #c8b88a;
}
.cart-head h2 { font-family: 'IM Fell English', serif; font-size: 1.4rem; font-weight: 400; }
.cart-close-btn { background: none; border: none; font-size: 1.4rem; color: #1a1a1a; }
.cart-list { flex: 1; overflow-y: auto; }
.cart-empty {
  text-align: center; padding: 3rem 0; font-size: 0.82rem;
  color: #8a7a6a; font-style: italic; font-family: 'IM Fell English', serif;
}
.cart-item { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid #e0d4b0; }
.cart-item-img {
  width: 60px; height: 60px; background: #ddd4b8;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; flex-shrink: 0; overflow: hidden;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-name { font-size: 0.82rem; margin-bottom: 0.25rem; }
.cart-item-price { font-size: 0.78rem; color: #5a5040; }
.cart-item-qty { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.4rem; }
.qty-btn {
  background: none; border: 1px solid #c8b88a;
  width: 22px; height: 22px; font-size: 0.8rem;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.qty-num { font-size: 0.78rem; min-width: 18px; text-align: center; }
.cart-rm { background: none; border: none; color: #8a7a6a; font-size: 1.1rem; margin-left: auto; cursor: pointer; }

.cart-foot { padding-top: 1.25rem; border-top: 1px solid #c8b88a; }
.cart-total-row { display: flex; justify-content: space-between; margin-bottom: 1.25rem; }
.cart-total-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.cart-total-amt { font-family: 'IM Fell English', serif; font-size: 1.3rem; }
.checkout-btn {
  width: 100%; background: #1a1a1a; color: #f5edcf; border: none;
  padding: 0.85rem; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase; transition: background .2s; cursor: pointer;
}
.checkout-btn:hover { background: #3d2b1d; }