/* ═══════════════════════════════════════════════════════════
   TULASI NURSERY — INNER PAGES STYLES (pages.css)
═══════════════════════════════════════════════════════════ */

/* ── Page Banner / Header ─────────────────────────────────── */
.page-banner {
  background-color: var(--bg-warm);
  border-bottom: 1px solid var(--border-light);
  padding: 2.5rem 0;
}

.page-banner h1 {
  color: var(--primary);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.page-body {
  padding: 3rem 0;
}

/* Breadcrumb Navigation */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.breadcrumb a {
  color: var(--text-main);
}

.breadcrumb a:hover {
  color: var(--accent-orange);
}

/* ── Category Filter Bar ──────────────────────────────────── */
.filter-bar {
  background-color: var(--bg-warm);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  border: 1px solid var(--border-light);
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
  min-width: 140px;
}

.filter-group label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
}

.form-control {
  width: 100%;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background-color: #FFFFFF;
  font-size: 0.9rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22, 78, 36, 0.1);
}

/* ── PRODUCT DETAIL LAYOUT ────────────────────────────────── */
.product-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 992px) {
  .product-layout {
    grid-template-columns: 1fr 1fr;
  }
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gallery-main {
  width: 100%;
  height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  background-color: var(--bg-warm);
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.gallery-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 2px solid var(--border-light);
  cursor: pointer;
  transition: var(--transition);
}

.gallery-thumb:hover, .gallery-thumb.active {
  border-color: var(--primary);
}

.product-details {
  display: flex;
  flex-direction: column;
}

.product-cat-tag {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-orange);
  margin-bottom: 0.5rem;
}

.product-title {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  color: var(--primary);
  margin-bottom: 1rem;
}

.product-price-row-lg {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.price-main-lg {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.price-old-lg {
  font-size: 1.2rem;
  color: var(--text-light);
  text-decoration: line-through;
}

.price-save-badge {
  background-color: #FFF3E0;
  color: var(--accent-orange);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
}

.product-short-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

/* Quantity Control & Actions */
.product-add-form {
  margin-bottom: 1.75rem;
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background-color: var(--bg-warm);
  overflow: hidden;
}

.qty-btn {
  width: 40px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-main);
  font-weight: 700;
}

.qty-input {
  width: 50px;
  height: 44px;
  border: none;
  background: transparent;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.specs-box {
  background-color: var(--bg-warm);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 1.5rem;
  border: 1px solid var(--border-light);
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table td {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.92rem;
}

.specs-table td:first-child {
  font-weight: 600;
  color: var(--text-main);
  width: 40%;
}

.specs-table td:last-child {
  color: var(--text-muted);
}

/* ── SHOPPING CART & CHECKOUT ─────────────────────────────── */
.cart-layout, .checkout-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 992px) {
  .cart-layout, .checkout-layout {
    grid-template-columns: 1fr 360px;
  }
}

.cart-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-light);
}

.cart-item-img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

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

.cart-item-name {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--text-main);
  font-size: 1.05rem;
}

.cart-summary, .checkout-summary {
  background-color: var(--bg-warm);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  border: 1px solid var(--border-light);
  position: sticky;
  top: 100px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.65rem 0;
  font-size: 0.95rem;
}

.summary-total {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--primary);
  border-top: 2px solid var(--border-light);
  padding-top: 1rem;
  margin-top: 0.5rem;
}

/* ── AUTH PAGES (Login & Register) ────────────────────────── */
.auth-page {
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.25rem;
  background-color: var(--bg-warm);
}

.auth-card {
  background-color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border-light);
}

.auth-logo {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.auth-card h2 {
  text-align: center;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.auth-switch {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
}

.auth-switch a {
  color: var(--accent-orange);
  font-weight: 700;
}

/* Empty State Component */
.empty-state {
  text-align: center;
  padding: 4rem 1.25rem;
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

/* ── CUSTOMER ACCOUNT LAYOUT (PC & Mobile) ─────────────────── */
.account-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 992px) {
  .account-layout {
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
  }
}

.account-sidebar {
  background-color: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  height: fit-content;
  max-width: 100%;
}
