/* ============================================================
   ToyCity E-Commerce — App Styles
   Extends css/style.css with e-commerce feature styles.

   Color Palette:
     Navy:       #1B2845
     Yellow:     #FFD60A
     Red Accent: #FF6B6B
     Teal:       #2EC4B6

   Typography:
     Headings: "Baloo 2", cursive
     Body:     "DM Sans", sans-serif
   ============================================================ */

/* -------------------------------------------------------
   1. FLASH MESSAGES
   ------------------------------------------------------- */
.flash-message {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.25rem;
  font-family: "DM Sans", sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #fff;
  animation: flashSlideDown 0.35s ease-out;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

@keyframes flashSlideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.flash-message.flash-success {
  background-color: #22c55e;
}

.flash-message.flash-error {
  background-color: #FF6B6B;
}

.flash-message.flash-warning {
  background-color: #f59e0b;
  color: #1B2845;
}

.flash-message.flash-info {
  background-color: #3b82f6;
}

.flash-close {
  background: none;
  border: none;
  color: inherit;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0 0.25rem;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.15s;
}

.flash-close:hover {
  opacity: 1;
}

.flash-hide {
  animation: flashSlideUp 0.3s ease-in forwards;
}

@keyframes flashSlideUp {
  to {
    transform: translateY(-100%);
    opacity: 0;
  }
}

/* -------------------------------------------------------
   2. NAV ACTIONS (cart icon, user dropdown)
   ------------------------------------------------------- */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.nav-action-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #1B2845;
  font-size: 1.25rem;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.nav-action-btn:hover,
.nav-action-btn:focus-visible {
  background-color: rgba(27, 40, 69, 0.08);
  color: #FFD60A;
}

.nav-action-btn:focus-visible {
  outline: 2px solid #FFD60A;
  outline-offset: 2px;
}

.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background-color: #FF6B6B;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(27, 40, 69, 0.14);
  border: 1px solid #eee;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  padding: 0.5rem 0;
}

.nav-dropdown.open .nav-dropdown-menu,
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.625rem 1.125rem;
  color: #1B2845;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background-color 0.15s, color 0.15s;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible {
  background-color: #fffbdc;
  color: #1B2845;
}

.dropdown-header {
  padding: 0.625rem 1.125rem;
  font-weight: 700;
  font-size: 0.85rem;
  color: #1B2845;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dropdown-divider {
  height: 1px;
  margin: 0.375rem 0;
  background-color: #eee;
}

/* -------------------------------------------------------
   3. PAGE HEADER (inner pages)
   ------------------------------------------------------- */
.page-header {
  background: linear-gradient(135deg, #1B2845 0%, #2a3d66 100%);
  padding: 3rem 1.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .page-header {
    padding: 4rem 2rem;
  }
}

.page-title {
  color: #fff;
  font-family: "Baloo 2", cursive;
  font-size: 1.75rem;
  margin: 0 0 0.5rem;
}

@media (min-width: 768px) {
  .page-title {
    font-size: 2.25rem;
  }
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: #FFD60A;
}

.breadcrumb .separator {
  color: rgba(255, 255, 255, 0.4);
  user-select: none;
}

.breadcrumb .current {
  color: #FFD60A;
  font-weight: 600;
}

/* -------------------------------------------------------
   4. AUTH FORMS (login, register)
   ------------------------------------------------------- */
.auth-section {
  display: flex;
  justify-content: center;
  padding: 3rem 1rem;
}

.auth-card {
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(27, 40, 69, 0.08);
  padding: 2rem;
}

.auth-card h1 {
  text-align: center;
  font-family: "Baloo 2", cursive;
  font-size: 1.5rem;
  color: #1B2845;
  margin: 0 0 0.25rem;
}

.auth-card .subtitle {
  text-align: center;
  color: #888;
  font-size: 0.9375rem;
  margin: 0 0 1.75rem;
}

/* Shared form elements */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.375rem;
  color: #1B2845;
  font-size: 0.9375rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  font-family: "DM Sans", sans-serif;
  color: #1B2845;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #FFD60A;
  box-shadow: 0 0 0 3px rgba(255, 214, 10, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #aaa;
}

.form-group .input-hint {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  color: #888;
}

.form-group .input-error {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  color: #FF6B6B;
}

.form-group input.is-invalid,
.form-group select.is-invalid,
.form-group textarea.is-invalid {
  border-color: #FF6B6B;
}

.form-group input.is-invalid:focus,
.form-group select.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

.form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #FFD60A;
  cursor: pointer;
  flex-shrink: 0;
}

.form-check label {
  font-size: 0.9rem;
  color: #555;
  cursor: pointer;
}

.form-check a {
  color: #1B2845;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-family: "DM Sans", sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.1s;
  line-height: 1.4;
}

.btn:focus-visible {
  outline: 2px solid #FFD60A;
  outline-offset: 2px;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background-color: #FFD60A;
  color: #1B2845;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: #e6c009;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid #FFD60A;
  color: #1B2845;
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background-color: #FFD60A;
  color: #1B2845;
}

.btn-danger {
  background-color: #FF6B6B;
  color: #fff;
}

.btn-danger:hover,
.btn-danger:focus-visible {
  background-color: #e55a5a;
}

.btn-teal {
  background-color: #2EC4B6;
  color: #fff;
}

.btn-teal:hover,
.btn-teal:focus-visible {
  background-color: #27b0a3;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.0625rem;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn:disabled,
.btn.disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

/* Auth extras */
.auth-link {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: #666;
}

.auth-link a {
  color: #1B2845;
  font-weight: 600;
  text-decoration: none;
}

.auth-link a:hover {
  text-decoration: underline;
}

.form-errors {
  background-color: #fff0f0;
  border: 1px solid #FF6B6B;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}

.form-errors .error-title {
  font-weight: 700;
  color: #FF6B6B;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.form-errors ul {
  margin: 0;
  padding: 0 0 0 1.25rem;
  list-style: disc;
}

.form-errors li {
  color: #c44;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.divider {
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
  gap: 1rem;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: #ddd;
}

.divider span {
  font-size: 0.8125rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* -------------------------------------------------------
   5. ACCOUNT PAGE
   ------------------------------------------------------- */
.account-section {
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.account-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .account-grid {
    grid-template-columns: 260px 1fr;
  }
}

.account-sidebar nav {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(27, 40, 69, 0.06);
  padding: 0.5rem 0;
}

.account-sidebar a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  color: #555;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: background-color 0.15s, color 0.15s;
  border-left: 3px solid transparent;
}

.account-sidebar a:hover {
  background-color: #fffbdc;
  color: #1B2845;
}

.account-sidebar a.active {
  background-color: #fffbdc;
  color: #1B2845;
  font-weight: 700;
  border-left-color: #FFD60A;
}

.account-content {
  min-width: 0;
}

.account-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(27, 40, 69, 0.06);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.account-card h2 {
  font-family: "Baloo 2", cursive;
  font-size: 1.25rem;
  color: #1B2845;
  margin: 0 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #f5f5f5;
}

.account-info-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.account-info-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f5f5f5;
  font-size: 0.9375rem;
}

.account-info-list li:last-child {
  border-bottom: none;
}

.account-info-list .label {
  color: #888;
  font-weight: 500;
}

.account-info-list .value {
  color: #1B2845;
  font-weight: 600;
}

/* Orders */
.order-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(27, 40, 69, 0.06);
  padding: 1.25rem;
  margin-bottom: 1rem;
  border-left: 4px solid #FFD60A;
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.order-card-header h3 {
  font-size: 1rem;
  margin: 0;
  color: #1B2845;
}

.order-card-body {
  font-size: 0.875rem;
  color: #666;
}

.order-status {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.order-status--pending {
  background-color: #fef9c3;
  color: #a16207;
}

.order-status--processing {
  background-color: #dbeafe;
  color: #1d4ed8;
}

.order-status--shipped {
  background-color: #ede9fe;
  color: #7c3aed;
}

.order-status--delivered {
  background-color: #dcfce7;
  color: #16a34a;
}

.order-status--cancelled {
  background-color: #ffe4e6;
  color: #dc2626;
}

/* -------------------------------------------------------
   6. SHOP PAGE
   ------------------------------------------------------- */
.shop-section {
  padding: 2rem 1rem;
  max-width: 1400px;
  margin: 0 auto;
}

.shop-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .shop-layout {
    grid-template-columns: 260px 1fr;
  }
}

.shop-filters {
  display: none;
}

@media (min-width: 1024px) {
  .shop-filters {
    display: block;
    position: sticky;
    top: 1rem;
    align-self: start;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(27, 40, 69, 0.06);
    padding: 1.25rem;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
  }
}

.shop-filters.mobile-open {
  display: block;
}

.filter-group {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #f0f0f0;
}

.filter-group:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.filter-group h4 {
  font-family: "Baloo 2", cursive;
  font-size: 1rem;
  color: #1B2845;
  margin: 0 0 0.75rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-group h4::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid #1B2845;
  border-bottom: 2px solid #1B2845;
  transform: rotate(-135deg);
  transition: transform 0.2s;
}

.filter-group.collapsed h4::after {
  transform: rotate(45deg);
}

.filter-group.collapsed .filter-options {
  display: none;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-options label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #555;
  cursor: pointer;
  transition: color 0.15s;
}

.filter-options label:hover {
  color: #1B2845;
}

.filter-options input[type="checkbox"],
.filter-options input[type="radio"] {
  accent-color: #FFD60A;
  width: 16px;
  height: 16px;
}

.filter-options .price-range {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-options .price-range input {
  width: 80px;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.875rem;
  text-align: center;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.product-card {
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(27, 40, 69, 0.06);
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: 0 8px 30px rgba(27, 40, 69, 0.12);
  transform: translateY(-2px);
}

.product-card .product-image {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: #f8f8f8;
}

.product-card .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-card .product-info {
  padding: 1rem 1.125rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card .product-name {
  font-family: "Baloo 2", cursive;
  font-size: 1rem;
  color: #1B2845;
  margin: 0 0 0.375rem;
  line-height: 1.3;
}

.product-card .product-category {
  font-size: 0.8125rem;
  color: #888;
  margin-bottom: 0.5rem;
}

.product-card .product-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.product-card .price-current {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1B2845;
}

.product-card .price-compare {
  font-size: 0.875rem;
  color: #aaa;
  text-decoration: line-through;
}

.product-card .add-to-cart {
  margin-top: auto;
  width: 100%;
  padding: 0.625rem;
  background-color: #FFD60A;
  color: #1B2845;
  border: none;
  border-radius: 8px;
  font-family: "DM Sans", sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

.product-card .add-to-cart:hover {
  background-color: #e6c009;
}

.product-card .add-to-cart:active {
  transform: scale(0.97);
}

.product-card .add-to-cart:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.product-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.625rem;
  border-radius: 6px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  z-index: 2;
}

.product-badge--sale {
  background-color: #FF6B6B;
  color: #fff;
}

.product-badge--new {
  background-color: #2EC4B6;
  color: #fff;
}

.product-badge--featured {
  background-color: #FFD60A;
  color: #1B2845;
}

/* -------------------------------------------------------
   7. PRODUCT DETAIL PAGE
   ------------------------------------------------------- */
.product-detail {
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .product-detail-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

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

.product-main-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background-color: #f8f8f8;
}

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

.product-thumbnails {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.product-thumbnails img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s, opacity 0.2s;
  flex-shrink: 0;
  opacity: 0.7;
}

.product-thumbnails img:hover,
.product-thumbnails img.active {
  border-color: #FFD60A;
  opacity: 1;
}

/* Info column */
.product-info-detail {
  display: flex;
  flex-direction: column;
}

.product-info-detail h1 {
  font-family: "Baloo 2", cursive;
  font-size: 1.75rem;
  color: #1B2845;
  margin: 0 0 0.5rem;
}

@media (min-width: 768px) {
  .product-info-detail h1 {
    font-size: 2rem;
  }
}

.product-info-detail .price-block {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.product-info-detail .price-current {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1B2845;
}

.product-info-detail .price-compare {
  font-size: 1.125rem;
  color: #aaa;
  text-decoration: line-through;
}

.product-info-detail .product-description {
  font-size: 0.9375rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.product-info-detail .product-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: #666;
}

.product-info-detail .product-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Quantity selector */
.quantity-selector {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.quantity-selector button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #f8f8f8;
  border: none;
  font-size: 1.125rem;
  color: #1B2845;
  cursor: pointer;
  transition: background-color 0.15s;
}

.quantity-selector button:hover {
  background-color: #eee;
}

.quantity-selector input {
  width: 48px;
  height: 40px;
  text-align: center;
  border: none;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  font-size: 1rem;
  font-weight: 600;
  color: #1B2845;
  font-family: "DM Sans", sans-serif;
  -moz-appearance: textfield;
}

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

/* Product tabs */
.product-tabs {
  margin-top: 2.5rem;
}

.product-tabs .tab-nav {
  display: flex;
  border-bottom: 2px solid #f0f0f0;
  gap: 0;
  overflow-x: auto;
}

.product-tabs .tab-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  background: transparent;
  font-family: "DM Sans", sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #888;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}

.product-tabs .tab-btn:hover {
  color: #1B2845;
}

.product-tabs .tab-btn.active {
  color: #1B2845;
  border-bottom-color: #FFD60A;
}

.product-tabs .tab-panel {
  display: none;
  padding: 1.5rem 0;
  font-size: 0.9375rem;
  color: #555;
  line-height: 1.7;
}

.product-tabs .tab-panel.active {
  display: block;
}

/* -------------------------------------------------------
   8. CART PAGE
   ------------------------------------------------------- */
.cart-section {
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .cart-layout {
    grid-template-columns: 1fr 340px;
  }
}

.cart-table {
  width: 100%;
}

.cart-header {
  display: none;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #f0f0f0;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (min-width: 768px) {
  .cart-header {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1fr auto;
    gap: 1rem;
    align-items: center;
  }
}

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem 0;
  border-bottom: 1px solid #f0f0f0;
}

@media (min-width: 768px) {
  .cart-item {
    grid-template-columns: 3fr 1fr 1fr 1fr auto;
  }
}

.cart-item-image {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #f8f8f8;
  grid-row: 1 / 3;
}

@media (min-width: 768px) {
  .cart-item-image {
    grid-row: auto;
  }
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cart-item-name {
  font-weight: 600;
  color: #1B2845;
  font-size: 0.9375rem;
}

.cart-item-variant {
  font-size: 0.8125rem;
  color: #888;
}

.cart-item-price {
  font-weight: 600;
  color: #1B2845;
  font-size: 0.9375rem;
}

.cart-item-subtotal {
  font-weight: 700;
  color: #1B2845;
  font-size: 1rem;
}

.cart-item-remove {
  background: none;
  border: none;
  color: #ccc;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.2s;
  line-height: 1;
}

.cart-item-remove:hover {
  color: #FF6B6B;
}

/* Cart summary sidebar */
.cart-summary {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(27, 40, 69, 0.06);
  padding: 1.5rem;
  position: sticky;
  top: 1rem;
  align-self: start;
}

.cart-summary h3 {
  font-family: "Baloo 2", cursive;
  font-size: 1.125rem;
  color: #1B2845;
  margin: 0 0 1rem;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  color: #555;
}

.cart-summary-row.total {
  padding-top: 0.75rem;
  margin-top: 0.5rem;
  border-top: 2px solid #f0f0f0;
  font-size: 1.125rem;
  font-weight: 700;
  color: #1B2845;
}

.cart-summary .btn {
  margin-top: 1rem;
}

.cart-summary .secure-checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: #aaa;
}

/* Empty cart */
.empty-cart {
  text-align: center;
  padding: 4rem 1rem;
}

.empty-cart .empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.4;
}

.empty-cart h2 {
  font-family: "Baloo 2", cursive;
  font-size: 1.5rem;
  color: #1B2845;
  margin: 0 0 0.5rem;
}

.empty-cart p {
  color: #888;
  margin: 0 0 1.5rem;
}

/* -------------------------------------------------------
   9. CHECKOUT
   ------------------------------------------------------- */
.checkout-section {
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .checkout-grid {
    grid-template-columns: 1fr 380px;
  }
}

.checkout-form h2 {
  font-family: "Baloo 2", cursive;
  font-size: 1.25rem;
  color: #1B2845;
  margin: 0 0 1rem;
}

.checkout-form section {
  margin-bottom: 2rem;
}

.checkout-form .form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 480px) {
  .checkout-form .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.checkout-summary {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(27, 40, 69, 0.06);
  padding: 1.5rem;
  position: sticky;
  top: 1rem;
  align-self: start;
}

.checkout-summary h3 {
  font-family: "Baloo 2", cursive;
  font-size: 1.125rem;
  color: #1B2845;
  margin: 0 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #f0f0f0;
}

.checkout-summary .summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  color: #555;
}

.checkout-summary .summary-item-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checkout-summary .summary-item-qty {
  color: #aaa;
  font-size: 0.75rem;
}

.checkout-summary .summary-totals {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 2px solid #f0f0f0;
}

.checkout-summary .summary-total-row {
  display: flex;
  justify-content: space-between;
  padding: 0.375rem 0;
  font-size: 0.9375rem;
}

.checkout-summary .summary-total-row.grand-total {
  font-weight: 700;
  font-size: 1.125rem;
  color: #1B2845;
  padding-top: 0.75rem;
  margin-top: 0.5rem;
  border-top: 2px solid #f0f0f0;
}

/* Payment methods */
.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.payment-method {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border: 2px solid #eee;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}

.payment-method:hover {
  border-color: #ddd;
  background-color: #fafafa;
}

.payment-method.selected {
  border-color: #FFD60A;
  background-color: #fffbdc;
}

.payment-method input[type="radio"] {
  accent-color: #FFD60A;
  width: 18px;
  height: 18px;
}

.payment-method .method-label {
  flex: 1;
}

.payment-method .method-name {
  font-weight: 600;
  color: #1B2845;
  font-size: 0.9375rem;
}

.payment-method .method-desc {
  font-size: 0.8125rem;
  color: #888;
  margin-top: 0.125rem;
}

/* -------------------------------------------------------
   10. ORDER CONFIRMATION
   ------------------------------------------------------- */
.order-confirmation {
  display: flex;
  justify-content: center;
  padding: 3rem 1rem;
}

.order-confirmation-card {
  text-align: center;
  max-width: 560px;
  width: 100%;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(27, 40, 69, 0.08);
  padding: 2.5rem 2rem;
}

.order-confirmation-card .success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: #dcfce7;
  color: #16a34a;
  font-size: 2rem;
  margin: 0 auto 1.5rem;
}

.order-confirmation-card h1 {
  font-family: "Baloo 2", cursive;
  font-size: 1.5rem;
  color: #1B2845;
  margin: 0 0 0.5rem;
}

.order-confirmation-card .order-number {
  display: inline-block;
  padding: 0.375rem 1rem;
  background-color: #f5f5f5;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9375rem;
  color: #1B2845;
  margin-bottom: 1rem;
}

.order-confirmation-card .order-details {
  text-align: left;
  margin: 1.5rem 0;
  padding: 1rem 0;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}

.order-confirmation-card .order-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.9375rem;
}

.order-confirmation-card .order-detail-row .label {
  color: #888;
}

.order-confirmation-card .order-detail-row .value {
  font-weight: 600;
  color: #1B2845;
}

.order-confirmation-card p {
  color: #666;
  font-size: 0.9375rem;
  margin: 0 0 1.5rem;
}

.order-confirmation-card .btn {
  margin-top: 0.5rem;
}

/* -------------------------------------------------------
   11. CHECKOUT ENHANCEMENTS
   ------------------------------------------------------- */
.checkout-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(27, 40, 69, 0.06);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.checkout-card-title {
  font-family: "Baloo 2", cursive;
  font-size: 1.125rem;
  color: #1B2845;
  margin: 0 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #f5f5f5;
}

.checkout-card-title svg {
  flex-shrink: 0;
}

.required {
  color: #FF6B6B;
  font-size: 0.8rem;
}

.optional {
  color: #aaa;
  font-size: 0.8rem;
  font-weight: 400;
}

/* Field validation */
.form-group input.is-invalid,
.form-group textarea.is-invalid {
  border-color: #FF6B6B;
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.field-error {
  color: #e74c3c;
  font-size: 0.85rem;
  margin-top: 4px;
}

/* Place order button loading state */
#placeOrderBtn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-loading {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* -------------------------------------------------------
   12. ORDER CONFIRMATION PAGE
   ------------------------------------------------------- */
.confirmation-header {
  text-align: center;
  margin-bottom: 2rem;
}

.confirmation-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: #dcfce7;
  margin: 0 auto 1.5rem;
}

.confirmation-title {
  font-family: "Baloo 2", cursive;
  font-size: 1.75rem;
  color: #1B2845;
  margin: 0 0 0.5rem;
}

.confirmation-subtitle {
  color: #666;
  font-size: 1rem;
  margin: 0;
}

.confirmation-order-number {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 1.25rem;
  background: #f9fafb;
  border-radius: 10px;
  margin-bottom: 1.5rem;
}

.confirmation-order-number .label {
  font-size: 0.85rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.confirmation-order-number .value {
  font-family: "Baloo 2", cursive;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1B2845;
}

/* WhatsApp notice */
.confirmation-whatsapp-notice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  text-align: center;
}

.confirmation-whatsapp-notice p {
  color: #374151;
  font-size: 0.9375rem;
  margin: 0;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #25D366;
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-whatsapp:hover {
  background-color: #1da851;
  color: #fff;
}

/* Confirmation details grid */
.confirmation-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 600px) {
  .confirmation-details {
    grid-template-columns: 1fr 1fr;
  }
}

.confirmation-detail-card {
  background: #f9fafb;
  border-radius: 10px;
  padding: 1.25rem;
}

.confirmation-detail-card h3 {
  font-family: "Baloo 2", cursive;
  font-size: 1rem;
  color: #1B2845;
  margin: 0 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.confirmation-detail-card .detail-content p {
  margin: 0 0 0.25rem;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
}

.detail-content .detail-name {
  font-weight: 600;
  color: #1B2845;
}

.status-badge {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-pending {
  background: #fef3c7;
  color: #92400e;
}

.status-paid {
  background: #dcfce7;
  color: #166534;
}

.status-failed {
  background: #fee2e2;
  color: #991b1b;
}

.status-refunded {
  background: #e0e7ff;
  color: #3730a3;
}

/* Confirmation items */
.confirmation-items {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(27, 40, 69, 0.06);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.confirmation-items h3 {
  font-family: "Baloo 2", cursive;
  font-size: 1.125rem;
  color: #1B2845;
  margin: 0 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #f5f5f5;
}

.confirmation-items-list {
  margin-bottom: 1rem;
}

.confirmation-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f5f5f5;
}

.confirmation-item:last-child {
  border-bottom: none;
}

.confirmation-item-image {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f5f5f5;
}

.confirmation-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.confirmation-item-name {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  color: #1B2845;
  margin-bottom: 0.125rem;
}

.confirmation-item-qty {
  display: block;
  font-size: 0.8125rem;
  color: #888;
}

.confirmation-item-total {
  font-weight: 700;
  color: #1B2845;
  font-size: 0.9375rem;
  white-space: nowrap;
}

/* Confirmation totals */
.confirmation-totals {
  padding-top: 0.75rem;
  border-top: 2px solid #f0f0f0;
}

.confirmation-total-row {
  display: flex;
  justify-content: space-between;
  padding: 0.375rem 0;
  font-size: 0.9375rem;
  color: #555;
}

.confirmation-grand-total {
  font-weight: 700;
  font-size: 1.125rem;
  color: #1B2845;
  padding-top: 0.75rem;
  margin-top: 0.5rem;
  border-top: 2px solid #f0f0f0;
}

/* Confirmation actions */
.confirmation-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

/* Confirmation note */
.confirmation-note {
  text-align: center;
  padding: 1rem;
  background: #f9fafb;
  border-radius: 8px;
}

.confirmation-note p {
  font-size: 0.875rem;
  color: #888;
  margin: 0 0 0.5rem;
}

.confirmation-note p:last-child {
  margin: 0;
}

.confirmation-note a {
  color: #FF6B6B;
  text-decoration: none;
}

.confirmation-note a:hover {
  text-decoration: underline;
}

.text-green {
  color: #16a34a;
  font-weight: 600;
}

/* -------------------------------------------------------
   UTILITY CLASSES
   ------------------------------------------------------- */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-muted  { color: #888; }
.text-navy   { color: #1B2845; }
.text-red    { color: #FF6B6B; }
.text-teal   { color: #2EC4B6; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* -------------------------------------------------------
   RESPONSIVE — additional adjustments
   ------------------------------------------------------- */
@media (max-width: 767px) {
  .page-header {
    padding: 2rem 1rem;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .auth-card {
    padding: 1.5rem;
    box-shadow: none;
    border-radius: 0;
  }

  .auth-section {
    padding: 0;
  }

  .account-section {
    padding: 1.5rem 0.75rem;
  }

  .shop-section {
    padding: 1.5rem 0.75rem;
  }

  .product-detail {
    padding: 1.5rem 0.75rem;
  }

  .cart-section {
    padding: 1.5rem 0.75rem;
  }

  .checkout-section {
    padding: 1.5rem 0.75rem;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
  }

  .product-card .product-info {
    padding: 0.75rem;
  }

  .product-card .product-name {
    font-size: 0.875rem;
  }

  .product-card .price-current {
    font-size: 1rem;
  }

  .order-confirmation-card {
    padding: 1.5rem 1rem;
    box-shadow: none;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }

  .shop-layout {
    grid-template-columns: 220px 1fr;
  }

  .shop-filters {
    display: block;
    position: sticky;
    top: 1rem;
    align-self: start;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(27, 40, 69, 0.06);
    padding: 1rem;
  }
}

/* -------------------------------------------------------
   PRINT STYLES
   ------------------------------------------------------- */
@media print {
  .nav-actions,
  .flash-message,
  .add-to-cart,
  .btn,
  .cart-item-remove {
    display: none !important;
  }

  .product-card {
    box-shadow: none;
    border: 1px solid #ddd;
  }

  .order-card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}
