@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800&display=swap');

/* =========================================
   CSS VARIABLES
   ========================================= */
:root {
  --primary: #0f766e;
  --primary-hover: #0d5f58;
  --secondary: #0284c7;
  --secondary-hover: #0369a1;
  --accent: #f59e0b;
  --bg: #f8fafc;
  --card-bg: rgba(255, 255, 255, 0.95);
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

/* =========================================
   RESET & BASE
   ========================================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Cairo', system-ui, -apple-system, sans-serif;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  background: var(--bg);
  background-image:
    radial-gradient(at 0% 0%, rgba(15, 118, 110, 0.03) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(2, 132, 199, 0.03) 0px, transparent 50%);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* =========================================
   CONTAINER
   ========================================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* =========================================
   HEADER
   ========================================= */
.site-header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--primary);
  white-space: nowrap;
}

.site-logo {
  height: 48px;
  width: auto;
}

.contact-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}

.contact-phone {
  background: rgba(15, 118, 110, 0.08);
  color: var(--primary);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  white-space: nowrap;
}

.admin-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

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

/* Hamburger toggle — hidden on desktop */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.3rem 0.5rem;
  border-radius: var(--radius-sm);
  line-height: 1;
}

.nav-toggle:hover {
  background: rgba(15, 118, 110, 0.08);
}

/* =========================================
   HERO
   ========================================= */
.hero {
  background: linear-gradient(135deg, #0f766e 0%, #0369a1 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 3.5rem 2rem;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 80%);
  pointer-events: none;
}

.hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
  line-height: 1.3;
}

.hero p {
  font-size: 1.05rem;
  opacity: 0.9;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.7;
}

/* =========================================
   SEARCH & FILTERS
   ========================================= */
.search-filter-section {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
}

.search-box {
  position: relative;
  margin-bottom: 1rem;
}

.search-box input {
  width: 100%;
  padding: 0.8rem 2.8rem 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  color: var(--text-main);
  background: #f8fafc;
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

.search-box .search-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.filter-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: #f1f5f9;
  color: var(--text-muted);
  border: none;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-lg);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

.filter-btn:hover {
  background: rgba(15, 118, 110, 0.1);
  color: var(--primary);
}

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

/* =========================================
   PRODUCTS GRID
   ========================================= */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  padding: 1rem 0;
}

.product-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(15, 118, 110, 0.2);
}

.product-card-link {
  text-decoration: none;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card .img-container {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f8fafc;
  position: relative;
}

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

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

.product-card .category-badge {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  background: rgba(15, 118, 110, 0.9);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(4px);
}

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

.product-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  height: 2.8rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-card .price {
  color: var(--primary);
  font-weight: 800;
  font-size: 1.15rem;
}

.product-card .avg-rating {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: #f1f5f9;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  width: fit-content;
}

.product-card .avg-rating span.stars-gold {
  color: var(--accent);
  font-size: 1rem;
}

/* =========================================
   PRODUCT DETAIL
   ========================================= */
.product-detail-container {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  margin-top: 1rem;
}

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

.product-detail-image {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  height: 400px;
}

.product-detail-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.product-detail-info {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.product-detail-info .category-tag {
  background: rgba(2, 132, 199, 0.1);
  color: var(--secondary);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-sm);
  width: fit-content;
}

.product-detail-info h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
}

.product-detail-info .description {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.product-detail-info .price-tag {
  background: rgba(15, 118, 110, 0.05);
  border-right: 4px solid var(--primary);
  padding: 0.8rem 1.2rem;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.product-rating-box {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: #f8fafc;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  flex-wrap: wrap;
}

.rating-stars-show {
  color: var(--accent);
  font-size: 1.2rem;
}

/* =========================================
   ORDER FORM
   ========================================= */
.order-form-box {
  border: 1px solid var(--border);
  background: #f8fafc;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.order-form-box h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--primary);
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.5rem;
}

form label {
  display: block;
  margin-bottom: 0.8rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-main);
}

form input,
form select,
form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-top: 0.3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  background: white;
}

form input:focus,
form select:focus,
form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

.btn:hover {
  background: var(--primary-hover);
  box-shadow: var(--shadow-md);
}

.btn-secondary { background: var(--secondary); }
.btn-secondary:hover { background: var(--secondary-hover); }
.btn-danger { background: #dc2626; }
.btn-danger:hover { background: #b91c1c; }

/* =========================================
   RATING WIDGET
   ========================================= */
.rate-now {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 2rem;
}

.rate-now h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
}

.rating-widget {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stars {
  display: flex;
  gap: 0.4rem;
}

.star {
  font-size: 2rem;
  color: #cbd5e1;
  cursor: pointer;
  user-select: none;
}

.star:hover,
.star.filled {
  color: var(--accent);
}

/* =========================================
   COMMENTS
   ========================================= */
.comments-section {
  margin-top: 2.5rem;
}

.comments-section h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.5rem;
}

.comment-card {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1rem;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.comment-user {
  font-weight: 700;
  color: var(--primary);
}

.comment-date {
  color: var(--text-muted);
}

.comment-stars {
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.comment-text {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.5;
}

/* =========================================
   ORDER SUCCESS
   ========================================= */
.order-success {
  text-align: center;
  max-width: 500px;
  margin: 4rem auto;
  padding: 2.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.success-icon {
  font-size: 4rem;
  color: #10b981;
  animation: scaleUp 0.5s ease-out;
}

.order-success h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
}

.order-success p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.5;
}

.order-success strong {
  color: var(--primary);
  font-size: 1.2rem;
}

/* =========================================
   ADMIN — LOGIN
   ========================================= */
.admin-login {
  max-width: 400px;
  margin: 6rem auto;
  padding: 2rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.admin-login h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--primary);
}

.admin-login button {
  width: 100%;
  margin-top: 1rem;
}

/* =========================================
   ADMIN — STATS
   ========================================= */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}

.stat-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.stat-info h4 {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.stat-info p {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
}

/* =========================================
   ADMIN — ACTIONS BAR
   ========================================= */
.admin-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

/* =========================================
   ADMIN — TABLE
   ========================================= */
.admin-table-container {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: var(--shadow-sm);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.admin-table th,
.admin-table td {
  padding: 1rem;
  text-align: right;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.admin-table th {
  background: #f1f5f9;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
}

.admin-table tr:hover {
  background: #f8fafc;
}

.thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.admin-table td .btn-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.admin-table td .btn-group .btn {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  background: var(--text-main);
  color: #94a3b8;
  text-align: center;
  padding: 2rem 1.5rem;
  margin-top: auto;
  border-top: 1px solid #334155;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.site-footer a {
  color: white;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--secondary);
}

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes scaleUp {
  0%   { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1);   opacity: 1; }
}

/* =========================================
   RESPONSIVE — LARGE TABLET (max 1024px)
   ========================================= */
@media (max-width: 1024px) {
  .products {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 1.2rem;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  .product-detail-grid {
    gap: 1.8rem;
  }
}

/* =========================================
   RESPONSIVE — TABLET (max 768px)
   ========================================= */
@media (max-width: 768px) {

  /* Container */
  .container {
    padding: 1rem;
  }

  /* Header — show hamburger button */
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .site-header .container {
    padding: 0.7rem 1rem;
    position: relative;
  }

  .brand {
    font-size: 1.2rem;
  }

  /* Nav menu — hidden by default, shown when .nav-open */
  .contact-info {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    box-shadow: var(--shadow-md);
    z-index: 200;
    padding: 0.5rem 0;
  }

  .contact-info.nav-open {
    display: flex;
  }

  .contact-phone {
    width: 100%;
    padding: 0.9rem 1.5rem;
    border-radius: 0;
    background: transparent;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
  }

  .admin-link {
    width: 100%;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
  }

  .admin-link:hover {
    background: rgba(15,118,110,0.05);
  }

  /* Hero */
  .hero {
    padding: 2rem 1.2rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
  }

  .hero h1 {
    font-size: 1.55rem;
  }

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

  /* Products */
  .products {
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 1rem;
  }

  .product-card .img-container {
    height: 170px;
  }

  /* Product detail — stack */
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .product-detail-container {
    padding: 1.2rem;
  }

  .product-detail-image {
    height: 280px;
  }

  .product-detail-info h2 {
    font-size: 1.45rem;
  }

  .product-detail-info .price-tag {
    font-size: 1.2rem;
  }

  /* Filters — horizontal scroll */
  .filter-buttons {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .filter-buttons::-webkit-scrollbar { display: none; }

  .filter-btn {
    flex-shrink: 0;
    font-size: 0.85rem;
    padding: 0.38rem 0.9rem;
  }

  /* Admin */
  .admin-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-login {
    margin: 3rem auto;
  }

  /* Order success */
  .order-success {
    margin: 2rem auto;
    padding: 1.8rem 1.2rem;
  }

  /* Footer */
  .site-footer {
    padding: 1.5rem 1rem;
    font-size: 0.9rem;
  }
}

/* =========================================
   RESPONSIVE — MOBILE (max 480px)
   ========================================= */
@media (max-width: 480px) {

  /* Header — keep hamburger, adjust padding */
  .site-header .container {
    padding: 0.75rem 0.8rem;
  }

  .brand {
    font-size: 1.05rem;
  }

  .brand span {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .contact-phone {
    font-size: 0.95rem;
    padding: 0.85rem 1.2rem;
  }

  .admin-link {
    font-size: 0.95rem;
    padding: 0.85rem 1.2rem;
  }

  /* Hero */
  .hero {
    padding: 1.6rem 1rem;
    border-radius: 10px;
    margin-bottom: 1.2rem;
  }

  .hero h1 {
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
  }

  .hero p {
    font-size: 0.88rem;
    line-height: 1.65;
  }

  /* Search */
  .search-filter-section {
    padding: 0.9rem;
    margin-bottom: 1.2rem;
  }

  .search-box input {
    font-size: 0.9rem;
    padding: 0.7rem 2.4rem 0.7rem 0.8rem;
  }

  /* Products — 2 columns */
  .products {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 0.5rem 0;
  }

  .product-card .img-container {
    height: 140px;
  }

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

  .product-card h3 {
    font-size: 0.9rem;
    height: auto;
    -webkit-line-clamp: 2;
  }

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

  .product-card .avg-rating {
    font-size: 0.72rem;
  }

  .product-card .category-badge {
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
  }

  /* Product detail */
  .product-detail-container {
    padding: 0.9rem;
    border-radius: var(--radius-md);
    margin-top: 0.5rem;
  }

  .product-detail-image {
    height: 220px;
  }

  .product-detail-info h2 {
    font-size: 1.2rem;
  }

  .product-detail-info .description {
    font-size: 0.9rem;
  }

  .product-detail-info .price-tag {
    font-size: 1.1rem;
    padding: 0.6rem 1rem;
  }

  .product-rating-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 0.7rem;
  }

  .order-form-box {
    padding: 1rem;
    margin-top: 1rem;
  }

  .order-form-box h3 {
    font-size: 1rem;
  }

  form input,
  form select,
  form textarea {
    font-size: 0.9rem;
    padding: 0.65rem 0.8rem;
  }

  /* Buttons */
  .btn {
    font-size: 0.9rem;
    padding: 0.65rem 1.1rem;
  }

  /* Stars */
  .star {
    font-size: 1.7rem;
  }

  /* Comments */
  .comments-section h3 {
    font-size: 1.05rem;
  }

  .comment-header {
    flex-direction: column;
    gap: 0.2rem;
  }

  /* Admin stats */
  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.7rem;
  }

  .stat-card {
    padding: 0.9rem;
    gap: 0.7rem;
  }

  .stat-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: 1.2rem;
  }

  .stat-info p {
    font-size: 1.2rem;
  }

  .admin-actions h2 {
    font-size: 1.1rem;
  }

  .admin-login {
    margin: 2rem auto;
    padding: 1.5rem;
  }

  /* Order success */
  .order-success {
    margin: 1.5rem auto;
    padding: 1.4rem;
    border-radius: var(--radius-md);
  }

  .order-success h2 {
    font-size: 1.4rem;
  }

  .success-icon {
    font-size: 3rem;
  }

  /* Footer */
  .site-footer {
    padding: 1.2rem 0.8rem;
    font-size: 0.83rem;
  }

  /* Container */
  .container {
    padding: 0.8rem;
  }
}

/* =========================================
   RESPONSIVE — VERY SMALL (max 360px)
   ========================================= */
@media (max-width: 360px) {

  .brand {
    font-size: 1rem;
  }

  .brand span {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero h1 {
    font-size: 1.1rem;
  }

  .hero p {
    font-size: 0.82rem;
  }

  .products {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .product-card .img-container {
    height: 120px;
  }

  .product-card h3 {
    font-size: 0.82rem;
  }

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

  .admin-stats {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .stat-info p {
    font-size: 1rem;
  }

  .filter-btn {
    font-size: 0.78rem;
    padding: 0.3rem 0.7rem;
  }

  .btn {
    font-size: 0.85rem;
    padding: 0.6rem 0.9rem;
  }
}

/* =========================================
   PRINT STYLES
   ========================================= */
@media print {
  .site-header,
  .site-footer,
  .filter-buttons,
  .search-filter-section,
  .nav-toggle,
  .btn,
  .order-form-box,
  .rate-now { display: none !important; }

  body { background: white; color: black; }
  .product-card { break-inside: avoid; }
  .products { grid-template-columns: repeat(3, 1fr); }
}
