/* ============================================================
   CLIENT STOREFRONT (client.ejs) — mijozlarga ko'rinadigan
   do'kon sahifasi stillari. Inline style atributlaridan
   ko'chirilgan.
   ============================================================ */

body.client-page {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #f4f9fd;
}

/* ── NAVBAR ── */
.client-nav {
  background: rgba(71, 168, 224, 0.92);
  backdrop-filter: blur(12px);
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.client-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
}

.client-nav-links {
  display: flex;
  gap: 10px;
  align-items: center;
}

.client-nav-link {
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.client-nav-link:hover {
  color: #fff;
  text-decoration: none;
}

.cart-btn {
  position: relative;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  border: none;
  font-weight: 700;
  cursor: pointer;
  font-size: .95rem;
}

/* JS ko'rsatish kerak bo'lganda display:flex qiladi */
#cart-count {
  display: none;
  position: absolute;
  top: -6px;
  right: -6px;
  background: #e55;
  color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: .7rem;
  font-weight: 800;
  align-items: center;
  justify-content: center;
}

/* ── CART DRAWER ── */
#cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 500;
  backdrop-filter: blur(2px);
}

/* JS ochganda display:flex qiladi */
#cart-drawer {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: min(400px, 100vw);
  height: 100vh;
  background: #fff;
  z-index: 501;
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.15);
  flex-direction: column;
}

.cart-drawer-header {
  padding: 24px;
  background: linear-gradient(135deg, #4f96de, #8bcfff);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-drawer-header h3 {
  margin: 0;
  color: #fff;
  font-size: 1.2rem;
}

.cart-drawer-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

#cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.cart-empty-msg {
  text-align: center;
  color: #7a9abf;
  margin-top: 40px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-weight: 700;
  color: #1f3250;
  font-size: .95rem;
}

.cart-item-meta {
  color: #7a9abf;
  font-size: .85rem;
  margin-top: 2px;
}

.cart-item-sub {
  font-weight: 800;
  color: #4f96de;
  min-width: 70px;
  text-align: right;
}

.cart-qty {
  display: flex;
  align-items: center;
  gap: 6px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid #d0e8ff;
  background: #fff;
  color: #4f96de;
  font-weight: 700;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.cart-footer {
  padding: 20px;
  border-top: 1px solid #e0ecff;
  background: #f8fbff;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 800;
  color: #1f3250;
  margin-bottom: 16px;
}

/* ── UMUMIY TUGMALAR ── */
.btn-gradient {
  width: 100%;
  padding: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #4f96de, #8bcfff);
  border: none;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-ghost {
  width: 100%;
  padding: 10px;
  border-radius: 999px;
  background: none;
  border: 1.5px solid #d0e8ff;
  color: #7a9abf;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
}

.cart-clear-btn {
  margin-top: 8px;
}

/* ── PAYMENT / SUCCESS MODALLARI ── */
/* JS ochganda display:flex qiladi */
.overlay-center {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
}

#payment-overlay {
  z-index: 600;
}

#checkout-success {
  z-index: 700;
}

.pay-card {
  background: #fff;
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
  max-width: 400px;
  width: 90%;
}

.pay-title {
  color: #1f3250;
  margin: 0 0 6px;
  font-size: 1.3rem;
}

.pay-sub {
  color: #7a9abf;
  font-size: .9rem;
  margin: 0 0 24px;
}

.pm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}

.pm-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 2px solid #e0ecff;
  cursor: pointer;
  font-weight: 600;
  color: #555;
}

.pm-option.selected {
  border-color: #4f96de;
  background: #eef6ff;
  font-weight: 700;
  color: #1f3250;
}

.pay-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 800;
  color: #1f3250;
  margin-bottom: 20px;
  padding: 14px 18px;
  background: #f4f9fd;
  border-radius: 12px;
}

.pay-confirm-btn {
  margin-bottom: 10px;
}

.form-error {
  display: none;
  color: #e55;
  text-align: center;
  margin-top: 10px;
  font-size: .9rem;
}

#inq-error {
  margin-top: 12px;
}

.success-card {
  background: #fff;
  border-radius: 20px;
  padding: 48px 40px;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
  max-width: 380px;
  width: 90%;
}

.success-emoji {
  font-size: 3rem;
  margin-bottom: 12px;
}

.success-card .success-emoji {
  font-size: 3.5rem;
}

.success-card h3 {
  color: #1f3250;
  margin: 0 0 8px;
}

.success-card p {
  color: #7a9abf;
  margin: 0 0 24px;
}

.success-btn {
  padding: 12px 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, #4f96de, #8bcfff);
  border: none;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  font-size: 1rem;
}

/* ── HERO ── */
#hero {
  background: linear-gradient(135deg, #4f96de, #8bcfff);
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
}

.hero-emoji {
  font-size: 5rem;
  margin-bottom: 16px;
}

#hero h1 {
  color: #fff;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  margin: 0 0 16px;
}

#hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  margin: 0 0 32px;
}

.hero-cta {
  padding: 14px 36px;
  background: #fff;
  color: #1f3250;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.hero-cta:hover {
  color: #1f3250;
  text-decoration: none;
}

/* ── PRODUCTS ── */
#products {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 24px;
}

.section-title {
  text-align: center;
  color: #1f3250;
  font-size: 2rem;
  margin-bottom: 40px;
}

#product-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.list-msg {
  text-align: center;
  color: #7a9abf;
  grid-column: 1 / -1;
}

.list-msg.error {
  color: #e55;
}

.product-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
  transition: transform .2s;
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.product-card-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #cce8ff, #eff6ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.product-card-body {
  padding: 20px;
}

.product-card-body h3 {
  margin: 0 0 6px;
  color: #1f3250;
  font-size: 1.1rem;
}

.product-collection {
  margin: 0 0 12px;
  color: #7a9abf;
  font-size: .85rem;
}

.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.product-price {
  font-weight: 800;
  color: #4f96de;
  font-size: 1.1rem;
}

.product-stock {
  font-size: .8rem;
  color: #aaa;
}

.product-stock.out {
  color: #e57373;
}

.product-like-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.like-product-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1.5px solid #ffd0d0;
  border-radius: 999px;
  padding: 5px 14px;
  cursor: pointer;
  font-size: .85rem;
  color: #e57373;
  font-weight: 600;
  transition: all .2s;
}

.like-product-btn:hover {
  background: #fff0f0;
}

.add-cart-btn {
  width: 100%;
  padding: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #8bcfff, #b6def5);
  border: none;
  color: #1f3250;
  font-weight: 700;
  cursor: pointer;
  font-size: .9rem;
  transition: opacity .2s;
}

.add-cart-btn:not(:disabled):hover {
  opacity: .85;
}

.add-cart-btn:disabled {
  cursor: not-allowed;
  opacity: .55;
}

/* ── INQUIRY ── */
#inquiry {
  max-width: 640px;
  margin: 60px auto 80px;
  padding: 0 24px;
}

#inquiry .section-title {
  margin-bottom: 8px;
}

.section-sub {
  text-align: center;
  color: #7a9abf;
  margin-bottom: 32px;
}

/* JS muvaffaqiyatli yuborishda display:block qiladi */
#inquiry-success {
  display: none;
  text-align: center;
  padding: 40px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

#inquiry-success h3 {
  color: #1f3250;
  margin: 0 0 8px;
}

#inquiry-success p {
  color: #7a9abf;
  margin: 0 0 20px;
}

.inquiry-reset-btn {
  padding: 10px 28px;
  border-radius: 999px;
  border: 2px solid #e0ecff;
  background: #fff;
  color: #4a8cff;
  font-weight: 600;
  cursor: pointer;
}

#inquiry-form {
  background: #fff;
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.form-field {
  margin-bottom: 20px;
}

.form-field-lg {
  margin-bottom: 28px;
}

.form-label {
  display: block;
  font-weight: 700;
  color: #4a6fa2;
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1.5px solid #d0e8ff;
  font-size: 1rem;
  outline: none;
}

textarea.form-input {
  resize: vertical;
}

.inquiry-submit-btn {
  width: 100%;
  padding: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #8bcfff, #b6def5);
  border: none;
  color: #1f3250;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(84, 142, 218, 0.3);
}

/* ── CART TOAST ── */
#cart-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1f3250;
  color: #fff;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .9rem;
  opacity: 0;
  transition: opacity .3s, transform .3s;
  z-index: 999;
  pointer-events: none;
}
