/* ================================================================
   Sskoon Shop — shop.css v1.0.0
   ================================================================ */

/* ── Cart Bubble (fixed bottom corner) ──────────────────────── */
.cart-bubble {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  width: 52px;
  height: 52px;
  background: #c9a071;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(201,160,113,.45);
  transition: transform .2s, box-shadow .2s;
}
[dir="rtl"] .cart-bubble { right: auto; left: 28px; }
.cart-bubble:hover { transform: scale(1.08); box-shadow: 0 8px 32px rgba(201,160,113,.55); color: #fff; }
.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #1f1d1b;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  pointer-events: none;
}
.cart-count:empty, .cart-count[data-count="0"] { display: none; }

/* ── Shared page styles ────────────────────────────────────── */
.shop-page-title {
  font-family: var(--font-serif, "Playfair Display", serif);
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 500;
  margin-bottom: 32px;
  color: #1f1d1b;
}
.shop-intro {
  font-size: 17px;
  color: #5c544a;
  max-width: 680px;
  margin-bottom: 36px;
  line-height: 1.7;
}
.shop-msg {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 16px;
}
.shop-msg.success { background: #eaf3de; color: #3b6d11; border: 1px solid #c0dd97; }
.shop-msg.error   { background: #fcebeb; color: #a32d2d; border: 1px solid #f7c1c1; }

/* ── Shop Form ─────────────────────────────────────────────── */
.shop-form .form-row { margin-bottom: 18px; }
.shop-form label { display: block; font-size: 13px; font-weight: 500; color: #5c544a; margin-bottom: 6px; }
.shop-form input[type="text"],
.shop-form input[type="email"],
.shop-form input[type="tel"],
.shop-form input[type="number"],
.shop-form textarea,
.shop-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e7ddcd;
  border-radius: 10px;
  font-size: 15px;
  background: #fff;
  color: #1f1d1b;
  transition: border-color .18s;
}
.shop-form input:focus,
.shop-form textarea:focus { border-color: #c9a071; outline: none; }
.shop-form textarea { resize: vertical; }
.btn--full { width: 100%; justify-content: center; }

/* ── Cart Page ─────────────────────────────────────────────── */
.sskoon-cart-page, .sskoon-checkout-page, .sskoon-account-page,
.sskoon-custom-order-page, .sskoon-confirmed-page { padding: 48px 0 80px; }

.cart-empty { text-align: center; padding: 60px 24px; }
.cart-empty p { font-size: 18px; color: #8a8075; margin-bottom: 24px; }

.cart-table-wrap { overflow-x: auto; margin-bottom: 28px; }
.cart-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.cart-table th {
  text-align: left;
  padding: 12px 14px;
  font-weight: 500;
  font-size: 13px;
  color: #8a8075;
  border-bottom: 1px solid #e7ddcd;
  white-space: nowrap;
}
[dir="rtl"] .cart-table th { text-align: right; }
.cart-table td { padding: 14px; border-bottom: 1px solid #f0e9dd; vertical-align: middle; }
.cart-product { display: flex; align-items: center; gap: 12px; }
.cart-product img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.cart-swatch {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,.12);
  vertical-align: middle;
  margin-right: 5px;
}
.cart-swatch--sm { width: 12px; height: 12px; }

.qty-control { display: flex; align-items: center; gap: 4px; }
.qty-btn {
  width: 28px; height: 28px;
  background: #f0e9dd; border: none; border-radius: 6px;
  cursor: pointer; font-size: 16px; line-height: 1;
  transition: background .15s;
}
.qty-btn:hover { background: #e7ddcd; }
.qty-input {
  width: 48px; text-align: center;
  border: 1px solid #e7ddcd; border-radius: 6px;
  padding: 4px; font-size: 14px;
}
.cart-remove {
  background: none; border: none; cursor: pointer;
  color: #8a8075; font-size: 16px;
  transition: color .15s;
}
.cart-remove:hover { color: #c0392b; }
.cart-total-row td { font-size: 16px; padding-top: 20px; }
.cart-grand-total { font-size: 18px; color: #c9a071; }
.cart-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ── Checkout Layout ───────────────────────────────────────── */
.checkout-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: start; }
@media (max-width: 768px) { .checkout-layout { grid-template-columns: 1fr; } }
.checkout-form-col h3, .checkout-summary-col h3 { font-size: 18px; font-weight: 500; margin-bottom: 20px; }

.order-summary { background: #fbf7f0; border: 1px solid #e7ddcd; border-radius: 16px; padding: 20px; }
.summary-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f0e9dd; }
.summary-item:last-of-type { border-bottom: none; }
.summary-item img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.summary-item-info { flex: 1; font-size: 14px; display: flex; flex-direction: column; gap: 3px; }
.summary-item-info strong { font-size: 15px; }
.summary-color { display: flex; align-items: center; color: #8a8075; }
.summary-price { font-weight: 500; color: #1f1d1b; white-space: nowrap; font-size: 15px; }
.summary-total {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 16px; padding-top: 16px;
  border-top: 2px solid #e7ddcd;
  font-size: 17px;
}
.summary-total strong { color: #c9a071; font-size: 20px; }

/* ── Order Confirmed ───────────────────────────────────────── */
.sskoon-confirmed-page { text-align: center; padding: 80px 24px; }
.confirmed-icon {
  width: 72px; height: 72px;
  background: #1a6b4a; color: #fff;
  border-radius: 50%; font-size: 32px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
}
.sskoon-confirmed-page h2 { font-size: 32px; margin-bottom: 12px; }
.confirmed-id { font-size: 15px; color: #8a8075; margin-top: 12px; }
.confirmed-total { font-size: 18px; margin-top: 8px; }

/* ── Account Page ──────────────────────────────────────────── */
.account-login-box { max-width: 480px; margin: 0 auto; }
.account-login-box h2 { margin-bottom: 24px; }
.account-register-link { text-align: center; margin-top: 16px; font-size: 14px; color: #5c544a; }
.account-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 32px; padding-bottom: 20px;
  border-bottom: 1px solid #e7ddcd;
}
.account-header h2 { margin-bottom: 4px; }
.account-header p { color: #8a8075; font-size: 14px; margin: 0; }
.no-orders { color: #8a8075; font-size: 16px; padding: 24px 0; }

.orders-list { display: flex; flex-direction: column; gap: 16px; }
.order-card {
  background: #fbf7f0; border: 1px solid #e7ddcd;
  border-radius: 14px; padding: 18px 20px;
}
.order-card__head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 12px; flex-wrap: wrap;
}
.order-number { font-weight: 500; font-size: 15px; }
.order-date { color: #8a8075; font-size: 13px; margin-left: auto; }
[dir="rtl"] .order-date { margin-left: 0; margin-right: auto; }
.order-status {
  font-size: 12px; font-weight: 500; padding: 3px 10px;
  border-radius: 20px; white-space: nowrap;
}
.status-pending    { background: #faeeda; color: #854f0b; }
.status-confirmed  { background: #e6f1fb; color: #185fa5; }
.status-processing { background: #eeedfe; color: #534ab7; }
.status-shipped    { background: #e1f5ee; color: #0f6e56; }
.status-delivered  { background: #eaf3de; color: #3b6d11; }
.status-cancelled  { background: #fcebeb; color: #a32d2d; }
.status-custom     { background: #fbeaf0; color: #993556; }

.order-card__items { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.order-item-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid #e7ddcd;
  border-radius: 20px; padding: 4px 12px;
  font-size: 13px;
}
.order-card__foot { font-size: 15px; color: #5c544a; border-top: 1px solid #e7ddcd; padding-top: 12px; }

/* ── Custom Order Page ─────────────────────────────────────── */
.custom-tabs {
  display: flex; gap: 8px; margin-bottom: 32px;
  border-bottom: 2px solid #e7ddcd; padding-bottom: 0;
}
.custom-tab {
  padding: 10px 24px; background: none; border: none;
  font-size: 15px; font-family: inherit; cursor: pointer;
  color: #8a8075; border-bottom: 2px solid transparent;
  margin-bottom: -2px; transition: color .18s, border-color .18s;
}
.custom-tab.active, .custom-tab:hover { color: #c9a071; border-bottom-color: #c9a071; }
.custom-tab-content { display: none; }
.custom-tab-content.active { display: block; }

.color-order-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 768px) { .color-order-layout { grid-template-columns: 1fr; } }

.color-palette-section h3, .color-form-section h3 { font-size: 18px; font-weight: 500; margin-bottom: 20px; }
.palette-group { margin-bottom: 20px; }
.palette-label { display: block; font-size: 12px; font-weight: 500; color: #8a8075; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.palette-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch-btn {
  width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .15s, border-color .15s, box-shadow .15s;
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
}
.swatch-btn:hover { transform: scale(1.15); box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.swatch-btn.selected { border-color: #c9a071; box-shadow: 0 0 0 3px rgba(201,160,113,.4); transform: scale(1.15); }
.swatch-btn[style*="background: #FFFFFF"],
.swatch-btn[style*="background:#FFFFFF"],
.swatch-btn[style*="background: #fff"],
.swatch-btn[style*="background:#FFF8F0"] { border-color: #e7ddcd; }

.selected-color-preview {
  display: flex; align-items: center; gap: 12px;
  background: #fbf7f0; border: 1px solid #e7ddcd;
  border-radius: 10px; padding: 10px 14px;
  margin-bottom: 20px; font-size: 14px; font-weight: 500;
}
.selected-color-swatch {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgba(0,0,0,.1); flex-shrink: 0;
}
.clear-color {
  background: none; border: none; cursor: pointer;
  color: #8a8075; font-size: 16px; margin-left: auto; padding: 0;
}
[dir="rtl"] .clear-color { margin-left: 0; margin-right: auto; }

.custom-hex-wrap { margin-top: 20px; }
.custom-hex-wrap label { display: block; font-size: 13px; color: #5c544a; margin-bottom: 8px; }
.hex-input-row { display: flex; gap: 8px; align-items: center; }
.hex-input-row input[type="color"] { width: 44px; height: 38px; border: 1px solid #e7ddcd; border-radius: 8px; padding: 2px; cursor: pointer; }
.hex-input-row input[type="text"] { flex: 1; padding: 8px 12px; border: 1px solid #e7ddcd; border-radius: 8px; font-size: 14px; }

/* Consultation tab */
.consult-layout { max-width: 600px; }
.consult-intro { text-align: center; padding: 32px 0 28px; }
.consult-icon { font-size: 36px; color: #c9a071; margin-bottom: 16px; }
.consult-intro h3 { font-size: 22px; font-weight: 500; margin-bottom: 10px; }
.consult-intro p { color: #5c544a; font-size: 16px; line-height: 1.7; }

/* ── Stock Badge ───────────────────────────────────────────── */
.stock-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 14px;
}
.stock-badge--limited { background: #faeeda; color: #854f0b; }
.stock-badge--out     { background: #fcebeb; color: #a32d2d; }

/* ── Add to Cart button (on product cards) ─────────────────── */
.card--product .add-to-cart-btn {
  display: block; width: 100%; margin-top: 10px;
  padding: 9px 16px; background: #c9a071; color: #fff;
  border: none; border-radius: 999px; font-size: 13px;
  font-family: inherit; cursor: pointer;
  transition: background .18s;
  text-align: center;
}
.card--product .add-to-cart-btn:hover { background: #b08851; }
.card--product .add-to-cart-btn.loading { opacity: .7; pointer-events: none; }

/* ── Toast notification ────────────────────────────────────── */
.sskoon-toast {
  position: fixed; bottom: 90px; right: 28px;
  background: #1f1d1b; color: #fff;
  padding: 12px 20px; border-radius: 10px;
  font-size: 14px; z-index: 10000;
  opacity: 0; transform: translateY(10px);
  transition: opacity .25s, transform .25s;
  pointer-events: none;
}
[dir="rtl"] .sskoon-toast { right: auto; left: 28px; }
.sskoon-toast.show { opacity: 1; transform: translateY(0); }

/* ── WP Login Form Styling ─────────────────────────────────── */
#loginform { max-width: 100%; }
#loginform p { margin-bottom: 16px; }
#loginform label { display: block; font-size: 13px; color: #5c544a; margin-bottom: 5px; }
#loginform input[type="text"],
#loginform input[type="password"] {
  width: 100%; padding: 11px 14px;
  border: 1px solid #e7ddcd; border-radius: 10px;
  font-size: 15px; margin-top: 2px;
}
#loginform input[type="submit"] {
  width: 100%; padding: 13px; background: #c9a071;
  color: #fff; border: none; border-radius: 999px;
  font-size: 16px; cursor: pointer;
  font-family: inherit; transition: background .18s;
}
#loginform input[type="submit"]:hover { background: #b08851; }


/* Sskoon FIXED - mobile only; desktop untouched */
@media only screen and (max-width: 768px) {
  html body a#sskoon-fixed-cart-bubble, html body .cart-bubble, [dir="rtl"] .cart-bubble {
    position: fixed !important; right: 18px !important; left: auto !important; bottom: 88px !important; top: auto !important; z-index: 2147483647 !important; transform: none !important;
  }

/* Stock / customer limit indicators */
.cart-stock-note {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #8a8075;
  line-height: 1.35;
}
.qty-btn:disabled,
.qty-btn.disabled {
  opacity: 0.35 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  filter: grayscale(1);
}
