/* ═══════════════════════════════════════
   ZOOY Shop — Additional Styles
═══════════════════════════════════════ */

/* Flash alerts */
.flash-alert { position:relative; z-index:9999; }

/* Language switcher */
.lang-switcher { gap:6px; flex-wrap:wrap; }
.lang-switcher a {
  font-size:12px; padding:2px 8px;
  border:1px solid rgba(255,255,255,.3);
  border-radius:3px; color:inherit; transition:.15s;
}
.lang-switcher a.active,
.lang-switcher a:hover { background:var(--accent,#e8a400); color:#000; border-color:transparent; }

/* Catalog layout */
.catalog-wrap { display:flex; gap:28px; }
.catalog-sidebar { width:250px; flex-shrink:0; }
.catalog-main { flex:1; min-width:0; }

/* Filter panel */
.filter-panel { background:#fff; border:1px solid #e5e5e5; border-radius:8px; padding:20px; margin-bottom:20px; }
.filter-group { margin-bottom:20px; border-bottom:1px solid #f0f0f0; padding-bottom:16px; }
.filter-group:last-child { border-bottom:none; margin-bottom:0; padding-bottom:0; }
.filter-group-title { font-size:13px; font-weight:700; text-transform:uppercase; letter-spacing:.5px; color:#222; margin-bottom:12px; }
.filter-group label { display:flex; align-items:center; gap:7px; font-size:13px; color:#555; cursor:pointer; margin-bottom:6px; }
.filter-group label:hover { color:#222; }
.filter-group input[type=checkbox] { width:15px; height:15px; }
.filter-count { font-size:11px; color:#aaa; margin-left:auto; }

/* Price range */
.price-range-inputs { display:flex; gap:8px; align-items:center; margin-top:8px; }
.price-range-inputs input { width:70px; padding:5px 8px; border:1px solid #ddd; border-radius:4px; font-size:13px; }
.price-range-inputs span { color:#aaa; font-size:12px; }
.btn-apply-filter { margin-top:10px; width:100%; padding:8px; background:#222; color:#fff; border:none; border-radius:4px; font-size:13px; cursor:pointer; }
.btn-apply-filter:hover { background:#e8a400; }

/* Active filters */
.active-filters { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:16px; }
.filter-tag { display:flex; align-items:center; gap:5px; background:#f5f5f5; border:1px solid #e0e0e0; border-radius:20px; padding:4px 10px; font-size:12px; }
.filter-tag a { color:#999; text-decoration:none; font-size:14px; line-height:1; }
.filter-tag a:hover { color:#e74c3c; }

/* Product grid */
.products-toolbar { display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; flex-wrap:wrap; gap:10px; }
.products-count { font-size:13px; color:#777; }
.sort-select { padding:6px 12px; border:1px solid #ddd; border-radius:4px; font-size:13px; }
.product-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:20px; }
.product-list-mode .product-grid { grid-template-columns:1fr; }

/* Product card */
.product-card { background:#fff; border:1px solid #eee; border-radius:8px; overflow:hidden; transition:.2s; }
.product-card:hover { box-shadow:0 4px 20px rgba(0,0,0,.1); transform:translateY(-2px); }
.product-card-img { position:relative; aspect-ratio:1; overflow:hidden; background:#f9f9f9; }
.product-card-img img { width:100%; height:100%; object-fit:cover; }
.product-card-body { padding:14px; }
.product-card-cat { font-size:11px; color:#aaa; margin-bottom:4px; text-transform:uppercase; letter-spacing:.5px; }
.product-card-name { font-size:14px; font-weight:600; color:#222; margin-bottom:8px; line-height:1.4; }
.product-card-name a { color:inherit; text-decoration:none; }
.product-card-name a:hover { color:#e8a400; }
.product-card-price { display:flex; align-items:baseline; gap:8px; }
.price-new { font-size:16px; font-weight:700; color:#e8a400; }
.price-old { font-size:13px; color:#bbb; text-decoration:line-through; }
.product-card-actions { margin-top:12px; display:flex; gap:8px; }
.btn-add-cart { flex:1; padding:8px; background:#222; color:#fff; border:none; border-radius:4px; font-size:12px; font-weight:600; cursor:pointer; transition:.15s; }
.btn-add-cart:hover { background:#e8a400; }
.label-badge { position:absolute; top:10px; left:10px; padding:3px 8px; border-radius:3px; font-size:10px; font-weight:700; text-transform:uppercase; }
.label-hot { background:#e8a400; color:#000; }
.label-new { background:#22c55e; color:#fff; }
.label-sale { background:#ef4444; color:#fff; }

/* Admin panel */
.admin-wrap { display:flex; min-height:100vh; }
.admin-sidebar { width:220px; background:#1a1f2e; color:#c5cde8; flex-shrink:0; }
.admin-sidebar .a-logo { padding:20px; background:#0f1219; font-size:16px; font-weight:800; color:#e8a400; }
.admin-sidebar .a-nav { list-style:none; margin:0; padding:10px 0; }
.admin-sidebar .a-nav a { display:flex; align-items:center; gap:8px; padding:10px 20px; color:#8892b0; font-size:13px; text-decoration:none; transition:.12s; }
.admin-sidebar .a-nav a:hover,.admin-sidebar .a-nav a.active { color:#e8a400; background:rgba(232,164,0,.08); border-left:3px solid #e8a400; }
.admin-main { flex:1; background:#f4f6fa; overflow:auto; }
.admin-topbar { background:#fff; border-bottom:1px solid #e5e9f0; padding:0 24px; height:56px; display:flex; align-items:center; justify-content:space-between; }
.admin-topbar-title { font-size:15px; font-weight:700; }
.admin-content { padding:24px; }
.admin-card { background:#fff; border:1px solid #e5e9f0; border-radius:8px; overflow:hidden; margin-bottom:20px; }
.admin-card-head { padding:14px 20px; border-bottom:1px solid #e5e9f0; display:flex; align-items:center; justify-content:space-between; }
.admin-card-title { font-size:14px; font-weight:700; }
.admin-card-body { padding:20px; }
.admin-table { width:100%; border-collapse:collapse; }
.admin-table th { text-align:left; padding:10px 14px; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.6px; color:#8892b0; background:#f9fafc; border-bottom:1px solid #e5e9f0; }
.admin-table td { padding:10px 14px; font-size:13px; color:#444; border-bottom:1px solid #f0f2f7; vertical-align:middle; }
.admin-table tr:last-child td { border-bottom:none; }
.admin-table tr:hover td { background:#fafbff; }

/* Admin forms */
.f-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:16px; }
.f-row.f-1 { grid-template-columns:1fr; }
.f-row.f-3 { grid-template-columns:1fr 1fr 1fr; }
.f-group { display:flex; flex-direction:column; gap:5px; }
.f-group.span2 { grid-column:span 2; }
.f-label { font-size:12px; font-weight:700; color:#555; text-transform:uppercase; letter-spacing:.3px; }
.f-control { background:#fff; border:1px solid #d1d9e6; color:#222; padding:9px 12px; border-radius:6px; font-size:13px; outline:none; width:100%; transition:border-color .12s; }
.f-control:focus { border-color:#e8a400; }
.f-hint { font-size:11px; color:#aaa; }
.f-check { display:flex; align-items:center; gap:8px; cursor:pointer; font-size:13px; color:#555; }

/* Stat cards */
.stat-row { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:24px; }
.stat-card { background:#fff; border:1px solid #e5e9f0; border-radius:8px; padding:20px; }
.stat-card .stat-val { font-size:28px; font-weight:800; color:#1a1f2e; }
.stat-card .stat-label { font-size:12px; color:#8892b0; margin-top:4px; }
.stat-card .stat-icon { font-size:24px; margin-bottom:8px; }

/* Buttons */
.btn-admin { display:inline-flex; align-items:center; gap:6px; padding:8px 16px; border:none; border-radius:6px; font-size:13px; font-weight:600; cursor:pointer; text-decoration:none; transition:.12s; }
.btn-admin.primary { background:#e8a400; color:#000; }
.btn-admin.primary:hover { background:#ffc107; }
.btn-admin.secondary { background:#f0f2f7; color:#444; }
.btn-admin.secondary:hover { background:#e0e4ef; }
.btn-admin.danger { background:#fee2e2; color:#dc2626; }
.btn-admin.danger:hover { background:#dc2626; color:#fff; }
.btn-admin.sm { padding:5px 10px; font-size:11px; }

/* Pagination */
.pagination { display:flex; gap:4px; list-style:none; padding:0; margin:20px 0; justify-content:center; }
.page-item .page-link { display:block; padding:7px 13px; border:1px solid #e0e0e0; border-radius:4px; color:#555; font-size:13px; text-decoration:none; }
.page-item.active .page-link { background:#222; color:#fff; border-color:#222; }
.page-item .page-link:hover { background:#e8a400; border-color:#e8a400; color:#000; }

/* Image upload */
.img-upload-zone { border:2px dashed #d1d9e6; border-radius:8px; padding:24px; text-align:center; cursor:pointer; transition:.2s; position:relative; }
.img-upload-zone:hover { border-color:#e8a400; }
.img-upload-zone input[type=file] { position:absolute; inset:0; opacity:0; cursor:pointer; width:100%; height:100%; }
.img-thumbs { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.img-thumb { position:relative; width:80px; height:80px; border-radius:6px; overflow:hidden; border:1px solid #e0e0e0; }
.img-thumb img { width:100%; height:100%; object-fit:cover; }
.img-thumb .rm { position:absolute; top:2px; right:2px; width:18px; height:18px; background:rgba(220,38,38,.9); color:#fff; border-radius:50%; border:none; font-size:11px; cursor:pointer; display:flex; align-items:center; justify-content:center; }

/* Spec table in product page */
.spec-table { width:100%; border-collapse:collapse; }
.spec-table tr:nth-child(even) td { background:#f9f9f9; }
.spec-table td { padding:9px 14px; font-size:13px; border-bottom:1px solid #f0f0f0; }
.spec-table td:first-child { color:#888; width:40%; font-weight:500; }
.spec-table td:last-child { color:#222; }

/* Attribute filter range */
.range-filter-row { display:flex; gap:6px; align-items:center; }
.range-filter-row input { flex:1; padding:5px 8px; border:1px solid #ddd; border-radius:4px; font-size:12px; }

/* Stars */
.star-rating { display:inline-flex; gap:2px; color:#e8a400; font-size:14px; }
.star-rating .empty { color:#ddd; }

/* Related products */
.section-title-sm { font-size:18px; font-weight:700; margin-bottom:16px; }

@media (max-width:768px) {
  .catalog-wrap { flex-direction:column; }
  .catalog-sidebar { width:100%; }
  .stat-row { grid-template-columns:repeat(2,1fr); }
  .f-row { grid-template-columns:1fr; }
  .f-row.f-3 { grid-template-columns:1fr; }
  .admin-sidebar { width:100%; }
  .admin-wrap { flex-direction:column; }
}
