/* ============================================
   PR-Store Pages Stylesheet
   Consolidated styles from all page templates
   Uses #2872A1 / #CBDDE9 palette
   ============================================ */

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-page {
  background-color: var(--bg);
  min-height: calc(100vh - 200px);
}

.about-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--text-inverse);
  padding: 64px 24px;
  text-align: center;
}

.about-hero h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
}

.about-hero p {
  font-size: 16px;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.about-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px;
}

.about-section {
  margin-bottom: 48px;
}

.about-section h2,
.about-content h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.about-section p,
.about-content p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.about-features,
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.feature-card {
  background: var(--white);
  border-radius: 12px;
  padding: 28px;
  border: 1px solid var(--border);
  text-align: center;
  transition: box-shadow var(--transition-normal);
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
}

.feature-card i {
  font-size: 32px;
  color: var(--primary);
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.cta-section {
  background: var(--secondary-light);
  padding: 48px 24px;
  text-align: center;
  border-radius: 12px;
  margin-top: 32px;
}

.cta-section h2 {
  color: var(--text-primary);
  margin-bottom: 12px;
}

.cta-section p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.cta-section .btn-primary,
.cta-section .btn {
  display: inline-block;
}

/* Values List */
.values-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.values-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  margin-bottom: 12px;
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  transition: box-shadow var(--transition-normal);
}

.values-list li:hover {
  box-shadow: var(--shadow-sm);
}

.values-list li strong {
  font-size: 16px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.values-list li strong i {
  color: var(--primary);
  font-size: 16px;
}

/* ============================================
   CART PAGE
   ============================================ */
.cart-page {
  background-color: var(--bg);
  min-height: calc(100vh - 200px);
}

.cart-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
}

.cart-header {
  margin-bottom: 24px;
}

.cart-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
}

/* .cart-layout kept as alias */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
}

.cart-items {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.cart-item {
  display: flex;
  gap: 20px;
  padding: 20px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-image,
.cart-item .item-image {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--gray-100);
  flex-shrink: 0;
}

.cart-item .item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.cart-item-details,
.cart-item .item-details {
  flex: 1;
  min-width: 0;
}

.cart-item-name,
.cart-item .item-name {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  font-size: 15px;
}

.cart-item-price,
.cart-item .item-price {
  color: var(--primary);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 10px;
}

.cart-qty-controls,
.cart-item .item-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cart-qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--border-dark);
  background: var(--white);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  transition: background var(--transition-fast);
}

.cart-qty-btn:hover {
  background: var(--secondary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.cart-qty-value {
  font-weight: 600;
  font-size: 15px;
  min-width: 24px;
  text-align: center;
}

.qty-input {
  width: 60px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  text-align: center;
  font-weight: 600;
}

.qty-input:focus {
  outline: none;
  border-color: var(--primary);
}

.remove-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--danger);
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.remove-btn:hover {
  background: #FEF2F2;
  border-color: var(--danger);
}

.stock-warning {
  font-size: 12px;
  font-weight: 500;
  color: var(--warning);
  display: flex;
  align-items: center;
  gap: 4px;
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
  padding: 8px;
  border-radius: 6px;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.cart-item-remove:hover {
  color: var(--danger);
  background: #FEF2F2;
}

/* Cart Summary */
.cart-summary {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 24px;
  position: sticky;
  top: 80px;
}

.cart-summary h3,
.summary-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 14px;
}

.summary-row .label {
  color: var(--text-secondary);
}

.summary-row .value {
  font-weight: 600;
  color: var(--text-primary);
}

.summary-row.total {
  padding-top: 16px;
  border-top: 2px solid var(--border);
  margin-top: 12px;
  font-size: 18px;
  font-weight: 700;
}

.summary-row.total span:last-child {
  color: var(--primary);
}

.summary-total {
  display: flex;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 2px solid var(--border);
  margin-top: 12px;
  font-size: 18px;
  font-weight: 700;
}

.summary-total .value {
  color: var(--primary);
}

.cart-summary .btn-primary {
  margin-top: 20px;
}

.empty-cart {
  text-align: center;
  padding: 64px 24px;
}

.empty-cart i {
  font-size: 48px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.empty-cart h2 {
  color: var(--text-primary);
  margin-bottom: 8px;
}

.empty-cart p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* ============================================
   CHECKOUT PAGE
   ============================================ */
.checkout-page {
  background-color: var(--bg);
  min-height: calc(100vh - 200px);
}

.checkout-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 32px;
  align-items: start;
}

.checkout-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
}

/* .checkout-layout kept as alias */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 32px;
  align-items: start;
}

.checkout-form {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 28px;
}

.checkout-form h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.checkout-summary,
.order-summary {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 24px;
  position: sticky;
  top: 80px;
}

.checkout-summary h3,
.order-summary .summary-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.checkout-item,
.order-summary .order-item {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  justify-content: space-between;
  align-items: flex-start;
}

.checkout-item:last-of-type,
.order-summary .order-item:last-of-type {
  border-bottom: none;
}

.checkout-item-image {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--gray-100);
}

.checkout-item-name,
.order-item-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
}

.checkout-item-price,
.order-item-price {
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}

.checkout-item-qty,
.order-item-qty {
  color: var(--text-muted);
  font-size: 13px;
}

/* Payment Methods */
.payment-methods {
  margin-top: 24px;
}

.payment-methods h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.payment-option,
.payment-method-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 2px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  margin-bottom: 12px;
  transition: border-color var(--transition-fast);
}

.payment-option:hover,
.payment-option.active,
.payment-method-card:hover,
.payment-method-card.active {
  border-color: var(--primary);
  background: var(--secondary-light);
}

.payment-option i,
.payment-method-icon {
  font-size: 20px;
  color: var(--primary);
}

.payment-option-label,
.payment-method-name {
  font-weight: 600;
  color: var(--text-primary);
}

.payment-option-desc,
.payment-method-details {
  font-size: 13px;
  color: var(--text-muted);
}

.payment-coming-soon {
  padding: 20px;
  background: var(--surface-alt);
  border-radius: 10px;
  text-align: center;
  margin-top: 12px;
}

.payment-coming-soon-badge {
  display: inline-block;
  background: var(--secondary);
  color: var(--primary-dark);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}

.payment-coming-soon p {
  color: var(--text-muted);
  font-size: 13px;
}

.payment-coming-icons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 12px;
}

.payment-coming-icons i {
  font-size: 28px;
  color: var(--text-muted);
  opacity: 0.5;
}

/* Form Sections */
.form-section {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.form-section:last-of-type {
  border-bottom: none;
}

.form-section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.auth-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.auth-toggle button {
  flex: 1;
  padding: 10px 16px;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.auth-toggle button.active {
  border-color: var(--primary);
  background: var(--secondary-light);
  color: var(--primary);
  font-weight: 600;
}

.auth-toggle button:hover:not(.active) {
  border-color: var(--primary-light);
}

.guest-email-field {
  margin-top: 12px;
}

.order-verification {
  background: var(--secondary-light);
  border: 1px solid var(--secondary);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.order-verification i {
  color: var(--primary);
}

.payment-method-info {
  flex: 1;
}

/* Security Badge */
.security-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 14px;
  background: var(--secondary-light);
  border-radius: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.security-badge i {
  color: var(--primary);
}

/* Coupon Section */
.coupon-section {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 16px;
  margin-bottom: 16px;
}

.coupon-input-group {
  display: flex;
  gap: 8px;
}

.coupon-input-group input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
}

.coupon-input-group input:focus {
  outline: none;
  border-color: var(--primary);
}

.coupon-message {
  margin-top: 8px;
  font-size: 13px;
}

/* Payment Confirmation */
.payment-confirmation {
  display: none;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 12px 16px;
  background: #F0FDF4;
  color: var(--success);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
}

.payment-confirmation.show {
  display: flex;
}

/* Guest Checkout Notice */
.guest-notice {
  background: var(--secondary-light);
  border: 1px solid var(--secondary);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 24px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.guest-notice i {
  color: var(--primary);
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.guest-notice p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-page {
  background-color: var(--bg);
  min-height: calc(100vh - 200px);
}

.contact-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--text-inverse);
  padding: 56px 24px;
  text-align: center;
}

.contact-hero h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-hero p {
  font-size: 16px;
  opacity: 0.9;
}

.contact-content,
.contact-section .container {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-info-card {
  background: var(--white);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--border);
}

.contact-info-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.contact-info-item {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.contact-info-item i {
  width: 40px;
  height: 40px;
  background: var(--secondary-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.contact-info-item h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.contact-info-item p,
.contact-info-item a {
  font-size: 14px;
  color: var(--text-secondary);
}

.contact-info-item a:hover {
  color: var(--primary);
}

.contact-form-card,
.contact-form-container {
  background: var(--white);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--border);
}

.contact-form-card h3,
.contact-form-container h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.submit-btn {
  width: 100%;
  padding: 14px 24px;
  background: var(--primary);
  color: var(--text-inverse);
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background var(--transition-fast);
}

.submit-btn:hover {
  background: var(--primary-dark);
}

.form-submit-success,
.success-message {
  text-align: center;
  padding: 32px;
  background: #F0FDF4;
  border-radius: 10px;
}

.form-submit-success i,
.success-message i {
  font-size: 36px;
  color: var(--success);
  margin-bottom: 12px;
}

/* FAQ Section */
.faq-section {
  padding: 48px 24px;
  max-width: 960px;
  margin: 0 auto;
}

.faq-section h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 32px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.faq-item {
  background: var(--white);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--border);
  transition: box-shadow var(--transition-normal);
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
}

.faq-item h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.faq-item p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   ORDER CONFIRMATION PAGE
   ============================================ */
.confirmation-page {
  background-color: var(--bg);
  min-height: calc(100vh - 200px);
}

.confirmation-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 48px 24px;
  text-align: center;
}

.confirmation-icon,
.success-icon {
  width: 72px;
  height: 72px;
  background: #F0FDF4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.confirmation-icon i,
.success-icon i {
  font-size: 36px;
  color: var(--success);
}

.confirmation-container h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.confirmation-container p,
.confirmation-message {
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.6;
}

.order-number {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 16px;
}

.order-details-card,
.order-details {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 24px;
  margin-top: 32px;
  text-align: left;
}

.order-details-card h3,
.order-details h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  font-size: 14px;
  color: var(--text-muted);
}

.detail-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

/* ============================================
   ORDERS PAGE
   ============================================ */
.orders-page {
  background-color: var(--bg);
  min-height: calc(100vh - 200px);
}

.orders-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 0 32px 0;
}

.order-card {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 24px;
  margin-bottom: 16px;
}

/* Order Header - matches JS: .order-header */
.order-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.order-id {
  font-weight: 700;
  font-size: 16px;
  color: var(--text-primary);
}

/* Order Items - matches JS: .order-items, .order-item */
.order-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.order-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 12px;
  background: var(--gray-50, #F8FAFC);
  border-radius: 10px;
}

.item-image {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-details {
  flex: 1;
  min-width: 0;
}

.item-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 14px;
  margin-bottom: 4px;
}

.item-meta {
  font-size: 13px;
  color: var(--text-muted);
}

/* Order Footer - matches JS: .order-footer */
.order-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.order-total {
  font-weight: 700;
  color: var(--primary);
  font-size: 18px;
}

.order-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.empty-orders {
  text-align: center;
  padding: 64px 24px;
}

.empty-orders i {
  font-size: 48px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* ============================================
   PRODUCT DETAIL PAGE
   ============================================ */

/* Main section & container */
.product-detail {
  background-color: var(--bg);
  min-height: calc(100vh - 200px);
  padding-bottom: 48px;
}

/* Two-column grid: images left, details right */
.product-detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 32px;
  margin-top: 12px;
}

/* ---- Image Gallery (left column) ---- */
.product-images {
  position: relative;
}

.main-image {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: var(--gray-100);
  margin-bottom: 16px;
}

.main-image img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

.thumbnail-images {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.thumbnail {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  border: 2px solid var(--border);
  cursor: pointer;
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnail:hover,
.thumbnail.active {
  border-color: var(--primary);
}

/* ---- Product Details (right column) ---- */
.product-details {
  display: flex;
  flex-direction: column;
}

.product-details .product-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.3;
}

/* Meta: rating + stock */
.product-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.rating-section {
  display: flex;
  align-items: center;
  gap: 6px;
}

.rating-section .stars {
  color: var(--warning);
  font-size: 14px;
}

.rating-section .rating-value {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 14px;
}

.rating-section #reviewCount {
  color: var(--text-muted);
  font-size: 13px;
}

.stock-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

.stock-status.in-stock {
  background: #F0FDF4;
  color: var(--success);
}

.stock-status.out-of-stock {
  background: #FEF2F2;
  color: var(--danger);
}

/* Price section */
.price-section {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.product-details .current-price {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
}

.product-details .original-price {
  font-size: 18px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.discount-badge {
  background: #F0FDF4;
  color: var(--success);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}

/* Quantity selector */
.quantity-selector {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.quantity-selector label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 14px;
}

.quantity-selector input[type="number"] {
  width: 80px;
  padding: 8px 12px;
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  font-size: 15px;
  text-align: center;
  background: var(--white);
  color: var(--text-primary);
}

.quantity-selector input[type="number"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(40, 114, 161, 0.1);
}

/* Action buttons */
.action-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.action-buttons .btn-outline,
.action-buttons .btn-primary {
  padding: 12px 28px;
  font-size: 15px;
}

.action-buttons .btn-primary {
  flex-shrink: 0;
}

/* Wishlist button */
.wishlist-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid var(--border-dark);
  background: var(--white);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.wishlist-btn:hover {
  color: var(--danger);
  border-color: var(--danger);
  background: #FEF2F2;
}

.wishlist-btn.active {
  color: var(--danger);
  background: #FEF2F2;
  border-color: var(--danger);
}

/* Description & Specs */
.product-details .description {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.product-details .description h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.product-details .description p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 15px;
}

.specifications-table {
  width: 100%;
  border-collapse: collapse;
}

.specifications-table th,
.specifications-table td {
  padding: 10px 14px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}

.specifications-table th {
  font-weight: 600;
  color: var(--text-primary);
  background: var(--gray-50);
  width: 35%;
}

.specifications-table td {
  color: var(--text-secondary);
}

/* Related Products */
.related-products {
  margin-top: 48px;
}

.related-products h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
}

/* Review form */
.review-form {
  background: var(--gray-50);
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 24px;
}

.review-form h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.review-form select,
.review-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  font-size: 14px;
  background: var(--white);
  color: var(--text-primary);
  font-family: inherit;
}

.review-form select:focus,
.review-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(40, 114, 161, 0.1);
}

/* Review item (from JS) */
.review-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.review-item:last-child {
  border-bottom: none;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.review-rating {
  color: var(--warning);
  margin-bottom: 6px;
  font-size: 13px;
}

/* Breadcrumb for product detail */
.breadcrumb {
  padding: 14px 0;
  font-size: 14px;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  margin: 0 6px;
}

/* Responsive: product detail */
@media (max-width: 768px) {
  .product-detail-content {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 20px;
  }

  .product-details .product-title {
    font-size: 22px;
  }

  .product-details .current-price {
    font-size: 24px;
  }

  .action-buttons {
    flex-direction: column;
  }

  .action-buttons .btn-outline,
  .action-buttons .btn-primary {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

.qty-selector {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.qty-selector label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 14px;
}

.qty-selector .cart-qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Reviews Section */
.reviews-section {
  margin-top: 48px;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 28px;
}

.reviews-section h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.review-card {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.review-card:last-child {
  border-bottom: none;
}

.review-author {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.review-date {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.review-text,
.review-comment {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 14px;
}

/* ============================================
   PRODUCTS LISTING PAGE
   ============================================ */

/* Main products layout: sidebar + content */
.products-page {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

/* Filter toggle button (mobile) */
.filter-toggle-btn {
  display: none;
  width: 100%;
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  margin-bottom: 16px;
  transition: all 0.2s;
}

.filter-toggle-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-toggle-btn i {
  margin-right: 6px;
}

/* Filters Sidebar */
.filters-sidebar {
  width: 250px;
  flex-shrink: 0;
}

.filters-content {
  background: var(--white);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--border);
}

.filter-section {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.filter-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.filter-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-secondary);
  border-radius: 6px;
  transition: all 0.2s;
}

.filter-option:hover {
  color: var(--primary);
  background: var(--secondary-light);
}

.filter-option input[type="checkbox"],
.filter-option input[type="radio"] {
  accent-color: var(--primary);
  margin: 0;
}

/* Price Range */
.price-range {
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-range input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  font-size: 14px;
  min-width: 0;
  background: var(--white);
  color: var(--text-primary);
}

.price-range input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(40, 114, 161, 0.1);
}

.price-range span {
  color: var(--text-muted);
  font-weight: 500;
}

/* Products Content area */
.products-content {
  flex: 1;
  min-width: 0;
}

/* Products Header (count + sort) */
.products-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.results-count {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}

/* Custom Sort Dropdown */
.custom-select-wrapper {
  position: relative;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  background: var(--white);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.2s;
  min-width: 170px;
  justify-content: space-between;
}

.custom-select-trigger:hover {
  border-color: var(--primary);
}

.custom-select-trigger i {
  font-size: 12px;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.custom-select-trigger.active {
  border-color: var(--primary);
}

.custom-select-trigger.active i {
  transform: rotate(180deg);
}

.custom-select-options {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.12);
  border: 1px solid var(--border);
  min-width: 200px;
  z-index: 50;
  display: none;
  overflow: hidden;
}

.custom-select-options.active {
  display: block;
}

.custom-select-option {
  padding: 10px 16px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-primary);
  transition: background 0.15s;
}

.custom-select-option:hover {
  background: var(--secondary-light);
  color: var(--primary);
}

.custom-select-option.selected {
  background: var(--secondary-light);
  color: var(--primary);
  font-weight: 600;
}

/* Hidden native select */
.sort-select {
  display: none;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.page-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border-dark);
  background: var(--white);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.page-btn:hover {
  border-color: var(--primary);
  background: var(--secondary-light);
  color: var(--primary);
}

.page-btn.active {
  background: var(--primary);
  color: var(--text-inverse);
  border-color: var(--primary);
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ============================================
   PROFILE PAGE
   ============================================ */
.profile-page {
  background-color: var(--bg);
  min-height: calc(100vh - 200px);
}

.profile-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  gap: 28px;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--white);
  border-radius: 12px;
  padding: 28px;
  border: 1px solid var(--border);
  margin-bottom: 28px;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--primary);
  flex-shrink: 0;
}

.profile-info h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.profile-info p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* .profile-layout kept as alias */
.profile-layout {
  display: flex;
  gap: 28px;
}

.profile-sidebar {
  width: 240px;
  flex-shrink: 0;
}

.profile-menu {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.profile-menu-item,
.profile-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  cursor: pointer;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.profile-menu-item:last-child,
.profile-menu a:last-child {
  border-bottom: none;
}

.profile-menu-item:hover,
.profile-menu-item.active,
.profile-menu a:hover,
.profile-menu a.active {
  background: var(--secondary-light);
  color: var(--primary);
}

.profile-menu-item i,
.profile-menu a i {
  width: 18px;
  text-align: center;
}

.profile-content {
  flex: 1;
}

.profile-section {
  background: var(--white);
  border-radius: 12px;
  padding: 28px;
  border: 1px solid var(--border);
}

.profile-section h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
}

/* ============================================
   WISHLIST PAGE
   ============================================ */
.wishlist-page {
  background-color: var(--bg);
  min-height: calc(100vh - 200px);
}

.wishlist-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px;
}

.wishlist-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.wishlist-card {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow var(--transition-normal);
}

.wishlist-card:hover {
  box-shadow: var(--shadow-md);
}

.wishlist-card-image,
.wishlist-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--gray-100);
  display: block;
}

.wishlist-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wishlist-card-info,
.wishlist-info {
  padding: 16px;
}

.wishlist-card-name,
.wishlist-name {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  font-size: 15px;
  text-decoration: none;
  display: block;
}

.wishlist-card-name:hover,
.wishlist-name:hover {
  color: var(--primary);
}

.wishlist-card-price,
.wishlist-price {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wishlist-card-actions,
.wishlist-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.wishlist-card-actions button,
.wishlist-actions button {
  flex: 1;
  padding: 8px;
  font-size: 13px;
  border-radius: 6px;
}

.wishlist-rating {
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--warning);
}

.wishlist-stock {
  font-size: 13px;
  margin-bottom: 10px;
  font-weight: 500;
}

.wishlist-stock.in-stock {
  color: var(--success);
}

.wishlist-stock.out-of-stock {
  color: var(--danger);
}

.wishlist-date {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}

.remove-wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: all var(--transition-fast);
  z-index: 2;
}

.remove-wishlist-btn:hover {
  color: var(--danger);
  border-color: var(--danger);
  background: #FEF2F2;
}

.wishlist-remove-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  font-size: 13px;
  transition: all var(--transition-fast);
}

.wishlist-remove-btn:hover {
  color: var(--danger);
  border-color: var(--danger);
  background: #FEF2F2;
}

.empty-wishlist {
  text-align: center;
  padding: 64px 24px;
}

.empty-wishlist i {
  font-size: 48px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.empty-wishlist h2 {
  color: var(--text-primary);
  margin-bottom: 8px;
}

.empty-wishlist p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* ============================================
   LEGAL PAGES (Privacy, Terms)
   ============================================ */
.legal-page {
  background-color: var(--bg);
  min-height: calc(100vh - 200px);
}

.legal-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--text-inverse);
  padding: 48px 24px;
  text-align: center;
}

.legal-hero h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}

.legal-hero p {
  font-size: 15px;
  opacity: 0.9;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px;
}

.legal-container {
  max-width: 100%;
}

.last-updated {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
  padding: 10px 16px;
  background: var(--gray-50, #F8FAFC);
  border-radius: 8px;
}

.table-of-contents {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 32px;
}

.table-of-contents h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.table-of-contents a {
  color: var(--primary);
  text-decoration: none;
  font-size: 14px;
}

.table-of-contents a:hover {
  text-decoration: underline;
}

.table-of-contents ul,
.table-of-contents ol {
  padding-left: 20px;
}

.table-of-contents li {
  margin-bottom: 6px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.data-table th,
.data-table td {
  padding: 12px 16px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  background: var(--gray-50, #F8FAFC);
  font-weight: 700;
  color: var(--text-primary);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.data-table td {
  color: var(--text-secondary);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.legal-section {
  margin-bottom: 36px;
}

.legal-section h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.legal-section h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  margin-top: 20px;
}

.legal-section p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 10px;
}

.legal-section ul,
.legal-section ol {
  color: var(--text-secondary);
  line-height: 1.7;
  padding-left: 24px;
  margin-bottom: 12px;
}

.legal-section li {
  margin-bottom: 6px;
}

.highlight-box {
  background: var(--secondary-light);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 16px;
  border-left: 3px solid var(--primary);
}

.highlight-box p {
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* ============================================
   ADMIN PANEL
   ============================================ */
.admin-container {
  display: flex;
  min-height: calc(100vh - 60px);
}

.admin-sidebar {
  width: 240px;
  background: var(--white);
  border-right: 1px solid var(--border);
  padding: 20px 0;
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
  overflow-y: auto;
  flex-shrink: 0;
}

.admin-title {
  padding: 0 20px 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
}

.admin-menu {
  display: flex;
  flex-direction: column;
}

.admin-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: var(--text-secondary);
  text-decoration: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: all 0.2s;
}

.admin-menu a:hover {
  background: var(--secondary-light);
  color: var(--primary);
}

.admin-menu a.active {
  background: var(--secondary-light);
  color: var(--primary);
  border-left-color: var(--primary);
  font-weight: 600;
}

.admin-menu a i {
  width: 18px;
  text-align: center;
  font-size: 14px;
}

.admin-content {
  flex: 1;
  padding: 28px;
  background: var(--bg);
  min-width: 0;
}

.section {
  display: none;
}

.section.active {
  display: block;
}

.section h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.section h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--white);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--border);
}

.stat-icon {
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
}

/* Admin Tables */
.table-responsive {
  overflow-x: auto;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.table-responsive table {
  width: 100%;
  border-collapse: collapse;
}

.table-responsive th {
  background: var(--gray-50, #F8FAFC);
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.table-responsive td {
  padding: 14px 16px;
  font-size: 14px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
}

.table-responsive tr:last-child td {
  border-bottom: none;
}

.table-responsive tbody tr:hover td {
  background: var(--gray-50, #F8FAFC);
}

/* Admin badge */
.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.status-badge.active {
  background: #F0FDF4;
  color: var(--success);
}

.status-badge.inactive {
  background: #FEF2F2;
  color: var(--danger);
}

/* Analytics Grid */
.analytics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

.analytics-card {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 24px;
}

.analytics-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.analytics-card.full-width {
  grid-column: 1 / -1;
}

.revenue-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 200px;
}

.revenue-chart .chart-bar {
  flex: 1;
  background: var(--secondary);
  border-radius: 4px 4px 0 0;
  min-height: 8px;
  position: relative;
  transition: background 0.2s;
}

.revenue-chart .chart-bar:hover {
  background: var(--primary);
}

.revenue-chart .chart-bar-label {
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

.status-breakdown {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.status-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--gray-50, #F8FAFC);
  border-radius: 8px;
}

.status-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: capitalize;
}

.status-count {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.top-products-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.top-product-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--gray-50, #F8FAFC);
  border-radius: 8px;
}

.top-product-item .rank {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  min-width: 30px;
}

.top-product-item .product-name {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.top-product-item .product-qty {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}

.top-product-item .product-revenue {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

/* Revenue Chart */
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 200px;
}

.chart-bar-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}

.chart-bar-container .chart-bar {
  width: 100%;
  background: var(--secondary);
  border-radius: 4px 4px 0 0;
  min-height: 8px;
  position: relative;
  transition: background 0.2s;
}

.chart-bar-container .chart-bar:hover {
  background: var(--primary);
}

.chart-tooltip {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-primary);
  color: var(--white);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.chart-bar-container .chart-bar:hover .chart-tooltip {
  opacity: 1;
}

.chart-label {
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Spec Rows for Product Editing */
.spec-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}

.spec-row input.spec-key,
.spec-row input.spec-value {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
}

.spec-row input:focus {
  outline: none;
  border-color: var(--primary);
}

.spec-row button {
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.spec-row button:hover {
  color: var(--danger);
  border-color: var(--danger);
}

/* Admin Loading & Access Denied */
.admin-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.admin-access-denied {
  text-align: center;
  padding: 48px;
}

.admin-access-denied h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.admin-access-denied p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* Admin modal */
.modal .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
