* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #2563eb;     /* Main blue */
  --accent: #3b82f6;      /* Lighter bright blue */
  --light-blue: #dbeafe;  /* Soft background blue */
  --dark: #1e3a8a;
  --light: #f8fafc;
}

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--light);
  color: var(--dark);
  line-height: 1.6;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--primary);
}

.logo-img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-text {
  font-family: 'Fredoka', 'Segoe UI', system-ui, sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 55%, #60a5fa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: filter 0.2s ease;
}

.logo-link:hover .brand-text {
  filter: brightness(1.15);
}

nav {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header {
  background: linear-gradient(to right, #ffffff, #f0f7ff, #ffffff);
  box-shadow: 0 2px 18px rgba(37, 99, 235, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--light-blue);
}

/* ===== Animated cat mascot (pawing a toy) ===== */
.cat-mascot {
  flex-shrink: 0;
  overflow: visible;
}

.cat-mascot .cat-paw {
  transform-box: fill-box;
  transform-origin: 15% 90%;
  animation: paw-swipe 1.3s ease-in-out infinite;
}

.cat-mascot .cat-toy-ball {
  transform-box: fill-box;
  transform-origin: center;
  animation: ball-wobble 1.3s ease-in-out infinite;
}

@keyframes paw-swipe {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-22deg); }
}

@keyframes ball-wobble {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(4px, -3px) rotate(20deg); }
  60% { transform: translate(-2px, 1px) rotate(-8deg); }
}

/* Hover reaction: cat plays faster and "pounces" slightly */
.cat-mascot {
  transition: transform 0.25s ease;
  cursor: pointer;
}

.cat-mascot:hover {
  transform: scale(1.15) rotate(-4deg);
}

.cat-mascot:hover .cat-paw,
.cat-mascot:hover .cat-toy-ball {
  animation-duration: 0.35s;
}

.nav-links {
  display: flex;
  align-items: center;
}

.nav-links a {
  margin: 0 1.3rem;
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--accent);
}

/* ===== Categories dropdown ===== */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  margin: 0 1.3rem;
  background: none;
  border: none;
  font: inherit;
  font-weight: 500;
  color: var(--dark);
  cursor: pointer;
  padding: 0;
  transition: color 0.3s;
}

.dropdown-toggle:hover {
  color: var(--accent);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(37,99,235,0.15);
  padding: 0.5rem;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 50;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
  margin: 0;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 500;
  color: var(--dark);
  text-decoration: none;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: var(--light-blue);
  color: var(--primary);
}

/* ===== Cart button + count badge ===== */
.cart-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary);
  display: flex;
  align-items: center;
  padding: 6px;
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -6px;
  background: var(--accent);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(rgba(37,99,235,0.88), rgba(37,99,235,0.75)), 
              url('images/hero-cat.jpg') center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 180px 20px 120px;
}

.hero-content h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  opacity: 0.95;
}

.highlight {
  color: #93c5fd;
}

/* ===== Big lying cat, faded in the hero ===== */
.lying-cat {
  position: absolute;
  right: -10px;
  bottom: -6px;
  width: min(46vw, 320px);
  opacity: 0.22;
  pointer-events: none;
}

.lying-cat svg {
  width: 100%;
  height: auto;
  display: block;
}

.cat-tail {
  transform-origin: 196px 148px;
  animation: tail-wiggle 3.2s ease-in-out infinite alternate;
}

@keyframes tail-wiggle {
  from { transform: rotate(-4deg); }
  to   { transform: rotate(5deg); }
}

.btn-primary {
  background: var(--accent);
  color: white;
  padding: 15px 36px;
  border: none;
  border-radius: 50px;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 25px;
  display: inline-block;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary:hover {
  background: var(--primary);
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.4);
}

/* ===== "Shop Now" paw hover ===== */
.shop-now-btn {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.paw-hover-icon {
  width: 0;
  height: 20px;
  fill: white;
  opacity: 0;
  transform: scale(0.4) rotate(-25deg);
  transition: width 0.25s ease, opacity 0.25s ease, transform 0.25s ease, margin-left 0.25s ease;
  overflow: visible;
}

.shop-now-btn:hover .paw-hover-icon {
  width: 20px;
  margin-left: 8px;
  opacity: 1;
  animation: paw-tap 0.5s ease-in-out infinite alternate;
}

@keyframes paw-tap {
  from { transform: scale(1) rotate(-10deg); }
  to   { transform: scale(1.15) rotate(10deg); }
}

.btn-outline {
  background: none;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 13px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.full-width {
  width: 100%;
}

.featured {
  max-width: 1400px;
  margin: 70px auto;
  padding: 0 5%;
}

.featured h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--dark);
  font-size: 2.4rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.2rem;
}

/* ===== Category filter buttons ===== */
.category-filters {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.filter-btn {
  background: white;
  border: 2px solid var(--light-blue);
  color: var(--dark);
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--primary);
}

.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.no-products-msg {
  text-align: center;
  color: #94a3b8;
  grid-column: 1 / -1;
  padding: 2rem 0;
}

.product-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.3s;
}

.product-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 40px rgba(37,99,235,0.15);
}

.product-card img {
  width: 100%;
  height: 230px;
  object-fit: contain;
  background: var(--light);
}

/* ===== Product image carousel ===== */
.product-image-wrap {
  position: relative;
  overflow: hidden;
  touch-action: pan-y;
}

.image-track {
  display: flex;
  width: 100%;
  transition: transform 0.4s ease;
  cursor: grab;
  user-select: none;
}

.image-track:active {
  cursor: grabbing;
}

.product-img {
  display: block;
  width: 100%;
  height: 230px;
  object-fit: contain;
  background: var(--light);
  flex-shrink: 0;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

.image-dots {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 6px 10px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.dot:hover {
  transform: scale(1.2);
}

.dot.active {
  background: var(--primary);
  border-color: white;
  transform: scale(1.3);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.5);
}

.product-info {
  padding: 1.4rem;
}

.category-tag {
  display: inline-block;
  background: var(--light-blue);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 50px;
  margin-bottom: 8px;
}

.product-info h3 {
  margin-bottom: 8px;
  color: var(--dark);
  font-size: 1.25rem;
}

.product-desc {
  font-size: 0.92rem;
  color: #64748b;
  margin-bottom: 8px;
  line-height: 1.5;
}

.product-meta {
  font-size: 0.88rem;
  color: var(--dark);
  margin-bottom: 4px;
}

.product-meta strong {
  color: #64748b;
  font-weight: 600;
}

.price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0;
}

.price {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.4rem;
}

.old-price {
  color: #94a3b8;
  text-decoration: line-through;
  font-size: 1rem;
}

.discount-badge {
  background: #ef4444;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.stock-msg {
  font-size: 0.85rem;
  font-weight: 600;
  margin: -4px 0 8px;
}

.stock-msg.out-of-stock {
  color: #ef4444;
}

.stock-msg.low-stock {
  color: #d97706;
}

/* ===== Size variation selector ===== */
.size-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 6px 0;
}

.size-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #64748b;
  margin-right: 2px;
}

.size-btn {
  min-width: 36px;
  padding: 6px 10px;
  border: 1.5px solid var(--light-blue);
  background: white;
  color: var(--dark);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.size-btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--primary);
}

.size-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.size-btn:disabled {
  opacity: 0.4;
  text-decoration: line-through;
  cursor: not-allowed;
}

/* ===== Color variation selector ===== */
.color-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 6px 0;
}

.color-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 8px;
  border: 1.5px solid var(--light-blue);
  background: white;
  color: var(--dark);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.color-btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--primary);
}

.color-btn.active {
  background: var(--light-blue);
  border-color: var(--primary);
  color: var(--primary);
}

.color-btn:disabled {
  opacity: 0.4;
  text-decoration: line-through;
  cursor: not-allowed;
}

.color-swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.15);
  flex-shrink: 0;
}

/* Shows the chosen size next to an item name in the cart */
.item-size {
  font-size: 0.85rem;
  font-weight: 500;
  color: #64748b;
}

.add-to-cart:disabled {
  background: #cbd5e1;
  cursor: not-allowed;
}

.add-to-cart:disabled:hover {
  background: #cbd5e1;
}

.add-to-cart {
  width: 100%;
  padding: 13px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  margin-top: 10px;
  transition: background 0.3s;
}

.add-to-cart:hover {
  background: var(--accent);
}

/* ===== About section ===== */
.about-section {
  max-width: 800px;
  margin: 0 auto 80px;
  padding: 0 5%;
  text-align: center;
}

.about-section h2 {
  margin-bottom: 1rem;
  color: var(--dark);
  font-size: 2.2rem;
}

/* ===== Site footer ===== */
.site-footer {
  background: #0f1b3d;
  color: #b9c4d6;
  padding: 56px 24px 0;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-logo .footer-cat {
  color: #fff;
  flex-shrink: 0;
}

.footer-logo .brand-text {
  font-size: 1.5rem;
}

.footer-tagline {
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 18px;
  max-width: 320px;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 18px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.footer-social:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.32);
}

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.3px;
}

.footer-col a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #b9c4d6;
  text-decoration: none;
  font-size: 0.92rem;
  margin-bottom: 12px;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  color: #7c8aa3;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  .footer-logo, .footer-col a {
    justify-content: center;
  }
  .footer-tagline {
    margin: 0 auto 18px;
  }
}

/* ===== Admin footer (simpler, single row) ===== */
.admin-footer {
  background: #0f1b3d;
  color: #b9c4d6;
  text-align: center;
  padding: 24px;
  font-size: 0.85rem;
  margin-top: 40px;
}

.admin-footer a {
  color: #93c5fd;
  text-decoration: none;
}

.admin-footer a:hover {
  text-decoration: underline;
}

/* ===== Cart Sidebar (mini cart) ===== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 200;
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 380px;
  max-width: 90%;
  height: 100%;
  background: white;
  box-shadow: -10px 0 30px rgba(0,0,0,0.15);
  z-index: 201;
  display: flex;
  flex-direction: column;
  padding: 1.6rem;
  transition: right 0.35s ease;
}

.cart-sidebar.open {
  right: 0;
}

.cart-sidebar .cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.4rem;
}

.cart-sidebar .cart-header h3 {
  font-size: 1.4rem;
  color: var(--dark);
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--dark);
  line-height: 1;
}

.cart-sidebar .cart-items {
  flex: 1;
  overflow-y: auto;
}

.cart-sidebar-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--light-blue);
}

.cart-sidebar-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

.cart-sidebar-item .item-details {
  flex: 1;
}

.cart-sidebar-item h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.cart-sidebar-item p {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.quantity-controls button {
  width: 26px;
  height: 26px;
  border: 1px solid var(--light-blue);
  background: var(--light);
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.cart-sidebar .remove-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #94a3b8;
  align-self: flex-start;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
}

.cart-sidebar .remove-btn:hover {
  color: #ef4444;
  background: #fee2e2;
}

.empty-cart-msg {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  color: #94a3b8;
  padding: 2.5rem 0;
}

.cart-total {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 1rem 0;
  display: flex;
  justify-content: space-between;
  color: var(--dark);
}

/* ===== Cart Page ===== */
.cart-page {
  max-width: 900px;
  margin: 50px auto;
  padding: 0 5%;
}

.cart-page h1 {
  margin-bottom: 2rem;
  color: var(--dark);
}

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto auto auto;
  align-items: center;
  gap: 1.2rem;
  background: white;
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.cart-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
}

.cart-item .item-details h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.cart-item .item-total {
  font-weight: 700;
  color: var(--primary);
}

.cart-item .remove-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.cart-item .remove-btn:hover {
  color: #ef4444;
  background: #fee2e2;
}

.empty-cart {
  text-align: center;
  padding: 4rem 0;
}

.empty-cart svg {
  margin-bottom: 1rem;
}

.empty-cart h2 {
  margin-bottom: 1.5rem;
  color: var(--dark);
}

.cart-summary {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.customer-details {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.customer-details h3 {
  margin-bottom: 0.25rem;
  color: var(--dark);
}

.customer-details .form-hint {
  color: #94a3b8;
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

.customer-details input,
.customer-details textarea {
  display: block;
  width: 100%;
  padding: 12px;
  margin: 6px 0 14px;
  border: 1px solid var(--light-blue);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  background: white;
}

.customer-details textarea {
  resize: vertical;
}

.customer-details label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--dark);
  margin-top: 6px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
}

.summary-row.total {
  font-weight: 700;
  font-size: 1.3rem;
  border-top: 1px solid var(--light-blue);
  padding-top: 1rem;
  margin-top: 0.5rem;
  color: var(--primary);
}

.cart-actions.secondary-action {
  margin-top: 0.8rem;
}

.cart-actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* ===== Admin Page ===== */
.admin-container {
  max-width: 900px;
  margin: 50px auto;
  padding: 0 5%;
}

.admin-container h1 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 2rem;
  color: var(--dark);
  font-size: 1.8rem;
}

/* ===== Admin tab navigation ===== */
.admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--light-blue);
}

.admin-tab {
  background: none;
  border: none;
  padding: 12px 22px;
  font-size: 1rem;
  font-weight: 600;
  color: #94a3b8;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.admin-tab:hover {
  color: var(--primary);
}

.admin-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}


#loginScreen,
.admin-form {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  margin-bottom: 2rem;
}

#loginScreen h2,
.admin-form h3 {
  margin-bottom: 1rem;
  color: var(--dark);
}

.admin-form input,
.admin-form select,
.admin-form textarea,
#loginScreen input {
  display: block;
  width: 100%;
  padding: 12px;
  margin: 6px 0 14px;
  border: 1px solid var(--light-blue);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  background: white;
}

.admin-form textarea {
  resize: vertical;
}

.admin-form label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--dark);
  margin-top: 6px;
}

.admin-form .form-hint {
  color: #94a3b8;
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

.image-preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.image-preview-thumb {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--light-blue);
}

/* ===== Admin: optional per-color image rows ===== */
.color-image-row {
  background: var(--light);
  border: 1px solid var(--light-blue);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
}

.color-image-row-top {
  display: grid;
  grid-template-columns: 140px 1fr 36px;
  gap: 8px;
  align-items: center;
}

.color-image-row-top input {
  margin: 0;
}

.color-image-preview:empty {
  margin-top: 0;
}

.color-image-preview .image-preview-thumb {
  margin-top: 10px;
}

@media (max-width: 640px) {
  .color-image-row-top {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "color color"
      "file remove";
  }
  .color-image-row-top .color-image-color { grid-area: color; }
  .color-image-row-top .color-image-files { grid-area: file; }
  .color-image-row-top .variation-remove { grid-area: remove; width: 100%; }
}

.admin-product-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: white;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 0.8rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.admin-product-item div {
  flex: 1;
}

.admin-product-item.hidden-product {
  opacity: 0.55;
}

.hidden-tag {
  background: #fde68a;
  color: #92400e;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 50px;
  margin-left: 6px;
}

/* ===== Admin: search boxes (inventory + orders) ===== */
#inventorySearch,
#orderSearch {
  display: block;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--light-blue);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  background: white;
}

/* ===== Admin: orders list ===== */
.order-item {
  align-items: flex-start;
}

.order-date {
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 400;
}

.order-method-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--light-blue);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 50px;
  vertical-align: middle;
}

.order-contact {
  color: #64748b;
  font-size: 0.9rem;
}

.order-items {
  margin: 8px 0;
  font-size: 0.92rem;
  color: var(--dark);
}

.order-edit-form input,
.order-edit-form textarea {
  display: block;
  width: 100%;
  padding: 10px;
  margin: 4px 0 10px;
  border: 1px solid var(--light-blue);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: white;
}

.order-edit-form label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--dark);
  margin-top: 4px;
}

.order-edit-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.order-edit-item input {
  width: 70px;
  margin: 0;
}

.order-add-product {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.order-add-product select {
  flex: 1;
  margin: 0;
}

.stock-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.stock-controls button {
  width: 26px;
  height: 26px;
  border: 1px solid var(--light-blue);
  background: var(--light);
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.stock-value {
  font-weight: 600;
  font-size: 0.9rem;
  min-width: 24px;
  text-align: center;
}

.stock-unlimited {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.82rem;
  color: #94a3b8;
}

.total-stock {
  display: block;
  margin-top: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}

.stock-size-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  min-width: 28px;
}

/* ===== Admin: size/color variation rows ===== */
.variation-row {
  display: grid;
  grid-template-columns: 90px 1fr 90px 36px;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.variation-row select,
.variation-row input {
  margin: 0;
}

.variation-remove {
  width: 36px;
  height: 36px;
  border: none;
  background: #fee2e2;
  color: #ef4444;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.variation-remove:hover {
  background: #fecaca;
}

@media (max-width: 640px) {
  .variation-row {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "size color"
      "stock remove";
  }
  .variation-row select { grid-area: size; }
  .variation-row .variation-color { grid-area: color; }
  .variation-row .variation-stock { grid-area: stock; }
  .variation-row .variation-remove { grid-area: remove; width: 100%; }
}

.admin-item-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 0 0 auto;
}

.action-btn {
  border: none;
  background: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: 6px;
  text-align: left;
}

.edit-btn {
  color: var(--primary);
}

.edit-btn:hover {
  background: var(--light-blue);
}

.hide-btn {
  color: #b45309;
}

.hide-btn:hover {
  background: #fef3c7;
}

.delete-btn {
  color: #ef4444;
}

.delete-btn:hover {
  background: #fee2e2;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .nav-links {
    display: none;
  }

  .cart-item {
    grid-template-columns: 60px 1fr;
    grid-template-areas:
      "img details"
      "img qty"
      "img total"
      "img remove";
  }

  .hero-content h1 {
    font-size: 2rem;
  }
}
