/* ==================== GLOBAL SETTINGS & RESET ==================== */
:root {
  --bg-dark: #09090b;
  --bg-card: #121215;
  --bg-card-hover: #1b1b20;
  --primary-red: #e50914;
  --primary-red-hover: #ff2833;
  --primary-red-glow: rgba(229, 9, 20, 0.4);
  --primary-red-dim: rgba(229, 9, 20, 0.15);
  --text-white: #ffffff;
  --text-gray: #a1a1aa;
  --text-muted: #71717a;
  --border-gray: rgba(255, 255, 255, 0.08);
  --border-red: rgba(229, 9, 20, 0.25);
  --border-red-active: rgba(229, 9, 20, 0.6);
  --glass-bg: rgba(18, 18, 21, 0.85);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  font-family: var(--font-family);
  color: var(--text-white);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* CUSTOM SCROLLBAR */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-red);
}

/* ==================== TYPOGRAPHY & BASIC LAYOUT ==================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5em;
  line-height: 1.2;
}

p {
  color: var(--text-gray);
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: 1em;
}

a {
  color: var(--primary-red);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--primary-red-hover);
  text-decoration: underline;
}

/* CONTAINER */
.content-wrapper {
  flex: 1;
  max-width: 1300px;
  width: 100%;
  margin: 0 auto;
  padding: 100px 20px 40px 20px; /* Offset for fixed header */
}

/* BUTTONS */
button, select, input, textarea {
  font-family: inherit;
}

.glow-button {
  background: var(--primary-red);
  color: var(--text-white);
  border: none;
  padding: 12px 24px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 0 0 rgba(229, 9, 20, 0);
}

.glow-button:hover {
  background: var(--primary-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--primary-red-glow);
}

.glow-button:active {
  transform: translateY(0);
}

.cancel-btn {
  background: transparent;
  color: var(--text-gray);
  border: 1px solid var(--border-gray);
  padding: 12px 24px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.cancel-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-white);
}

/* RED BADGE */
.red-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-red-dim);
  border: 1px solid var(--border-red);
  color: var(--primary-red-hover);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

/* CARD GLOW & GLASS */
.card-glow {
  background: var(--bg-card);
  border: 1px solid var(--border-gray);
  border-radius: 16px;
  transition: var(--transition-smooth);
}

.card-glow:hover {
  border-color: var(--border-red);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(229, 9, 20, 0.05);
}

/* ==================== FIXED NAVIGATION HEADER ==================== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--glass-bg);
  border-bottom: 1px solid var(--border-gray);
  z-index: 1000;
  transition: var(--transition-smooth);
}

.header-container {
  max-width: 1300px;
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* BRAND LOGO */
.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.brand-logo {
  height: 48px;
  width: 48px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border-gray);
  transition: var(--transition-smooth);
}

.logo-area:hover .brand-logo {
  border-color: var(--primary-red);
  box-shadow: 0 0 10px var(--primary-red-glow);
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-white);
  background: linear-gradient(135deg, #ffffff 30%, var(--primary-red-hover) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* NAV LINKS */
.nav-links {
  display: flex;
  gap: 8px;
}

.nav-btn {
  background: transparent;
  color: var(--text-gray);
  border: none;
  padding: 10px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.nav-btn:hover {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.05);
}

.nav-btn.active {
  color: var(--primary-red-hover);
  background: var(--primary-red-dim);
  border: 1px solid var(--border-red);
}

/* USER STATUS BAR */
.user-status-bar {
  display: flex;
  align-items: center;
  gap: 16px;
}

#user-status-text {
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-gray);
}

.status-online {
  color: #10b981 !important;
}

.status-offline {
  color: var(--text-gray) !important;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  background-color: var(--text-gray);
}

.status-online .status-dot {
  background-color: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse 2s infinite;
}

.logout-btn {
  background: transparent;
  color: var(--primary-red-hover);
  border: 1px solid var(--border-red);
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.logout-btn:hover {
  background: var(--primary-red);
  color: var(--text-white);
}

/* ==================== TAB MANAGEMENT ==================== */
.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.fade-in {
  animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.5; }
}

/* ==================== TAB 1: HOME PAGE ==================== */

/* YOUTUBE SECTION */
.youtube-section {
  padding: 24px;
  margin-bottom: 40px;
}

.section-title-wrapper {
  margin-bottom: 20px;
}

.youtube-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.player-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-gray);
  border-radius: 12px;
  padding: 16px;
  height: 100%;
}

.video-responsive {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--border-gray);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.player-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.player-info h3 {
  font-size: 1.05rem;
  margin-bottom: 0;
  color: var(--text-white);
  line-height: 1.4;
}

.player-info p {
  font-size: 0.85rem;
  color: var(--text-gray);
  line-height: 1.5;
  margin-bottom: 0;
}

/* Playlist Column */
.playlist-container {
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-gray);
  border-radius: 12px;
  padding: 16px;
  height: 100%;
}

.playlist-container h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary-red-hover);
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-gray);
  padding-bottom: 8px;
}

.playlist-scroll {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
}

.video-playlist-item {
  display: flex;
  gap: 12px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-fast);
}

.video-playlist-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-gray);
}

.video-playlist-item.active {
  background: var(--primary-red-dim);
  border-color: var(--border-red);
}

.thumb-wrapper {
  position: relative;
  width: 80px;
  height: 50px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.playlist-item-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.playlist-item-info h5 {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}

.playlist-item-info p {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ABOUT SECTION */
.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

.about-card {
  padding: 32px;
}

.about-card h3 {
  font-size: 1.75rem;
  margin-bottom: 16px;
  color: var(--primary-red-hover);
}

.about-highlight {
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text-white);
  border-left: 3px solid var(--primary-red);
  padding-left: 16px;
  margin-bottom: 20px;
}

.about-stats {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding: 32px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--border-gray);
  padding-bottom: 12px;
}

.stat-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.stat-num {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary-red-hover);
  text-shadow: 0 0 10px rgba(229, 9, 20, 0.2);
}

.stat-lbl {
  font-size: 0.85rem;
  color: var(--text-gray);
  font-weight: 400;
}

/* GALLERY TABS & MASONRY GRID */
.gallery-tabs-section {
  margin-bottom: 40px;
}

.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-gray);
  padding-bottom: 16px;
}

.gallery-filter-buttons {
  display: flex;
  gap: 8px;
}

.gallery-tab-btn {
  background: transparent;
  color: var(--text-gray);
  border: 1px solid var(--border-gray);
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.gallery-tab-btn:hover {
  color: var(--text-white);
  border-color: var(--text-gray);
}

.gallery-tab-btn.active {
  background: var(--primary-red);
  color: var(--text-white);
  border-color: var(--primary-red);
  box-shadow: 0 0 10px rgba(229, 9, 20, 0.2);
}

.gallery-grid-wrapper {
  position: relative;
}

.gallery-grid {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.gallery-grid.active {
  display: grid;
  animation: fadeIn 0.4s ease;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-gray);
  background: #18181b;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
  padding: 16px;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.gallery-overlay h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: var(--text-white);
}

.gallery-overlay span {
  font-size: 0.75rem;
  color: var(--primary-red-hover);
  text-transform: uppercase;
  font-weight: 700;
}

.gallery-item:hover {
  border-color: var(--border-red-active);
  box-shadow: 0 8px 24px rgba(229, 9, 20, 0.15);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== TAB 2: SHOP PAGE ==================== */
.shop-hero {
  text-align: center;
  padding: 40px 0;
  margin-bottom: 30px;
}

.shop-hero h1 {
  font-size: 2.25rem;
  margin-bottom: 12px;
}

.shop-hero p {
  max-width: 600px;
  margin: 0 auto;
}

.shop-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
  margin-bottom: 30px;
}

.search-box {
  display: flex;
  width: 320px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-gray);
  border-radius: 8px;
  overflow: hidden;
}

.search-box input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 10px 16px;
  color: var(--text-white);
  font-size: 0.9rem;
}

.search-box input:focus {
  outline: none;
}

.search-box button {
  background: var(--primary-red);
  color: var(--text-white);
  border: none;
  padding: 0 16px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition-fast);
}

.search-box button:hover {
  background: var(--primary-red-hover);
}

.shop-filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.shop-filter-btn {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-gray);
  border: 1px solid var(--border-gray);
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.shop-filter-btn:hover {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.05);
}

.shop-filter-btn.active {
  background: var(--primary-red-dim);
  color: var(--primary-red-hover);
  border-color: var(--border-red);
}

/* Products Grid */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.prod-img-wrapper {
  aspect-ratio: 1/1;
  background: #18181b;
  border-bottom: 1px solid var(--border-gray);
  border-radius: 15px 15px 0 0;
  overflow: hidden;
  position: relative;
}

.prod-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.prod-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--border-gray);
  color: var(--text-white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
}

.product-card:hover .prod-img-wrapper img {
  transform: scale(1.03);
}

.prod-details {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.prod-details h3 {
  font-size: 1.15rem;
  color: var(--text-white);
  margin-bottom: 8px;
}

.prod-desc-trunc {
  font-size: 0.85rem;
  color: var(--text-gray);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
  flex: 1;
}

.prod-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.prod-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-red-hover);
}

.prod-view-btn {
  background: transparent;
  color: var(--text-white);
  border: 1px solid var(--border-gray);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.product-card:hover .prod-view-btn {
  background: var(--primary-red);
  border-color: var(--primary-red);
}

/* ==================== TAB 3: BLOG PAGE ==================== */
.blog-hero {
  text-align: center;
  padding: 40px 0;
  margin-bottom: 30px;
}

.blog-hero h1 {
  font-size: 2.25rem;
  margin-bottom: 12px;
}

.blog-hero p {
  max-width: 600px;
  margin: 0 auto;
}

.blog-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 30px;
}

/* Blog Sidebar */
.blog-sidebar {
  padding: 24px;
  align-self: start;
}

.blog-sidebar h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary-red-hover);
}

.blog-search-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-gray);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text-white);
  font-size: 0.85rem;
  margin-bottom: 20px;
  transition: var(--transition-fast);
}

.blog-search-input:focus {
  border-color: var(--primary-red);
  outline: none;
}

.blog-categories {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.blog-cat-btn {
  background: transparent;
  color: var(--text-gray);
  border: none;
  text-align: left;
  padding: 8px 12px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.blog-cat-btn:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-white);
}

.blog-cat-btn.active {
  background: var(--primary-red-dim);
  color: var(--primary-red-hover);
}

/* Blog Feed */
.blog-feed {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.blog-card {
  padding: 24px;
}

.blog-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.blog-card-header h3 {
  font-size: 1.35rem;
  color: var(--text-white);
  transition: var(--transition-fast);
  cursor: pointer;
}

.blog-card-header h3:hover {
  color: var(--primary-red-hover);
}

.blog-card-desc {
  font-size: 0.95rem;
  color: var(--text-gray);
  margin-bottom: 20px;
}

.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-gray);
  padding-top: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.blog-read-link {
  font-weight: 700;
  color: var(--primary-red-hover);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.blog-read-link:hover {
  text-decoration: underline;
}

/* ==================== TAB 4: ADMIN MANAGEMENT ==================== */

/* Admin Login Card */
.admin-login-card {
  max-width: 480px;
  margin: 60px auto;
  padding: 40px;
}

.login-header {
  text-align: center;
  margin-bottom: 30px;
}

.login-logo {
  height: 64px;
  width: 64px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border-gray);
  margin-bottom: 16px;
}

.login-header h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.login-header p {
  font-size: 0.85rem;
  margin-bottom: 0;
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-gray);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text-white);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-red);
  box-shadow: 0 0 10px rgba(229, 9, 20, 0.15);
  outline: none;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.error-msg {
  color: var(--primary-red-hover);
  background: rgba(229, 9, 20, 0.08);
  border: 1px solid rgba(229, 9, 20, 0.2);
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  margin-bottom: 20px;
  text-align: center;
}

.submit-btn {
  width: 100%;
  font-size: 1rem;
}

/* Dashboard Panel Layout */
.admin-dashboard-area {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.dashboard-header {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.admin-user-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.avatar-glow {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary-red) 0%, rgba(0,0,0,0.8) 100%);
  border: 2px solid var(--primary-red);
  box-shadow: 0 0 12px var(--primary-red-glow);
}

.admin-user-info h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.admin-user-info p {
  font-size: 0.8rem;
  margin: 0;
}

.dashboard-nav-sub {
  display: flex;
  gap: 8px;
}

.dash-tab-btn {
  background: transparent;
  color: var(--text-gray);
  border: 1px solid var(--border-gray);
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.dash-tab-btn:hover {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.02);
}

.dash-tab-btn.active {
  background: var(--primary-red);
  color: var(--text-white);
  border-color: var(--primary-red);
  box-shadow: 0 0 10px rgba(229, 9, 20, 0.25);
}

/* Dashboard subcontent panelling */
.dash-content-pane {
  display: none;
}

.dash-content-pane.active {
  display: block;
  animation: fadeIn 0.3s ease-out;
}

.dash-action-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.posts-table-wrapper {
  padding: 8px;
  overflow-x: auto;
}

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.dashboard-table th {
  padding: 16px;
  border-bottom: 1px solid var(--border-gray);
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-gray);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.dashboard-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border-gray);
  font-size: 0.95rem;
  color: var(--text-white);
}

.dashboard-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.dashboard-table tr:last-child td {
  border-bottom: none;
}

/* Action button items inside tables */
.btn-actions-cell {
  display: flex;
  gap: 8px;
}

.btn-table-edit {
  background: transparent;
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
  transition: var(--transition-fast);
}

.btn-table-edit:hover {
  background: #38bdf8;
  color: #000;
}

.btn-table-del {
  background: transparent;
  color: var(--primary-red-hover);
  border: 1px solid var(--border-red);
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
  transition: var(--transition-fast);
}

.btn-table-del:hover {
  background: var(--primary-red);
  color: var(--text-white);
}

/* Image preview inside dashboard table */
.table-prod-img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border-gray);
}

/* ==================== FOOTER SECTION ==================== */
.main-footer {
  background: #060607;
  border-top: 1px solid var(--border-gray);
  margin-top: 60px;
}

.footer-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 48px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-logo {
  height: 72px;
  width: 72px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border-gray);
}

.footer-brand h4 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 4px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--primary-red-hover);
  margin-bottom: 0;
  font-weight: 600;
}

.footer-info p {
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.footer-info p:last-child {
  margin-bottom: 0;
}

.footer-bottom {
  border-top: 1px solid var(--border-gray);
  padding: 24px 20px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

/* ==================== MODALS & LIGHTBOXES ==================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
  animation: modalBgFadeIn 0.3s ease-out;
}

.modal-overlay.hidden {
  display: none !important;
}

@keyframes modalBgFadeIn {
  from { background: rgba(0, 0, 0, 0); backdrop-filter: blur(0); }
  to { background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(8px); }
}

.modal-box {
  width: 100%;
  max-height: 90vh;
  position: relative;
  display: flex;
  flex-direction: column;
  animation: modalSlideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 30px;
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-gray);
  border: 1px solid var(--border-gray);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  z-index: 10;
}

.modal-close-btn:hover {
  background: var(--primary-red);
  color: var(--text-white);
  border-color: var(--primary-red);
}

.modal-scroll-content {
  overflow-y: auto;
  max-height: calc(90vh - 60px);
  padding-right: 8px;
}

/* Modal sizes */
.modal-large {
  max-width: 900px;
}

.modal-extra-large {
  max-width: 1100px;
}

.modal-medium {
  max-width: 600px;
}

/* ==================== BLOG READER STYLING ==================== */
.reader-header {
  margin-bottom: 24px;
}

.reader-header h1 {
  font-size: 2.25rem;
  margin-top: 8px;
  margin-bottom: 12px;
  color: var(--text-white);
}

.reader-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.red-line {
  border: none;
  height: 2px;
  background: linear-gradient(to right, var(--primary-red) 20%, var(--border-gray) 100%);
  margin-bottom: 30px;
}

/* RENDERED MARKDOWN AND DYNAMIC CONTENT DESIGN */
.reader-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-white);
}

.reader-body p {
  color: var(--text-gray);
  margin-bottom: 20px;
  font-weight: 300;
}

.reader-body h1, .reader-body h2, .reader-body h3 {
  color: var(--text-white);
  border-left: 3px solid var(--primary-red);
  padding-left: 12px;
  margin-top: 36px;
  margin-bottom: 16px;
}

.reader-body h1 { font-size: 1.75rem; }
.reader-body h2 { font-size: 1.45rem; }
.reader-body h3 { font-size: 1.2rem; }

.reader-body strong {
  color: var(--text-white);
  font-weight: 600;
}

.reader-body ul, .reader-body ol {
  margin-bottom: 20px;
  padding-left: 20px;
}

.reader-body li {
  color: var(--text-gray);
  margin-bottom: 8px;
  font-weight: 300;
}

.reader-body blockquote {
  background: rgba(229, 9, 20, 0.05);
  border-left: 4px solid var(--primary-red);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 24px;
}

.reader-body blockquote p {
  margin-bottom: 0;
  font-style: italic;
  color: var(--text-white);
}

/* Beautiful dynamic tables */
.markdown-table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  font-size: 0.95rem;
  border: 1px solid var(--border-gray);
  border-radius: 8px;
  overflow: hidden;
}

.markdown-table th, .markdown-table td {
  padding: 14px 18px;
  border: 1px solid var(--border-gray);
}

.markdown-table th {
  background-color: rgba(255, 255, 255, 0.03);
  font-weight: 700;
  color: var(--primary-red-hover);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.85rem;
}

.markdown-table td {
  color: var(--text-gray);
  font-weight: 300;
}

.markdown-table tr:nth-child(even) td {
  background-color: rgba(255, 255, 255, 0.01);
}

.markdown-table tr:hover td {
  background-color: rgba(255, 255, 255, 0.03);
  color: var(--text-white);
}

/* ==================== PRODUCT MODAL STYLING ==================== */
.product-modal-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.prod-modal-img {
  aspect-ratio: 1/1;
  background: #18181b;
  border-radius: 12px;
  border: 1px solid var(--border-gray);
  overflow: hidden;
}

.prod-modal-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prod-modal-details {
  display: flex;
  flex-direction: column;
}

.prod-modal-details h2 {
  font-size: 1.75rem;
  color: var(--text-white);
  margin-top: 10px;
  margin-bottom: 12px;
}

.prod-modal-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-red-hover);
  margin-bottom: 20px;
}

.prod-modal-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
  white-space: pre-line;
}

/* ==================== ADVANCED WORD RICH TEXT EDITOR ==================== */
.editor-header-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.editor-help-tip {
  background: rgba(56, 189, 248, 0.05);
  border: 1px solid rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 1.5;
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px;
  background: #161619;
  border: 1px solid var(--border-gray);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  align-items: center;
}

.tool-btn {
  background: transparent;
  color: var(--text-gray);
  border: 1px solid transparent;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
}

.tool-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-white);
  border-color: var(--border-gray);
}

.tool-btn.active {
  background: var(--primary-red-dim);
  color: var(--primary-red-hover);
  border-color: var(--border-red);
}

.tool-btn-accent {
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-fast);
  margin-left: auto; /* Push to the right */
}

.tool-btn-accent:hover {
  background: #38bdf8;
  color: #000;
}

.vertical-divider {
  width: 1px;
  height: 20px;
  background: var(--border-gray);
  margin: 0 6px;
}

/* Viewports */
.editor-viewport {
  width: 100%;
  min-height: 350px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-gray);
  border-radius: 0 0 8px 8px;
  padding: 20px;
  color: var(--text-white);
  font-size: 1rem;
  line-height: 1.7;
  overflow-y: auto;
  outline: none;
}

.editor-viewport:focus {
  border-color: var(--border-red-active);
}

.editor-viewport-html {
  width: 100%;
  min-height: 350px;
  background: #09090b;
  border: 1px solid var(--border-red-active);
  border-radius: 0 0 8px 8px;
  padding: 20px;
  color: #22c55e;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  resize: vertical;
  outline: none;
}

/* Custom styling inside contenteditable editor view */
.editor-viewport h1, .editor-viewport h2, .editor-viewport h3 {
  border-left: 3px solid var(--primary-red);
  padding-left: 10px;
  margin-top: 24px;
  margin-bottom: 12px;
}

.editor-viewport h1 { font-size: 1.5rem; }
.editor-viewport h2 { font-size: 1.3rem; }
.editor-viewport h3 { font-size: 1.15rem; }

.editor-viewport table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  border: 1px solid var(--border-gray);
}

.editor-viewport th, .editor-viewport td {
  padding: 10px 14px;
  border: 1px solid var(--border-gray);
}

.editor-viewport th {
  background: rgba(255, 255, 255, 0.02);
  color: var(--primary-red-hover);
  font-weight: 700;
}

.editor-viewport img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border-gray);
  margin: 12px 0;
}

/* Placeholder support for contenteditable */
.editor-viewport:empty:before {
  content: attr(placeholder);
  color: var(--text-muted);
  font-style: italic;
  cursor: text;
}

/* ==================== PRODUCT IMAGE UPLOADER DESIGN ==================== */
.image-upload-area {
  width: 100%;
  height: 180px;
  border: 2px dashed var(--border-gray);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  transition: var(--transition-smooth);
  background: rgba(0, 0, 0, 0.15);
}

.image-upload-area:hover {
  border-color: var(--border-red-active);
  background: rgba(229, 9, 20, 0.02);
}

.upload-prompt {
  text-align: center;
  padding: 20px;
}

.upload-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 8px;
}

.upload-details {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.upload-preview-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 2;
}

/* Multi-image preview grid */
.multi-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
  margin-top: 12px;
  max-height: 300px;
  overflow-y: auto;
  padding: 8px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-gray);
}
.multi-preview-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1;
  border: 2px solid rgba(255,255,255,0.08);
  transition: border-color 0.2s, transform 0.2s;
}
.multi-preview-item:hover {
  border-color: var(--accent-red);
  transform: scale(1.03);
}
.multi-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.multi-preview-item .remove-preview-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(220,38,38,0.85);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 14px;
  line-height: 22px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 3;
}
.multi-preview-item:hover .remove-preview-btn {
  opacity: 1;
}
.upload-count-badge {
  display: inline-block;
  background: var(--accent-red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 6px;
  vertical-align: middle;
}
.upload-count-badge:empty {
  display: none;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 30px;
  border-top: 1px solid var(--border-gray);
  padding-top: 20px;
}

.field-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Hidden class helper */
.hidden {
  display: none !important;
}

/* ==================== GALLERY LIGHTBOX MODAL STYLING ==================== */
#gallery-lightbox-modal .lightbox-modal-box {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  background: transparent;
  border: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: zoomIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(18, 18, 21, 0.95);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--border-gray);
  border-radius: 16px;
  padding: 16px;
  max-width: 800px;
  width: 100%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(229, 9, 20, 0.1);
}

#lightbox-img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 12px;
}

.lightbox-caption {
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 8px;
  flex-wrap: wrap;
  gap: 10px;
}

.lightbox-caption h3 {
  font-size: 1.15rem;
  color: var(--text-white);
  margin-bottom: 0;
  font-weight: 600;
}

.lightbox-caption .red-badge {
  margin-bottom: 0;
}

#gallery-lightbox-modal .modal-close-btn {
  position: absolute;
  top: -45px;
  right: 0;
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-gray);
  width: 36px;
  height: 36px;
  font-size: 1.25rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

#gallery-lightbox-modal .modal-close-btn:hover {
  background: var(--primary-red);
  border-color: var(--primary-red);
}

@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 768px) {
  #gallery-lightbox-modal .lightbox-modal-box {
    max-width: 95%;
  }
  #gallery-lightbox-modal .modal-close-btn {
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
  }
  #lightbox-img {
    max-height: 60vh;
  }
}

/* ==================== RESPONSIVE STYLES ==================== */
.mobile-nav-bar {
  display: none;
}

@media (max-width: 1024px) {
  .youtube-layout {
    grid-template-columns: 1fr;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }

  .blog-layout {
    grid-template-columns: 1fr;
  }
  
  .blog-sidebar {
    width: 100%;
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: 74px; /* Space for bottom floating bar */
  }

  .content-wrapper {
    padding-top: 85px;
    padding-bottom: 40px;
    padding-left: 16px;
    padding-right: 16px;
  }
  
  .main-header {
    height: 64px;
  }
  
  .header-container {
    padding: 0 16px;
  }
  
  .brand-logo {
    height: 38px;
    width: 38px;
  }

  .brand-name {
    font-size: 1.15rem; /* Keep name visible but slightly smaller */
  }

  /* Hide desktop top nav to save space */
  .nav-links {
    display: none !important;
  }

  /* MOBILE BOTTOM NAV BAR SYSTEM */
  .mobile-nav-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(10, 10, 12, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-gray);
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
    padding: 4px 6px;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.5);
  }

  .mobile-nav-btn {
    background: transparent;
    border: none;
    color: var(--text-gray);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    flex: 1;
    height: 100%;
    padding: 4px 2px;
    border-radius: 8px;
  }

  .mobile-nav-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: var(--transition-fast);
  }

  .mobile-nav-btn:hover {
    color: var(--text-white);
  }

  .mobile-nav-btn.active {
    color: var(--primary-red-hover);
  }

  .mobile-nav-btn.active .mobile-nav-icon {
    filter: drop-shadow(0 0 6px var(--primary-red-glow));
  }

  .user-status-bar {
    gap: 8px;
  }

  #user-status-text {
    padding: 4px 8px;
    font-size: 0.75rem;
  }

  /* YOUTUBE HORIZONTAL SCROLL PLAYLIST FOR MOBILE */
  .youtube-layout {
    gap: 16px;
  }
  
  .playlist-container {
    padding: 12px;
    max-height: none;
  }

  .playlist-scroll {
    flex-direction: row !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 12px;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  /* Custom scrollbar for horizontal mobile scrolling list */
  .playlist-scroll::-webkit-scrollbar {
    height: 4px;
  }

  .video-playlist-item {
    flex-shrink: 0;
    width: 220px;
    flex-direction: column;
    gap: 8px;
    padding: 8px;
    scroll-snap-align: start;
    background: rgba(255, 255, 255, 0.01);
  }

  .thumb-wrapper {
    width: 100% !important;
    height: 115px !important;
    border-radius: 6px;
  }

  .playlist-item-info {
    padding: 2px 4px;
  }

  .playlist-item-info h5 {
    font-size: 0.8rem;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .playlist-item-info p {
    font-size: 0.68rem;
  }

  /* GALLERY FILTER HORIZONTAL SCROLL */
  .gallery-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .gallery-filter-buttons {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    display: flex;
    gap: 6px;
  }

  .gallery-filter-buttons::-webkit-scrollbar {
    height: 3px;
  }

  .gallery-tab-btn {
    flex-shrink: 0;
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  /* BLOG CATEGORIES HORIZONTAL SCROLL */
  .blog-sidebar {
    padding: 16px;
  }

  .blog-categories {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 8px;
    padding-bottom: 6px;
    margin-top: 10px;
    width: 100%;
    -webkit-overflow-scrolling: touch;
  }

  .blog-categories::-webkit-scrollbar {
    height: 3px;
  }

  .blog-cat-btn {
    flex-shrink: 0;
    padding: 8px 14px;
    font-size: 0.8rem;
  }

  .shop-controls {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 16px;
  }

  .search-box {
    width: 100%;
  }

  .shop-filter-bar {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 6px;
    display: flex;
    gap: 6px;
    -webkit-overflow-scrolling: touch;
  }

  .shop-filter-bar::-webkit-scrollbar {
    height: 3px;
  }

  .shop-filter-btn {
    flex-shrink: 0;
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  /* MODALS AND TABLES */
  .product-modal-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .modal-box {
    width: 92%;
    padding: 20px;
    border-radius: 12px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }

  .footer-brand {
    flex-direction: column;
  }

  /* RICH-TEXT EDITOR OVERFLOW FIX */
  .editor-toolbar {
    padding: 6px;
    gap: 2px;
  }

  .tool-btn {
    min-width: 28px;
    height: 28px;
    padding: 4px 8px;
    font-size: 0.8rem;
  }
}

@media (max-width: 540px) {
  /* 2-COLUMN SHOP CARDS FOR MOBILE */
  .shop-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  .product-card {
    border-radius: 10px !important;
  }

  .prod-info-area {
    padding: 10px !important;
    gap: 6px !important;
  }

  .prod-title {
    font-size: 0.85rem !important;
    line-height: 1.3 !important;
  }

  .prod-price {
    font-size: 0.95rem !important;
  }

  .prod-btn {
    padding: 8px 12px !important;
    font-size: 0.8rem !important;
  }

  /* 2-COLUMN MASONRY IMAGES FOR MOBILE */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .gallery-item {
    border-radius: 8px !important;
  }

  .gallery-overlay {
    padding: 10px !important;
  }

  .gallery-overlay h4 {
    font-size: 0.8rem !important;
  }

  .gallery-overlay span {
    font-size: 0.65rem !important;
  }

  /* ABOUT STATISTICS */
  .about-stats {
    padding: 20px;
    gap: 16px;
  }

  .stat-num {
    font-size: 1.75rem;
  }

  .stat-lbl {
    font-size: 0.78rem;
  }
}

