/*
 * FlexFly Claymorphism Design System
 * Based on Stitch-generated design
 * Soft, clay-like UI with multi-layered shadows, rounded corners, and depth
 */

/* ======================================================
   CSS RESET & BASE
   ====================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f4f4f4;
  color: #333333;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
ul, ol { list-style: none; }

/* ======================================================
   CSS VARIABLES
   ====================================================== */
:root {
  --flexfly-bg: #f4f4f4;
  --flexfly-primary: #0077ff;
  --flexfly-primary-dark: #005fcc;
  --flexfly-text: #333333;
  --flexfly-text-light: #64748b;
  --flexfly-text-muted: #94a3b8;
  --status-pending: #ffc107;
  --status-processing: #17a2b8;
  --status-shipped: #6f42c1;
  --status-delivered: #28a745;
  --status-cancelled: #dc3545;
  --white: #ffffff;
  --shadow-light: #ffffff;
  --shadow-dark: #bebebe;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

/* ======================================================
   CLAY CARD
   ====================================================== */
.clay-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow:
    12px 12px 24px var(--shadow-dark),
    -12px -12px 24px var(--shadow-light),
    inset 4px 4px 8px rgba(255, 255, 255, 0.8),
    inset -4px -4px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.clay-card:hover {
  transform: translateY(-4px);
  box-shadow:
    14px 14px 28px var(--shadow-dark),
    -14px -14px 28px var(--shadow-light),
    inset 4px 4px 8px rgba(255, 255, 255, 0.8),
    inset -4px -4px 8px rgba(0, 0, 0, 0.05);
}

.clay-card-flat {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow:
    8px 8px 16px var(--shadow-dark),
    -8px -8px 16px var(--shadow-light);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ======================================================
   CLAY BUTTONS
   ====================================================== */
.clay-button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--flexfly-primary);
  border-radius: var(--radius-md);
  box-shadow:
    8px 8px 16px rgba(0, 119, 255, 0.3),
    -4px -4px 12px rgba(255, 255, 255, 0.1),
    inset 4px 4px 8px rgba(255, 255, 255, 0.3),
    inset -4px -4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
  color: white;
  font-weight: 600;
  border: none;
  padding: 12px 24px;
  font-size: 0.95rem;
}

.clay-button-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    10px 10px 20px rgba(0, 119, 255, 0.4),
    -4px -4px 12px rgba(255, 255, 255, 0.1);
}

.clay-button-primary:active {
  transform: translateY(0);
  box-shadow:
    inset 4px 4px 8px rgba(0, 0, 0, 0.3),
    inset -4px -4px 8px rgba(255, 255, 255, 0.2);
}

.clay-button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow:
    8px 8px 16px var(--shadow-dark),
    -8px -8px 16px var(--shadow-light),
    inset 4px 4px 8px rgba(255, 255, 255, 0.8);
  color: #334155;
  font-weight: 600;
  border: none;
  padding: 12px 24px;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.clay-button-secondary:hover {
  transform: translateY(-2px);
  background: #f8fafc;
}

.clay-button-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--status-cancelled);
  border-radius: var(--radius-md);
  box-shadow:
    8px 8px 16px rgba(220, 53, 69, 0.3),
    -4px -4px 12px rgba(255, 255, 255, 0.1),
    inset 4px 4px 8px rgba(255, 255, 255, 0.3),
    inset -4px -4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
  color: white;
  font-weight: 600;
  border: none;
  padding: 12px 24px;
  font-size: 0.95rem;
}

.clay-button-danger:hover {
  transform: translateY(-2px);
}

/* ======================================================
   CLAY BADGE
   ====================================================== */
.clay-badge {
  border-radius: var(--radius-sm);
  box-shadow:
    inset 2px 2px 4px rgba(255, 255, 255, 0.4),
    inset -2px -2px 4px rgba(0, 0, 0, 0.1);
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  letter-spacing: 0.5px;
}

.clay-badge-pending { background: rgba(255, 193, 7, 0.12); color: #b8860b; border: 1px solid rgba(255, 193, 7, 0.25); }
.clay-badge-processing { background: rgba(23, 162, 184, 0.12); color: var(--status-processing); border: 1px solid rgba(23, 162, 184, 0.25); }
.clay-badge-shipped { background: rgba(111, 66, 193, 0.12); color: var(--status-shipped); border: 1px solid rgba(111, 66, 193, 0.25); }
.clay-badge-delivered { background: rgba(40, 167, 69, 0.12); color: var(--status-delivered); border: 1px solid rgba(40, 167, 69, 0.25); }
.clay-badge-cancelled { background: rgba(220, 53, 69, 0.12); color: var(--status-cancelled); border: 1px solid rgba(220, 53, 69, 0.25); }
.clay-badge-new { background: rgba(255, 255, 255, 0.8); color: var(--flexfly-primary); backdrop-filter: blur(8px); }

/* ======================================================
   CLAY INPUT
   ====================================================== */
.clay-input {
  background: var(--flexfly-bg);
  border-radius: var(--radius-sm);
  border: none;
  box-shadow:
    inset 6px 6px 12px #dbdbdb,
    inset -6px -6px 12px var(--white);
  padding: 14px 18px;
  outline: none;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  color: var(--flexfly-text);
  width: 100%;
  transition: box-shadow 0.2s ease;
}

.clay-input:focus {
  box-shadow:
    inset 6px 6px 12px #d0d0d0,
    inset -6px -6px 12px var(--white),
    0 0 0 3px rgba(0, 119, 255, 0.15);
}

.clay-input::placeholder {
  color: var(--flexfly-text-muted);
}

.clay-select {
  background: var(--flexfly-bg);
  border-radius: var(--radius-sm);
  border: none;
  box-shadow:
    inset 6px 6px 12px #dbdbdb,
    inset -6px -6px 12px var(--white);
  padding: 14px 18px;
  outline: none;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  color: var(--flexfly-text);
  width: 100%;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}

textarea.clay-input {
  resize: vertical;
  min-height: 100px;
}

/* ======================================================
   FONTS
   ====================================================== */
@font-face {
  font-family: 'Conthrax';
  src: url('../assets/fonts/Conthrax-SemiBold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
}

/* ======================================================
   CLAY NAVIGATION
   ====================================================== */
.clay-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 244, 244, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.05),
    inset 0 2px 4px var(--white);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0 16px;
  margin-top: 8px;
}

.clay-nav .nav-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  z-index: 10;
}

.clay-nav .nav-logo-icon {
  width: 40px;
  height: 40px;
  background: var(--flexfly-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
}

.clay-nav .nav-brand {
  font-family: 'Conthrax', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: #1e293b;
  margin-top: 4px;
}

.clay-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-weight: 500;
  color: var(--flexfly-text-light);
  margin-left: 28px;
}

.clay-nav .nav-links a:hover {
  color: var(--flexfly-primary);
  transition: color 0.2s;
}

.clay-nav .nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

/* ======================================================
   CLAY ICON BUTTON
   ====================================================== */
.clay-icon-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow:
    4px 4px 8px #d1d1d1,
    -4px -4px 8px var(--white),
    inset 2px 2px 4px rgba(255, 255, 255, 0.8);
  color: var(--flexfly-primary);
  border: none;
  font-size: 1rem;
  transition: all 0.15s ease;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

.clay-icon-btn:active {
  transform: scale(0.95);
  box-shadow:
    inset 4px 4px 8px #d1d1d1,
    inset -4px -4px 8px var(--white);
}

/* ======================================================
   CLAY GRADIENT SIDEBAR (Admin)
   ====================================================== */
.clay-gradient-sidebar {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow:
    8px 0 20px rgba(118, 75, 162, 0.2),
    inset 4px 4px 10px rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  color: white;
}

.clay-gradient-sidebar a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  color: white;
  opacity: 0.7;
  transition: all 0.2s;
  font-weight: 500;
}

.clay-gradient-sidebar a:hover,
.clay-gradient-sidebar a.active {
  opacity: 1;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
}

/* ======================================================
   ANIMATIONS
   ====================================================== */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(100%); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-float { animation: float 4s ease-in-out infinite; }
.animate-fade-in { animation: fadeInUp 0.6s ease forwards; }

/* Scroll reveals — hidden until animations.js adds .visible */
.fade-up,
.slide-left,
.slide-right {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.fade-up { transform: translateY(32px); }
.slide-left { transform: translateX(-48px); }
.slide-right { transform: translateX(48px); }
.fade-up.visible,
.slide-left.visible,
.slide-right.visible {
  opacity: 1;
  transform: none;
}

/* No-JS / crawler fallback: never leave content invisible */
@media (scripting: none) {
  .fade-up, .slide-left, .slide-right { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .fade-up, .slide-left, .slide-right { opacity: 1; transform: none; transition: none; }
  .animate-float { animation: none; }
}

/* 3D pointer tilt (transform driven from animations.js) */
.tilt-3d {
  transform-style: preserve-3d;
  transition: transform 0.25s ease, box-shadow 0.3s ease;
}
.tilt-3d:hover { transition: transform 0.08s linear, box-shadow 0.3s ease; }

/* ======================================================
   LAYOUT UTILITIES
   ====================================================== */
.page-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 16px;
}

.section-header {
  margin-bottom: 32px;
}

.section-header h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #1e293b;
}

.section-header p {
  color: var(--flexfly-text-light);
  margin-top: 4px;
}

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

@media (max-width: 1024px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Flex helpers */
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-gap-sm { gap: 8px; }
.flex-gap-md { gap: 16px; }
.flex-gap-lg { gap: 24px; }

/* ======================================================
   PRODUCT CARD (Shop/Search)
   ====================================================== */
.product-card {
  padding: 24px;
}

.product-card .product-image {
  aspect-ratio: 1;
  background: #f1f5f9;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  margin-bottom: 16px;
}

.product-card .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-card .product-info h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
}

.product-card .product-info p {
  font-size: 0.875rem;
  color: var(--flexfly-text-light);
  margin-bottom: 16px;
}

.product-card .product-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-card .price-current {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--flexfly-primary);
}

.product-card .price-original {
  font-size: 0.875rem;
  color: var(--flexfly-text-muted);
  text-decoration: line-through;
}

/* ======================================================
   CART ITEM ROW
   ====================================================== */
.cart-item-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px;
  flex-wrap: wrap;
}

.cart-item-row .cart-item-image {
  width: 96px;
  height: 96px;
  background: #f1f5f9;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}

.cart-item-row .cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-row .cart-item-details {
  flex: 1;
}

.cart-item-row .cart-item-details h4 {
  font-weight: 700;
  font-size: 1.1rem;
  color: #1e293b;
}

.cart-item-row .cart-item-details p {
  font-size: 0.875rem;
  color: var(--flexfly-text-light);
}

.cart-item-row .cart-item-qty {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cart-item-row .cart-item-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--flexfly-primary);
  min-width: 100px;
  text-align: right;
}

/* ======================================================
   ORDER CARD
   ====================================================== */
.order-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  flex-wrap: wrap;
  transition: transform 0.3s ease;
}

.order-card:hover {
  transform: translateX(4px) translateY(-2px);
}

.order-card .order-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.order-card .order-icon.pending { background: rgba(255, 193, 7, 0.1); color: var(--status-pending); }
.order-card .order-icon.processing { background: rgba(23, 162, 184, 0.1); color: var(--status-processing); }
.order-card .order-icon.shipped { background: rgba(111, 66, 193, 0.1); color: var(--status-shipped); }
.order-card .order-icon.delivered { background: rgba(40, 167, 69, 0.1); color: var(--status-delivered); }
.order-card .order-icon.cancelled { background: rgba(220, 53, 69, 0.1); color: var(--status-cancelled); }

.order-card .order-details {
  flex: 1;
}

.order-card .order-id {
  font-size: 0.7rem;
  color: var(--flexfly-text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.order-card .order-product {
  font-weight: 700;
  color: #1e293b;
  font-size: 1.05rem;
}

.order-card .order-date {
  font-size: 0.85rem;
  color: var(--flexfly-text-light);
}

.order-card .order-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.order-card .order-total {
  font-weight: 700;
  color: #1e293b;
}

/* ======================================================
   SUMMARY CARD (Cart/Checkout)
   ====================================================== */
.summary-card {
  padding: 32px;
}

.summary-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 24px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  color: var(--flexfly-text-light);
}

.summary-row span:last-child {
  font-weight: 600;
  color: #1e293b;
}

.summary-row.discount span:last-child {
  color: var(--status-delivered);
}

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  margin-top: 16px;
  border-top: 2px solid #f1f5f9;
}

.summary-total .total-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
}

.summary-total .total-price {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--flexfly-primary);
}

/* ======================================================
   ADMIN STAT CARD
   ====================================================== */
.stat-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.6);
}

.stat-card .stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.stat-card .stat-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--flexfly-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-card .stat-value {
  font-size: 1.875rem;
  font-weight: 800;
  color: #1e293b;
}

.stat-card .stat-change {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--status-delivered);
}

/* ======================================================
   CLAY FOOTER
   ====================================================== */
.clay-footer {
  margin: 64px 16px 32px;
  padding: 48px;
}

.clay-footer h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 16px;
}

.clay-footer h5 {
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 24px;
}

.clay-footer .footer-desc {
  color: var(--flexfly-text-light);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.clay-footer .footer-links li {
  margin-bottom: 12px;
}

.clay-footer .footer-links a {
  color: var(--flexfly-text-light);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.clay-footer .footer-links a:hover {
  color: var(--flexfly-primary);
}

.clay-footer .footer-bottom {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.7rem;
  color: var(--flexfly-text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 500;
}

.clay-footer .payment-icons {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 1.5rem;
  color: var(--flexfly-text-muted);
}

/* ======================================================
   MOBILE SIDEBAR OVERLAY
   ====================================================== */
.mobile-sidebar {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  z-index: 100;
  padding: 32px 24px;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.mobile-sidebar.show {
  right: 0;
}

.mobile-sidebar a {
  display: block;
  padding: 14px 0;
  font-weight: 500;
  color: var(--flexfly-text-light);
  border-bottom: 1px solid #f1f5f9;
  transition: color 0.2s;
}

.mobile-sidebar a:hover {
  color: var(--flexfly-primary);
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  z-index: 99;
  display: none;
}

.sidebar-overlay.show {
  display: block;
}

/* ======================================================
   FORM LAYOUT
   ====================================================== */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: #475569;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ======================================================
   TABLE (Admin)
   ====================================================== */
.clay-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.clay-table thead th {
  background: #f8fafc;
  padding: 14px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--flexfly-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: left;
  border-bottom: 2px solid #f1f5f9;
}

.clay-table tbody td {
  padding: 14px 16px;
  font-size: 0.9rem;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
}

.clay-table tbody tr:hover {
  background: #f8fafc;
}

/* ======================================================
   TOAST NOTIFICATION
   ====================================================== */
.clay-toast {
  position: fixed;
  top: 100px;
  right: 24px;
  z-index: 200;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow:
    12px 12px 24px var(--shadow-dark),
    -12px -12px 24px var(--shadow-light);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.clay-toast.show {
  transform: translateX(0);
}

.clay-toast.success { border-left: 4px solid var(--status-delivered); }
.clay-toast.error { border-left: 4px solid var(--status-cancelled); }
.clay-toast.info { border-left: 4px solid var(--flexfly-primary); }

/* ======================================================
   MODAL / OVERLAY
   ====================================================== */
.clay-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  z-index: 150;
  display: none;
  align-items: center;
  justify-content: center;
}

.clay-modal-overlay.show {
  display: flex;
}

.clay-modal {
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 32px;
  animation: fadeInUp 0.35s ease;
}

/* ======================================================
   RESPONSIVE NAV
   ====================================================== */
@media (max-width: 768px) {
  .clay-nav .nav-links { display: none; }
  .clay-nav { margin: 0 8px; margin-top: 4px; padding: 12px 16px; }
  .page-container { padding: 16px 12px; }
  .clay-footer { margin: 32px 8px 16px; padding: 24px; }
  .clay-footer .footer-grid { grid-template-columns: 1fr !important; }
  .clay-modal { width: 95%; padding: 20px; }
}

/* ======================================================
   HERO SECTION
   ====================================================== */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  min-height: 60vh;
  padding: 48px 0;
}

.hero-section h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.1;
}

.hero-section h1 span {
  color: var(--flexfly-primary);
}

.hero-section .hero-desc {
  font-size: 1.1rem;
  color: var(--flexfly-text-light);
  line-height: 1.7;
  max-width: 500px;
  margin-top: 16px;
}

.hero-section .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-visual .hero-image-card {
  width: 320px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: #f8fafc;
}

.hero-visual .hero-accent {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual .hero-accent-1 {
  width: 80px;
  height: 80px;
  top: -16px;
  right: -16px;
  font-size: 1.8rem;
  color: var(--flexfly-primary);
}

.hero-visual .hero-accent-2 {
  width: 100px;
  height: 100px;
  bottom: -24px;
  left: -24px;
  font-size: 2.2rem;
  color: var(--status-delivered);
}

@media (max-width: 1024px) {
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
    min-height: auto;
    padding: 24px 0;
  }
  .hero-section h1 { font-size: 2.5rem; }
  .hero-section .hero-desc { max-width: none; }
  .hero-section .hero-actions { justify-content: center; }
  .hero-visual .hero-image-card { width: 260px; height: 260px; margin: 0 auto; }
}

/* ======================================================
   CART ICON BADGE
   ====================================================== */
.cart-badge-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--status-cancelled);
  color: white;
  font-size: 10px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 700;
  border: 2px solid white;
}

/* ======================================================
   LOADING SPINNER
   ====================================================== */
.clay-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e2e8f0;
  border-top-color: var(--flexfly-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ======================================================
   EMPTY STATE
   ====================================================== */
.empty-state {
  text-align: center;
  padding: 64px 20px;
}

.empty-state i {
  font-size: 4rem;
  color: var(--flexfly-primary);
  opacity: 0.4;
  margin-bottom: 20px;
}

.empty-state h3 {
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--flexfly-text-light);
  margin-bottom: 24px;
}

/* Phase 7 hover states for account menu items */
.dropdown-account-link:hover { background: #f1f5f9 !important; }
.dropdown-logout-link:hover { background: #fef2f2 !important; }
