/* ============================================================
   RCV Academy eStore - Stylesheet
   Uses the portal's design tokens from style.css.
   All selectors are test automation practice targets.
   ============================================================ */

/* -- Store-specific vars ----------------------------------- */
:root {
  --store-gold: var(--warning); /* amber - star ratings */
}

/* -- Store sub-nav bar ------------------------------------- */
.store-subnav {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 18px;
  margin-bottom: 22px;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
}
.store-subnav-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
}
.store-subnav-brand:hover { color: var(--primary); text-decoration: none; }
.store-subnav-brand i { color: var(--primary); font-size: 17px; }
.store-subnav-brand strong { color: var(--primary); }
.store-subnav-search {
  display: flex;
  flex: 1;
  max-width: 400px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color .2s;
}
.store-subnav-search:focus-within { border-color: var(--primary); }
.store-subnav-search input {
  flex: 1;
  padding: 7px 12px;
  border: none;
  outline: none;
  font-size: 13.5px;
  background: var(--card-bg);
  color: var(--text);
}
.store-subnav-search button {
  padding: 7px 14px;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 14px;
  transition: background .2s;
}
.store-subnav-search button:hover { background: var(--primary-dark); }
.store-subnav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex-wrap: wrap;
}
.store-snl {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: background .2s, color .2s;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  background: transparent;
  border: none;
}
.store-snl:hover, .store-snl.active {
  background: var(--primary-light);
  color: var(--primary);
  text-decoration: none;
}
.store-snl-cta { background: var(--primary); color: #fff !important; font-weight: 600; }
.store-snl-cta:hover { background: var(--primary-dark) !important; color: #fff !important; }
.store-snl-badge {
  position: absolute;
  top: 1px; right: 4px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 10px;
  padding: 1px 5px;
  min-width: 17px;
  text-align: center;
  line-height: 15px;
}
.store-snl-dropdown { user-select: none; }
.store-snl-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 180px;
  padding: 4px 0;
  z-index: 500;
}
.store-snl-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 13.5px;
  color: var(--text);
  text-decoration: none;
  transition: background .15s;
}
.store-snl-menu-item:hover { background: var(--primary-light); color: var(--primary); text-decoration: none; }
.store-snl-menu-divider { border: none; border-top: 1px solid var(--border); margin: 4px 0; }

/* -- Store body wrapper ------------------------------------ */
.store-body {
  /* Inherits layout from portal .page-content */
}

.store-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.store-breadcrumb a { color: var(--primary); text-decoration: none; }
.store-breadcrumb a:hover { text-decoration: underline; }
.store-breadcrumb .sep { color: #b0b8c4; }

/* â”€â”€ Category filter bar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.store-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.store-filter-bar label {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
}
.store-filter-btn {
  display: inline-block;
  padding: 6px 16px;
  border: 1.5px solid var(--border);
  background: #fff;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  transition: all .2s;
}
.store-filter-btn:hover, .store-filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* â”€â”€ Sort / results bar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.store-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}
.store-results-count { font-size: 13px; color: #64748b; }
.store-sort-select {
  padding: 6px 12px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  background: #fff;
  cursor: pointer;
}

/* â”€â”€ Product Grid â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.store-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.store-product-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
  position: relative;
}
.store-product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.product-wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255,255,255,.9);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #9ca3af;
  transition: color .2s, background .2s;
  z-index: 2;
}
.product-wishlist-btn:hover, .product-wishlist-btn.wishlisted { color: #ef4444; background: #fff; }

.product-img-wrap {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fb;
  padding: 16px;
}
.product-img-wrap img {
  max-width: 100%;
  max-height: 180px;
  object-fit: contain;
  transition: transform .3s;
}
.store-product-card:hover .product-img-wrap img { transform: scale(1.04); }

.product-info {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 4px;
}
.product-category-tag, .product-category {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--accent);
}
.product-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-name a { text-decoration: none; color: inherit; }
.product-name a:hover { color: var(--primary); }
a.product-name { display: block; text-decoration: none; color: var(--text); }
a.product-name:hover { color: var(--primary); }

.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
}
.product-rating .stars { color: var(--store-gold); }
.product-rating .rating-count { color: #64748b; font-size: 12px; }

.product-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}
.product-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.product-original-price, .product-orig-price {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: line-through;
}
.product-discount-badge {
  font-size: 11px;
  font-weight: 700;
  background: #fef2f2;
  color: #ef4444;
  padding: 2px 6px;
  border-radius: 4px;
}

.product-add-btn {
  display: block;
  width: calc(100% - 28px);
  margin: 0 14px 14px;
  padding: 9px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: background .2s;
}
.product-add-btn:hover { background: var(--primary-dark); }
.product-add-btn.in-cart { background: #22c55e; }
.product-add-btn.in-cart:hover { background: #16a34a; }

/* â”€â”€ Product Detail Page â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.store-detail-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 800px) {
  .store-detail-layout { grid-template-columns: 1fr; }
}

.product-detail-gallery {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.product-detail-gallery .main-image {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
}
.product-detail-gallery .thumb-row {
  display: flex;
  gap: 8px;
}
.product-detail-gallery .thumb {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border: 2px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  padding: 4px;
  transition: border-color .2s;
}
.product-detail-gallery .thumb:hover,
.product-detail-gallery .thumb.active { border-color: var(--primary); }

.product-detail-info {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}
.product-detail-info .product-name {
  font-size: 22px;
  font-weight: 700;
  -webkit-line-clamp: unset;
  overflow: visible;
  color: var(--text);
}
.product-detail-info .product-price { font-size: 24px; }
.product-detail-info .product-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 14px 0;
}

.qty-selector {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  width: fit-content;
  margin: 16px 0;
}
.qty-selector button {
  width: 36px;
  height: 38px;
  background: #f1f5f9;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #374151;
  transition: background .2s;
}
.qty-selector button:hover { background: var(--border); }
.qty-selector input {
  width: 54px;
  height: 38px;
  border: none;
  border-left: 1.5px solid var(--border);
  border-right: 1.5px solid var(--border);
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  outline: none;
}

.detail-action-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-add-to-cart {
  padding: 11px 28px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-add-to-cart:hover { background: var(--primary-dark); }
.btn-buy-now {
  padding: 11px 28px;
  background: var(--text);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background .2s;
}
.btn-buy-now:hover { background: #334155; color: #fff; text-decoration: none; }
.btn-wishlist-detail {
  padding: 11px 16px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
  color: #64748b;
  transition: all .2s;
}
.btn-wishlist-detail:hover, .btn-wishlist-detail.wishlisted { color: #ef4444; border-color: #ef4444; }

.product-meta-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 18px;
}
.product-meta-table td {
  padding: 7px 10px;
  border-bottom: 1px solid var(--border);
}
.product-meta-table td:first-child {
  font-weight: 600;
  color: #374151;
  width: 130px;
  background: #f8fafc;
}

/* â”€â”€ Cart Page â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.store-cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 900px) { .store-cart-layout { grid-template-columns: 1fr; } }

.store-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.store-table th {
  padding: 12px 16px;
  background: #f1f5f9;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #64748b;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.store-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  font-size: 14px;
}
.store-table tbody tr:last-child td { border-bottom: none; }
.store-table tbody tr:hover td { background: var(--primary-light); }

/* product-card-img-wrap alias used by wishlist/search */
.product-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  padding: 14px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.product-card-img-wrap img {
  max-width: 100%;
  max-height: 160px;
  object-fit: contain;
  transition: transform .3s;
}
.store-product-card:hover .product-card-img-wrap img { transform: scale(1.04); }
.product-badge {
  position: absolute;
  top: 8px; left: 8px;
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}
/* product-card-body alias */
.product-card-body {
  padding: 12px 14px 8px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 4px;
}

.cart-product-cell {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cart-product-cell img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: #f8f9fb;
  border-radius: 6px;
  padding: 4px;
  flex-shrink: 0;
}
.cart-product-cell .cart-prod-name { font-weight: 600; font-size: 14px; }
.cart-product-cell .cart-prod-category { font-size: 12px; color: #64748b; }

.cart-qty-input {
  width: 60px;
  padding: 6px 8px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}
.cart-remove-btn {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 16px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background .2s;
}
.cart-remove-btn:hover { background: #fee2e2; }

/* â”€â”€ Order summary / checkout summary panel â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.store-summary-panel {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}
.store-summary-panel h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 10px;
  color: var(--text);
}
.summary-row.total {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 2px solid var(--border);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}
.summary-row.discount { color: #22c55e; }

.promo-row {
  display: flex;
  gap: 8px;
  margin: 14px 0;
}
.promo-row input {
  flex: 1;
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  outline: none;
}
.promo-row input:focus { border-color: var(--primary); }
.promo-row button {
  padding: 8px 14px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: background .2s;
}
.promo-row button:hover { background: var(--primary-dark); }

.btn-checkout {
  display: block;
  width: 100%;
  padding: 13px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background .2s;
  margin-top: 16px;
}
.btn-checkout:hover { background: var(--primary-dark); }

/* â”€â”€ Checkout Page â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.store-checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 900px) { .store-checkout-layout { grid-template-columns: 1fr; } }

.store-form-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 28px;
  margin-bottom: 20px;
}
.store-form-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.store-form-card h3 .step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 600px) { .form-grid-2 { grid-template-columns: 1fr; } }
.form-grid-2 .span-2 { grid-column: 1 / -1; }

.store-form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.store-form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.store-form-group label .req { color: #ef4444; }
.store-form-group input,
.store-form-group select,
.store-form-group textarea {
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  transition: border-color .2s;
  background: #fff;
}
.store-form-group input:focus,
.store-form-group select:focus,
.store-form-group textarea:focus { border-color: var(--primary); }
.store-form-group .field-error {
  font-size: 12px;
  color: #ef4444;
  display: none;
}
.store-form-group.has-error input,
.store-form-group.has-error select { border-color: #ef4444; }
.store-form-group.has-error .field-error { display: block; }

/* Payment method selector */
.pay-method-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.pay-method-option {
  flex: 1;
  min-width: 130px;
}
.pay-method-option input[type="radio"] { display: none; }
.pay-method-option label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px;
  border: 2px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  transition: all .2s;
  text-align: center;
}
.pay-method-option label i { font-size: 22px; color: #64748b; }
.pay-method-option input[type="radio"]:checked + label {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}
.pay-method-option input[type="radio"]:checked + label i { color: var(--primary); }
.pay-method-option label i { font-size: 22px; color: var(--text-muted); }

/* â”€â”€ Checkout Steps progress bar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.checkout-steps {
  display: flex;
  align-items: center;
  margin-bottom: 28px;
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 16px 24px;
  box-shadow: var(--shadow);
}
.checkout-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  position: relative;
}
.checkout-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--border);
}
.checkout-step.done::after,
.checkout-step.active::after {
  background: var(--primary);
}
.step-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: #fff;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #9ca3af;
}
.checkout-step.done .step-circle {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.checkout-step.active .step-circle {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 0 4px rgba(99,102,241,.15);
}
.step-label { font-size: 11px; font-weight: 600; color: #64748b; }
.checkout-step.active .step-label { color: var(--primary); }
.checkout-step.done .step-label { color: var(--text); }

/* â”€â”€ Order Confirmation â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.order-confirm-box {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 48px 32px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.confirm-icon { font-size: 64px; color: #22c55e; margin-bottom: 16px; }
.confirm-title { font-size: 26px; font-weight: 800; color: var(--text); }
.confirm-sub { font-size: 15px; color: #64748b; margin: 8px 0 24px; }
.confirm-order-num {
  display: inline-block;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: .5px;
}

/* â”€â”€ Orders List Page â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.order-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 24px;
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}
.order-card-header {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.order-num { font-weight: 700; font-size: 15px; }
.order-date { font-size: 13px; color: #64748b; }
.order-status-badge {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.status-processing { background: #fef9c3; color: #854d0e; }
.status-shipped    { background: #dbeafe; color: #1e40af; }
.status-delivered  { background: #dcfce7; color: #166534; }
.status-cancelled  { background: #fee2e2; color: #991b1b; }

.order-items-preview {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.order-item-thumb {
  width: 50px;
  height: 50px;
  object-fit: contain;
  background: #f8f9fb;
  border-radius: 6px;
  padding: 4px;
  border: 1px solid var(--border);
}
.order-total { font-size: 18px; font-weight: 700; color: var(--text); }
.order-action-btn {
  padding: 7px 16px;
  border: 1.5px solid var(--border);
  background: #fff;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  text-decoration: none;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.order-action-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* â”€â”€ Order Detail Page â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.order-detail-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 800px) { .order-detail-grid { grid-template-columns: 1fr; } }

.order-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}
.order-timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.order-timeline li {
  padding: 4px 0 16px 32px;
  position: relative;
  font-size: 13px;
  color: var(--text);
}
.order-timeline li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border);
  border: 2px solid #fff;
}
.order-timeline li.done::before { background: #22c55e; }
.order-timeline li.active::before { background: var(--primary); }
.timeline-title { font-weight: 600; margin-bottom: 2px; }
.timeline-date { color: #9ca3af; font-size: 12px; }

/* â”€â”€ Profile Page â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.store-profile-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 800px) { .store-profile-layout { grid-template-columns: 1fr; } }

.profile-sidebar {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.profile-avatar-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 28px 20px;
  text-align: center;
}
.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  border: 3px solid rgba(255,255,255,.3);
}
.profile-name { font-size: 16px; font-weight: 700; }
.profile-email { font-size: 13px; color: rgba(255,255,255,.7); margin-top: 4px; }

.profile-nav { padding: 8px 0; }
.profile-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  transition: all .2s;
  border-left: 3px solid transparent;
}
.profile-nav-link:hover { background: var(--primary-light); color: var(--primary); text-decoration: none; }
.profile-nav-link.active { background: var(--primary-light); color: var(--primary); border-left-color: var(--primary); }
.profile-nav-link i { font-size: 16px; width: 20px; text-align: center; }

/* â”€â”€ Wishlist Page â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.wishlist-empty, .cart-empty {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 60px 24px;
  text-align: center;
  color: #64748b;
}
.wishlist-empty i, .cart-empty i { font-size: 56px; color: #e2e8f0; margin-bottom: 16px; }
.wishlist-empty h3, .cart-empty h3 { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 8px; }

/* â”€â”€ Auth pages (login / register) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.store-auth-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px 40px;
}
.store-auth-card {
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: 36px 36px 30px;
  width: 100%;
  max-width: 460px;
}
.store-auth-card .auth-logo {
  text-align: center;
  margin-bottom: 28px;
}
.store-auth-card .auth-logo .logo-text {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
}
.store-auth-card .auth-logo .logo-text span { color: var(--primary); }
.store-auth-card h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  text-align: center;
}
.store-auth-card .auth-sub {
  font-size: 13px;
  color: #64748b;
  text-align: center;
  margin-bottom: 28px;
}
.store-auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: #64748b;
}
.store-auth-footer a { color: var(--primary); font-weight: 600; text-decoration: none; }
.store-auth-footer a:hover { text-decoration: underline; }

/* â”€â”€ Store alert messages â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.store-alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.store-alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.store-alert-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.store-alert-info    { background: var(--primary-light); color: var(--primary-dark); border: 1px solid #c7d2fe; }

/* â”€â”€ Store button utilities â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.store-btn {
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  transition: all .2s;
}
.store-btn-primary { background: var(--primary); color: #fff; border: none; }
.store-btn-primary:hover { background: var(--primary-dark); text-decoration: none; color: #fff; }
.store-btn-outline { background: var(--card-bg); color: var(--text); border: 1.5px solid var(--border); }
.store-btn-outline:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.store-btn-danger { background: #ef4444; color: #fff; }
.store-btn-danger:hover { background: #dc2626; }

/* â”€â”€ Pagination â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.store-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.store-page-btn {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  border: 1.5px solid var(--border);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  text-decoration: none;
}
.store-page-btn:hover, .store-page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* â”€â”€ Toast notification â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.store-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.store-toast {
  background: var(--text);
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-md);
  animation: toastIn .3s ease;
  min-width: 240px;
  max-width: 360px;
}
.store-toast.success i { color: #22c55e; }
.store-toast.error i   { color: #ef4444; }
@keyframes toastIn {
  from { transform: translateX(60px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* â”€â”€ Review section â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.review-card {
  background: #f8fafc;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
}
.review-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.review-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.review-name { font-weight: 600; font-size: 14px; color: var(--text); }
.review-date { font-size: 12px; color: var(--text-muted); margin-left: auto; }
.review-text { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* â”€â”€ Home page banner â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.store-hero-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 60%, #1e1b4b 100%);
  border-radius: var(--radius);
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  overflow: hidden;
  position: relative;
}
.store-hero-banner::after {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(99,102,241,.15);
}
.hero-text h1 { font-size: 28px; font-weight: 800; color: #fff; line-height: 1.3; }
.hero-text h1 span { color: #a5f3fc; }
.hero-text p { font-size: 15px; color: rgba(255,255,255,.8); margin: 10px 0 20px; }
.hero-tag {
  display: inline-block;
  background: #fff;
  color: var(--primary);
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: background .2s;
}
.hero-tag:hover { background: var(--primary-light); text-decoration: none; }

/* â”€â”€ Section headings â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.store-section-heading {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.store-section-heading .heading-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, var(--border), transparent);
}

/* â”€â”€ Empty state â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.store-empty-state {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  padding: 52px 20px;
  color: var(--text-muted);
}
.store-empty-state .empty-icon,
.store-empty-state i { font-size: 44px; margin-bottom: 10px; display: block; color: var(--border); }
.store-empty-state .empty-title { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.store-empty-state .empty-subtitle,
.store-empty-state p { font-size: 14px; margin-bottom: 18px; }

/* ── Pagination ──────────────────────────────────────────── */
.store-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 32px 0 16px;
  flex-wrap: wrap;
}
.pagination-pages {
  display: flex;
  align-items: center;
  gap: 4px;
}
.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all .2s;
}
.pagination-btn:hover:not(.disabled):not(.active) {
  background: #f1f5f9;
  border-color: var(--primary);
  color: var(--primary);
}
.pagination-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 700;
}
.pagination-btn.disabled {
  opacity: .4;
  cursor: not-allowed;
  pointer-events: none;
}
.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 14px;
  color: #94a3b8;
  user-select: none;
}
.pagination-prev i,
.pagination-next i {
  font-size: 11px;
}
.pagination-prev i { margin-right: 4px; }
.pagination-next i { margin-left: 4px; }

/* â”€â”€ Responsive â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
/* -- Category filter chips (search page) ------------------ */
.category-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.cat-btn {
  padding: 5px 14px;
  border: 1.5px solid var(--border);
  background: var(--card-bg);
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: all .2s;
}
.cat-btn:hover, .cat-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  text-decoration: none;
}

/* -- Order tab filters ------------------------------------ */
.order-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border);
}
.order-tab-btn {
  padding: 8px 16px;
  border: none;
  background: transparent;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  text-decoration: none;
  transition: color .2s, border-color .2s;
}
.order-tab-btn:hover { color: var(--primary); text-decoration: none; }
.order-tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }

/* -- Responsive ------------------------------------------- */
@media (max-width: 768px) {
  .store-subnav { gap: 8px; padding: 8px 14px; }
  .store-subnav-search { display: none; }
  .store-subnav-links { margin-left: 0; }
  .store-hero-banner { padding: 22px 20px; }
  .hero-text h1 { font-size: 20px; }
  .store-auth-card { padding: 26px 18px; }
}
@media (max-width: 480px) {
  .store-subnav-brand span { display: none; }
}
