body {
  margin: 0;
  background: #000;
  color: white;
  font-family: Arial, sans-serif;
}

/* ================= 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;
}

.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;
}

.nav-left a:hover,
.nav-right a:hover {
  color: #ff2c2c;
}

.logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.logo img {
  height: 155px;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.03);
}

/* ================= ANNOUNCEMENT ================= */

.announcement {
  background: #ff2c2c;
  overflow: hidden;
  white-space: nowrap;
  height: 45px;
  display: flex;
  align-items: center;
}

.announcement-track {
  display: inline-block;
  animation: scroll 30s linear infinite;
  font-weight: 600;
  font-size: 16px;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ================= CATEGORY SECTION ================= */

.categories {
  padding: 110px 8% 120px 8%;
  text-align: center;
}

/* Animated Red/White Gradient */

.gradient-title {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: 3px;
  margin-bottom: 80px;

  background: linear-gradient(90deg, #ff2c2c, #ffffff, #ff2c2c);
  background-size: 200% auto;
  -webkit-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: cover;

  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: #000;
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 15px;
  letter-spacing: 1px;
  border: 2px solid #444;
  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;
}

/* 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;
}

/* ==============================
   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: 25px;
  height: 3px;
  background: white;
  transition: 0.3s ease;
}

/* Mobile Sidebar Styles */
.mobile-sidebar {
  position: fixed;
  top: 0;
  left: -300px;
  width: 300px;
  height: 100vh;
  background: #000;
  z-index: 1001;
  transition: left 0.3s ease;
  display: flex;
  flex-direction: column;
}

.mobile-sidebar.active {
  left: 0;
}

.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;
}

.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: 1000;
  display: none;
}

.sidebar-overlay.active {
  display: block;
}

/* Base Mobile Styles */
@media screen and (max-width: 1024px) {
  /* Header */
  header {
    height: auto;
    min-height: 70px;
    padding: 15px 20px;
    flex-wrap: wrap;
    justify-content: space-between !important;
  }

  .nav-left {
    display: none;
  }

  .nav-toggle {
    display: flex;
    position: relative;
    left: 0;
  }

  .logo {
    position: relative !important;
    left: auto !important;
    transform: none !important;
    order: 0;
    width: auto;
    margin: 0;
  }

  .logo img {
    height: 50px;
  }

  /* Hide first nav div (left menu) in mobile */
  header > div:first-child {
    display: none;
  }

  /* Categories */
  .categories {
    padding: 60px 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: 280px;
  }

  /* Footer */
  footer {
    padding: 40px 5% 20px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .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: 350px;
  }
}

/* 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: 60px;
  }

  .gradient-title {
    font-size: 22px;
    letter-spacing: 1px;
  }

  .category-box {
    height: 220px;
  }

  .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: 200px;
  }
}

/* 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;
  }
}