body {
  margin: 0;
  background: #000;
  color: white;
  font-family: Arial, sans-serif;
}

/* ================= MOBILE ZOOM PREVENTION ================= */
/* Prevent zoom on input focus for iOS Safari */
@media screen and (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="tel"],
  input[type="url"],
  input[type="search"],
  input[type="date"],
  input[type="datetime-local"],
  input[type="month"],
  input[type="week"],
  input[type="time"],
  textarea,
  select {
    font-size: 16px !important;
  }
}

/* ================= FADE IN ANIMATIONS ================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ================= LOADING ANIMATIONS ================= */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-overlay.active {
  opacity: 1;
  visibility: visible;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #333;
  border-top: 4px solid #ff2c2c;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-spinner.small {
  width: 24px;
  height: 24px;
  border-width: 3px;
}

.loading-text {
  margin-top: 20px;
  color: #fff;
  font-size: 16px;
  animation: pulse 1.5s ease-in-out infinite;
}

.loading-dots::after {
  content: '';
  animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
  0%, 20% { content: ''; }
  40% { content: '.'; }
  60% { content: '..'; }
  80%, 100% { content: '...'; }
}

/* Inline loading for content areas */
.content-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: #888;
}

.content-loading .loading-spinner {
  width: 32px;
  height: 32px;
}

.fade-in {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.fade-in-sidebar {
  opacity: 0;
  animation: fadeIn 0.4s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ================= TOP SHIPPING BAR ================= */

.top-bar {
  height: 25px;
  background: #111;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;

  display: flex;
  align-items: center;
  justify-content: center;

  position: relative;
  transition: height 0.4s ease, opacity 0.4s ease;
}

.close-bar {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);

  background: transparent;
  border: none;
  color: #d60000;
  font-size: 14px;
  cursor: pointer;
  transition: 0.25s ease;
}

.close-bar:hover {
  color: #f8f5f5;
  transform: translateY(-50%) scale(1.1);
}

/* ================= HEADER ================= */

header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 170px;
  padding: 0 8%;
  background: #000;
  z-index: 1000;
}

.nav-left a,
.nav-right a {
  margin: 0 22px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 1px;
  transition: color 0.25s ease;
  display: inline-block;
}

.nav-right {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 35%;
}

.nav-left {
  max-width: 35%;
}

.nav-left a:hover,
.nav-right a:hover {
  color: #ff2c2c;
}

.logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.logo img {
  height: 150px;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.03);
}

.nav-left a {
  margin: 0 15px;
}

/* ================= NAV DROPDOWN ================= */

.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown-toggle {
  cursor: pointer;
  white-space: nowrap;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 10px;
  min-width: 180px;
  z-index: 10000;
  flex-direction: column;
}

.nav-dropdown-menu::before {
  content: '';
  display: block;
  height: 10px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.nav-dropdown-menu > a {
  background: #111;
  border-left: 1px solid #333;
  border-right: 1px solid #333;
}

.nav-dropdown-menu > a:first-child {
  border-top: 1px solid #333;
  border-radius: 8px 8px 0 0;
}

.nav-dropdown-menu > a:last-child {
  border-bottom: 1px solid #333;
  border-radius: 0 0 8px 8px;
}

.nav-dropdown-menu a {
  display: block;
  padding: 12px 20px;
  margin: 0 !important;
  font-size: 16px !important;
  color: white;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 1px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: #ff2c2c;
  color: white;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  display: flex;
}

/* ================= LINE CLAMP (for compatibility) ================= */

.line-clamp {
  display: block;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 2.8em;
  line-height: 1.4em;
}

/* ================= TIMER BAR ================= */

.timer-bar {
  background: var(--timer-bg-color, #000000);
  padding: 1px 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timer-bar-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  width: 100%;
  max-width: 1200px;
}

.timer-bar-text {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timer-main-text {
  font-weight: bold;
  font-size: 24px;
}

.timer-sub-text {
  font-size: 14px;
  margin-top: 0px;
}

.timer-countdown-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timer-countdown {
  font-size: 32px;
  font-weight: bold;
  font-family: monospace;
  display: flex;
  gap: 4px;
  align-items: center;
}

.timer-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timer-value {
  font-size: 32px;
  font-weight: bold;
  color: #fff;
}

.timer-separator {
  font-size: 32px;
  font-weight: bold;
  color: #fff;
  margin: 0 1px;
}

.timer-label {
  font-size: 10px;
  color: #ccc;
  margin-top: 1px;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .timer-bar {
    padding: 5px 10px;
  }
  .timer-bar-content {
    flex-direction: column;
    gap: 8px;
  }
  .timer-main-text {
    font-size: 16px;
  }
  .timer-sub-text {
    font-size: 10px;
  }
  .timer-countdown {
    font-size: 20px;
  }
  .timer-value {
    font-size: 20px;
  }
  .timer-separator {
    font-size: 20px;
  }
  .timer-label {
    font-size: 7px;
  }
}

/* ================= CATEGORY SECTION ================= */

.categories {
  padding: 60px 8% 120px 8%;
  text-align: center;
}

/* Animated Red/White Gradient */

.gradient-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 3px;
  margin-bottom: 80px;

  background: linear-gradient(90deg, #ff2c2c, #ffffff, #ff2c2c);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;

  animation: gradientMove 4s linear infinite;
}

@keyframes gradientMove {
  0% { background-position: 200% center; }
  100% { background-position: 0% center; }
}

/* GRID */

.category-grid {
  display: flex;
  justify-content: center;
  gap: 75px;
}

/* ================= CARD ================= */

.category-card {
  width: 445px;
  border: 2px solid #3a3a3a;
  border-radius: 14px;
  overflow: hidden;
  background: #000;

  /* SUBTLE GLOW + DEPTH */
  box-shadow:
    0 0 0 rgba(255,44,44,0),
    0 10px 30px rgba(0,0,0,0.6);

  transition:
    transform 0.35s cubic-bezier(.16,1,.3,1),
    border-color 0.3s ease,
    box-shadow 0.35s ease;
}

.category-card:hover {
  border-color: #ff2c2c;
  transform: translateY(-10px);

  /* PREMIUM SOFT RED GLOW */
  box-shadow:
    0 0 35px rgba(255,44,44,0.15),
    0 25px 60px rgba(0,0,0,0.8);
}

/* ================= IMAGE BOX ================= */

.category-box {
  height: 445px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
  overflow: hidden;
}

.category-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;

  transition:
    transform 0.6s cubic-bezier(.16,1,.3,1),
    filter 0.4s ease;
}

/* Lower clothes image 5px */
.clothes-img img {
  transform: translateY(5px);
}

/* Slightly reduce fragrance image */
.category-card:nth-child(2) img {
  transform: scale(0.9);
}

/* Smooth zoom */
.category-card:hover .category-box img {
  transform: scale(1.06);
}

.category-card:nth-child(2):hover img {
  transform: scale(0.95);
}

/* Slight brightness lift on hover */
.category-card:hover .category-box img {
  filter: brightness(1.05);
}

/* ================= FOOTER ================= */

.category-footer {
  height: 137px;
  background: #111;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  transition: background 0.3s ease;
}

.category-card:hover .category-footer {
  background: #151515;
}

.category-footer h3 {
  font-size: 20px;
  margin: 0 0 15px 0;
  letter-spacing: 1px;
}

/* ================= BUTTON ================= */

.btn {
  width: 160px;
  text-align: center;
  padding: 14px 0;
  background: #ff2c2c;
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 15px;
  letter-spacing: 1px;
  border: 2px solid #ff2c2c;
  border-radius: 8px;

  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.btn:hover {
  background: #ff2c2c;
  border-color: #ff2c2c;
  box-shadow: 0 0 20px rgba(255,44,44,0.4);
  transform: translateY(-4px);
}

.btn:active {
  transform: translateY(-1px);
}

/* ===============================
   ADMIN PANEL
================================ */

.admin-wrapper {
  display: flex;
  min-height: 100vh;
  background: #0b0b0b;
  color: white;
  font-family: Arial, sans-serif;
}

/* SIDEBAR */

.sidebar {
  width: 240px;
  background: #111;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #222;
}

.sidebar h2 {
  margin-bottom: 40px;
  text-align: center;
  letter-spacing: 3px;
}

.sidebar button {
  background: transparent;
  border: 1px solid #222;
  color: #ccc;
  padding: 12px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: 0.3s ease;
  text-align: left;
}

.sidebar button:hover {
  background: #ff2c2c;
  color: white;
}

.sidebar button.active {
  background: #ff2c2c;
  color: white;
  border-color: #ff2c2c;
}

/* MAIN */

.admin-main {
  flex: 1;
  padding: 50px;
}

/* CARDS */

.card,
.metric {
  background: #111;
  border: 1px solid #222;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 10px;
}

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

/* INPUTS */

.admin-input {
  width: 100%;
  padding: 10px;
  background: #0b0b0b;
  border: 1px solid #333;
  color: white;
  border-radius: 6px;
  font-size: 16px;
}

/* BUTTONS */

.admin-main button {
  padding: 10px 18px;
  background: #222;
  border: 1px solid #ff2c2c;
  color: white;
  cursor: pointer;
  transition: 0.3s ease;
  border-radius: 6px;
}

.admin-main button:hover {
  background: #ff2c2c;
}

/* HOME BUTTON */

.home-btn {
  margin-top: auto;
  background: #222 !important;
  border: 1px solid #555 !important;
}

.home-btn:hover {
  background: #ff2c2c !important;
}

/* ==============================
   FOOTER
============================== */

footer {
  background: #0a0a0a;
  padding: 60px 8% 30px;
  border-top: 1px solid #1f1f1f;
  margin-top: 80px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.footer-section h3 {
  font-size: 28px;
  font-weight: 800;
  color: #ff2c2c;
  margin-bottom: 15px;
  letter-spacing: 2px;
}

.footer-section h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #fff;
}

.footer-section p {
  color: #888;
  line-height: 1.6;
  font-size: 14px;
}

.footer-section a {
  display: block;
  color: #888;
  text-decoration: none;
  margin-bottom: 12px;
  font-size: 14px;
  transition: color .2s ease;
}

.footer-section a:hover {
  color: #ff2c2c;
}

.footer-bottom {
  text-align: center;
  padding-top: 40px;
  margin-top: 40px;
  border-top: 1px solid #1f1f1f;
}

.footer-bottom p {
  color: #666;
  font-size: 14px;
}

/* ==============================
   HERO BANNER STYLES
   ============================== */

.hero-banner {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.hero-banner:empty {
  height: 0;
  display: none;
}

.hero-banner-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
  width: 90%;
  max-width: 800px;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  margin: 0 0 15px 0;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.hero-subtitle {
  font-size: 20px;
  margin: 0 0 25px 0;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.hero-btn {
  display: inline-block;
  padding: 15px 40px;
  background: #ff2c2c;
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  border-radius: 4px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-btn:hover {
  background: #cc0000;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(255, 44, 44, 0.4);
}

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 15px 20px;
  font-size: 24px;
  cursor: pointer;
  z-index: 20;
  transition: all 0.3s ease;
}

.hero-nav:hover {
  background: rgba(255, 44, 44, 0.8);
}

.hero-prev {
  left: 20px;
}

.hero-next {
  right: 20px;
}

.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 20;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-dot.active {
  background: #ff2c2c;
  transform: scale(1.2);
}

/* Custom Home Sections */
.custom-home-section {
  padding: 60px 60px 100px 60px;
  text-align: center;
}

.custom-section-content {
  max-width: 1200px;
  margin: 0 auto;
}

/* ==============================
   MOBILE RESPONSIVE STYLES
   ============================== */

/* Mobile Navigation Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  z-index: 1000;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: white;
  transition: 0.3s ease;
}

/* Mobile Sidebar Styles */
.mobile-sidebar {
  display: none;
}

@media screen and (max-width: 1024px) {
  .mobile-sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: #000;
    z-index: 2000;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
  }
  
  .mobile-sidebar.active {
    left: 0;
  }
  
  .sidebar-overlay {
    display: none;
    z-index: 1800;
  }
  
  .sidebar-overlay.active {
    display: block;
    pointer-events: auto;
  }
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #333;
}

.sidebar-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.sidebar-content a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  padding: 10px 0;
  transition: color 0.2s;
}

/* Mobile Header Actions */
.mobile-header-actions {
  display: none;
}

/* Nav Toggle (Hamburger) */
.nav-toggle {
  display: none;
}

@media screen and (max-width: 1024px) {
  /* Mobile header container */
  header, #header-container {
    height: auto;
    min-height: 60px;
    padding: 10px 50px;
    flex-wrap: wrap;
    position: relative;
    justify-content: center;
  }

  .nav-left, .nav-right {
    display: none;
  }

  /* Mobile header logo */
  .logo {
    position: relative;
    left: auto;
    transform: none;
    order: 0;
    width: auto;
    text-align: center;
    margin-bottom: 0;
  }

  .logo img {
    height: 100px;
  }

  .mobile-header-actions {
    display: flex !important;
    position: absolute;
    top: 50%;
    right: -25px;
    transform: translateY(-50%);
    z-index: 1001;
    gap: 10px;
  }
   
  .mobile-cart-btn, .mobile-profile-btn {
    font-size: 24px;
    text-decoration: none;
    background: #000;
    padding: 8px;
    border-radius: 5px;
  }
   
  .nav-toggle {
    display: flex !important;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    position: absolute;
    top: 50%;
    left: -25px;
    transform: translateY(-50%);
    z-index: 1000;
    background: #000;
    border-radius: 5px;
  }
   
  .nav-toggle span {
    width: 20px;
    height: 2px;
    background: white;
  }
}

.sidebar-content a:hover {
  color: #ff2c2c;
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 999;
  display: none;
}

.sidebar-overlay.active {
  display: block;
}

/* Base Mobile Styles */
@media screen and (max-width: 1024px) {
  /* Header */
  header {
    height: auto;
    min-height: 80px;
    padding: 15px 50px;
    flex-wrap: wrap;
    position: relative;
    justify-content: center !important;
  }

  .nav-left, .nav-right {
    display: none;
  }

  .logo {
    position: relative !important;
    left: auto !important;
    transform: none !important;
    order: 0;
    width: auto;
    margin: 0;
  }

  .logo img {
    height: 70px;
  }
  
  .logo {
    padding: 0;
  }

  /* Hide nav-left in mobile (but not the logo) */
  header > nav:first-child {
    display: none;
  }

  /* Categories */
  .categories {
    padding: 40px 5% 80px 5%;
  }

  .gradient-title {
    font-size: 28px;
    margin-bottom: 50px;
  }

  .category-grid {
    flex-direction: column;
    gap: 40px;
  }

  .category-card {
    width: 100%;
    max-width: 445px;
    margin: 0 auto;
  }

  .category-box {
    height: 450px;
  }

  /* Footer */
  footer {
    padding: 40px 5% 20px;
  }

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

  .footer-section {
    text-align: center;
  }

  .footer-section a {
    display: inline-block;
    margin: 5px 10px;
  }

  .footer-section h3 {
    font-size: 22px;
  }

  /* Admin Panel */
  .admin-wrapper {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    padding: 20px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    border-right: none;
    border-bottom: 1px solid #222;
  }

  .sidebar h2 {
    width: 100%;
    margin-bottom: 20px;
  }

  .sidebar button {
    width: auto;
    margin: 5px;
    padding: 10px 15px;
    font-size: 12px;
  }

  .home-btn {
    margin-top: 0;
    margin-left: auto;
  }

  .admin-main {
    padding: 20px;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }
}

/* Tablet Styles */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .category-card {
    width: 90%;
  }

  .category-box {
    height: 450px;
  }
}

/* Small Mobile */
@media screen and (max-width: 480px) {
  .top-bar {
    font-size: 11px;
    padding: 0 30px 0 10px;
  }

  .close-bar {
    right: 10px;
    font-size: 12px;
  }

  .logo img {
    height: 70px;
  }

  .gradient-title {
    font-size: 22px;
    letter-spacing: 1px;
  }

  .category-box {
    height: 450px;
  }

  .category-footer h3 {
    font-size: 16px;
  }

  .btn {
    width: 140px;
    padding: 12px 0;
    font-size: 13px;
  }

  .announcement-track {
    font-size: 13px;
  }

  .admin-main {
    padding: 15px;
  }

  .card, .metric {
    padding: 15px;
  }

  .modal-content {
    width: 90%;
    padding: 20px;
    margin: 10px;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}

/* Landscape Mobile */
@media screen and (max-width: 768px) and (orientation: landscape) {
  .nav-left, .nav-right {
    overflow-y: auto;
    justify-content: flex-start;
    padding-top: 40px;
  }

  .nav-left a, .nav-right a {
    margin: 10px 0;
    font-size: 18px;
  }

  .category-grid {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .category-card {
    width: 45%;
    min-width: 280px;
  }

  .category-box {
    height: 336px !important;
    width: 336px;
  }

  .category-footer {
    height: 130px !important;
    width: 336px;
  }
}

/* Touch Device Improvements */
@media (hover: none) and (pointer: coarse) {
  .category-card:hover {
    transform: none;
    border-color: #3a3a3a;
    box-shadow: 0 0 0 rgba(255,44,44,0), 0 10px 30px rgba(0,0,0,0.6);
  }

  .category-card:active {
    transform: scale(0.98);
    border-color: #ff2c2c;
  }

  .btn:hover {
    background: #000;
    border-color: #444;
    box-shadow: none;
    transform: none;
  }

  .btn:active {
    background: #ff2c2c;
    border-color: #ff2c2c;
    box-shadow: 0 0 20px rgba(255,44,44,0.4);
    transform: translateY(-2px);
  }

  .sidebar button:hover {
    background: transparent;
    border-color: #222;
    color: #ccc;
  }

  .sidebar button:active {
    background: #ff2c2c;
    color: white;
  }

  .admin-main button:hover {
    background: #222;
  }

  .admin-main button:active {
    background: #ff2c2c;
  }
}

/* ==============================
   SKELETON LOADERS
   ============================== */

/* Skeleton base animation */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Skeleton base styles */
.skeleton {
  background: linear-gradient(
    90deg,
    #1a1a1a 25%,
    #2a2a2a 50%,
    #1a1a1a 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

/* Skeleton text - single line */
.skeleton-text {
  height: 16px;
  width: 100%;
}

/* Skeleton text - multi-line */
.skeleton-text-lg {
  height: 24px;
  width: 100%;
}

.skeleton-text-sm {
  height: 12px;
  width: 80%;
}

/* Skeleton image/box */
.skeleton-box {
  width: 100%;
  aspect-ratio: 1;
}

.skeleton-rect {
  width: 100%;
  height: 100%;
}

/* Skeleton circle */
.skeleton-circle {
  border-radius: 50%;
}

/* Skeleton button */
.skeleton-button {
  height: 44px;
  width: 140px;
  border-radius: 8px;
}

/* Skeleton card */
.skeleton-card {
  background: #111;
  border: 1px solid #222;
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
}

.skeleton-card-image {
  width: 100%;
  height: 200px;
}

.skeleton-card-body {
  padding: 16px;
}

.skeleton-card-title {
  height: 20px;
  width: 70%;
  margin-bottom: 12px;
}

.skeleton-card-text {
  height: 14px;
  width: 90%;
  margin-bottom: 8px;
}

.skeleton-card-price {
  height: 18px;
  width: 30%;
  margin-top: 12px;
}

/* Skeleton product grid */
.skeleton-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.skeleton-grid .skeleton-card {
  width: 340px;
  height: 380px;
}

/* Skeleton categories */
.skeleton-categories {
  display: flex;
  justify-content: center;
  gap: 75px;
}

.skeleton-category-card {
  width: 445px;
  border: 2px solid #222;
  border-radius: 14px;
  overflow: hidden;
}

.skeleton-category-image {
  height: 445px;
  width: 100%;
}

.skeleton-category-footer {
  height: 137px;
  background: #111;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Skeleton hero banner */
.skeleton-hero {
  width: 100%;
  height: 500px;
  background: #111;
}

/* Skeleton product detail */
.skeleton-product-detail {
  display: flex;
  gap: 60px;
  padding: 60px 8%;
  max-width: 1400px;
  margin: 0 auto;
}

.skeleton-product-image {
  width: 500px;
  height: 600px;
  border-radius: 12px;
}

.skeleton-product-info {
  flex: 1;
}

.skeleton-product-title {
  height: 36px;
  width: 80%;
  margin-bottom: 20px;
}

.skeleton-product-price {
  height: 32px;
  width: 25%;
  margin-bottom: 24px;
}

.skeleton-product-desc {
  height: 14px;
  width: 100%;
  margin-bottom: 10px;
}

.skeleton-product-desc-lg {
  height: 14px;
  width: 95%;
  margin-bottom: 10px;
}

.skeleton-size-options {
  display: flex;
  gap: 12px;
  margin: 24px 0;
}

.skeleton-size {
  width: 60px;
  height: 44px;
  border-radius: 8px;
}

.skeleton-quantity {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
}

.skeleton-qty-btn {
  width: 44px;
  height: 44px;
  border-radius: 8px;
}

.skeleton-qty-display {
  width: 60px;
  height: 44px;
}

/* Skeleton cart item */
.skeleton-cart-item {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: #111;
  border-radius: 12px;
  margin-bottom: 16px;
}

.skeleton-cart-image {
  width: 120px;
  height: 150px;
  border-radius: 8px;
}

.skeleton-cart-details {
  flex: 1;
}

.skeleton-cart-name {
  height: 20px;
  width: 60%;
  margin-bottom: 12px;
}

.skeleton-cart-variant {
  height: 14px;
  width: 40%;
  margin-bottom: 8px;
}

.skeleton-cart-price {
  height: 18px;
  width: 20%;
  margin-top: 16px;
}

/* Skeleton checkout */
.skeleton-checkout-section {
  max-width: 600px;
  margin: 60px auto;
  padding: 0 24px;
}

.skeleton-checkout-title {
  height: 28px;
  width: 40%;
  margin-bottom: 24px;
}

.skeleton-checkout-card {
  background: #111;
  border: 1px solid #222;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.skeleton-checkout-row {
  height: 16px;
  width: 100%;
  margin-bottom: 12px;
}

.skeleton-checkout-total {
  height: 24px;
  width: 30%;
  margin-top: 16px;
}

/* Skeleton form */
.skeleton-form-group {
  margin-bottom: 20px;
}

.skeleton-form-label {
  height: 14px;
  width: 30%;
  margin-bottom: 8px;
}

.skeleton-form-input {
  height: 48px;
  width: 100%;
  border-radius: 8px;
}

/* Skeleton profile */
.skeleton-profile-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 40px;
  background: #111;
  border-radius: 12px;
  margin-bottom: 24px;
}

.skeleton-profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
}

.skeleton-profile-name {
  height: 28px;
  width: 40%;
  margin-bottom: 8px;
}

.skeleton-profile-email {
  height: 16px;
  width: 60%;
}

.skeleton-profile-section {
  background: #111;
  border: 1px solid #222;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.skeleton-profile-section-title {
  height: 20px;
  width: 30%;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #222;
}

/* Skeleton auth form */
.skeleton-auth-container {
  max-width: 420px;
  margin: 80px auto;
  padding: 40px;
  background: #111;
  border-radius: 12px;
}

.skeleton-auth-title {
  height: 32px;
  width: 50%;
  margin: 0 auto 32px;
}

/* Fade in animation for content loaded via skeleton */
.content-loaded {
  opacity: 0;
  animation: contentFadeIn 0.5s ease forwards;
}

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

/* Skeleton container - shows while loading, hidden when content loads */
.skeleton-container {
  display: block;
}

.skeleton-container.hidden {
  display: none;
}

/* Loading page state - body starts transparent */
body.skeleton-loading {
  opacity: 0;
}

body.skeleton-loading .skeleton-container {
  display: block;
}

body.skeleton-loaded {
  opacity: 1;
  transition: opacity 0.4s ease;
}

body.skeleton-loaded .skeleton-container {
  display: none;
}

/* Mobile responsive skeleton */
@media screen and (max-width: 768px) {
  .skeleton-grid .skeleton-card {
    width: 280px;
    height: 320px;
  }
  
  .skeleton-categories {
    flex-direction: column;
    gap: 40px;
  }
  
  .skeleton-category-card {
    width: 100%;
    max-width: 445px;
    margin: 0 auto;
  }
  
  .skeleton-product-detail {
    flex-direction: column;
    padding: 20px;
    gap: 30px;
  }
  
  .skeleton-product-image {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
  }
}