/* =====================================================
   ROOT VARIABLES
   ===================================================== */

:root {
  --accent: rgba(255, 255, 255, 0.14);
  --background: #010101;
  --border: rgba(255, 255, 255, 0.12);
  --card: rgba(255, 255, 255, 0.08);
  --card-hover: rgba(255, 255, 255, 0.14);
  --foreground: #ffffff;
  --foreground-muted: rgba(255, 255, 255, 0.918);
  --foreground-soft: rgba(255, 255, 255, 0.56);
  --radius: 6px;
  --shadow-card: 0 18px 45px rgba(0, 0, 0, 0.42);
  --shadow-glow: 0 0 28px rgba(255, 255, 255, 0.12);
  --sidebar-width: 260px;
}

/* =====================================================
   GLOBAL RESET
   ===================================================== */

* {
  box-sizing: border-box;
}

body {
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.08), transparent 36%),
    var(--background);
  color: var(--foreground);
  display: flex;
  font-family: Arial, sans-serif;
  margin: 0;
  min-height: 100vh;
  padding: 0;
}

/* =====================================================
   SIDEBAR NAVIGATION
   ===================================================== */

.sidebar {
  background: #0b0b0b;
  border-right: 1px solid var(--border);
  height: 100vh;
  left: 0;
  overflow-y: auto;
  padding: 18px 12px;
  position: fixed;
  top: 0;
  width: var(--sidebar-width);
}

.sidebar h1 {
  color: var(--foreground);
  font-size: 14px;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
  text-align: center;
  text-transform: uppercase;
}

/* =====================================================
   CATEGORY LIST
   ===================================================== */

.category-list button {
  background: rgba(158, 156, 156, 0.548);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  color: var(--foreground-muted);
  cursor: pointer;
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin: 0 auto 9px;
  padding: 11px 12px;
  text-align: center;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    color 0.25s ease,
    transform 0.2s ease;
  width: 92%;
}

.category-list button:hover {
 background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.699), rgba(255, 255, 255, 0.085)),
    var(--card-hover);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: var(--shadow-card), var(--shadow-glow);
  transform: translateY(-4px) scale(1.02);

}

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

.catalog-eyebrow {
  color: var(--foreground-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.catalog-title {
  color: var(--foreground);
  font-size: clamp(35px, 4vw, 66px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.75;
  margin: 0;
}

.catalog-subtitle {
  color: var(--foreground-muted);
  font-size: 16px;
  line-height: 1.6;
  margin: 22px auto 8px;
  max-width: 620px;
}

/* =====================================================
   MAIN CONTENT
   ===================================================== */

.main-content {
  flex-grow: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  padding: 38px 30px;
  text-align: center;
  width: calc(100% - var(--sidebar-width));
}

.main-content h1,
.main-content h2 {
  color: var(--foreground);
  letter-spacing: -0.02em;
}

.grid-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  padding: 28px;
}

/* =====================================================
   PRODUCT CARDS
   ===================================================== */

.product-item {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.052)),
    var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  color: var(--foreground);
  cursor: pointer;
  font-size: 0.95rem;
  min-height: 220px;
  padding: 14px;
  position: relative;
  text-align: center;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease;
  width: 160px;
}

.product-item::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  content: "";
  height: 1px;
  left: 12px;
  opacity: 0.7;
  position: absolute;
  right: 12px;
  top: 0;
}

.product-item:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.075)),
    var(--card-hover);
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: var(--shadow-card), var(--shadow-glow);
  transform: translateY(-4px);
}

.product-item img {
  border-radius: var(--radius);
  display: block;
  height: auto;
  margin: 12px auto;
  max-width: 95%;
}

/* =====================================================
   BRAND CARDS
   ===================================================== */

.brand-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.449), rgba(255, 255, 255, 0.192)),
    var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  color: var(--foreground);
  cursor: pointer;
  margin: 1px;
  max-width: 100%;
  min-height: 118px;
  padding: 14px;
  position: relative;
  text-align: center;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease;
  width: 165px;
}

.brand-card::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.825), transparent);
  content: "";
  height: 1px;
  left: 14px;
  opacity: 0.85;
  position: absolute;
  right: 14px;
  top: 0;
}

.brand-card:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.699), rgba(255, 255, 255, 0.085)),
    var(--card-hover);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: var(--shadow-card), var(--shadow-glow);
  transform: translateY(-4px) scale(1.02);
}

.brand-card img {
  display: block;
  filter: saturate(0.25);
  margin: 10px auto;
  max-width: 82%;
  opacity: 0.92;
  transition: all 0.25s ease;
  background: #e4e2e2;
}

.brand-card:hover img {
  filter: saturate(1.75);
  opacity: 1;
  transform: scale(1.05);
  background: #ffffff;
}

/* =====================================================
   BRAND STACKING
   ===================================================== */

#brand-list {
  transition: all 0.6s ease-in-out;
}

#brand-list.stacked {
  align-items: center;
  display: flex;
  justify-content: center;
  padding: 40px;
}

#brand-list.transitioned {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

#brand-list.transitioning {
  opacity: 0;
  pointer-events: none;
  transform: scale(0);
}

.stacked-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.449), rgba(255, 255, 255, 0.192)),
    var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  color: var(--foreground);

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

  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;

  min-height: 118px;
  width: 165px;
  padding: 14px;

  position: relative;

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

.stacked-card::before {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.825),
    transparent
  );
  content: "";
  height: 1px;
  left: 14px;
  opacity: 0.85;
  position: absolute;
  right: 14px;
  top: 0;
}

.stacked-card:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.699), rgba(255, 255, 255, 0.085)),
    var(--card-hover);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: var(--shadow-card), var(--shadow-glow);
  transform: translateY(-4px) scale(1.02);
}

.stacked-card img,
.ss-logo {
  filter: brightness(0) invert(1);
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

/* =====================================================
   MODAL BASE
   ===================================================== */

.modal {
  align-items: center;
  background: rgba(1, 1, 1, 0.88);
  display: none;
  height: 100%;
  justify-content: center;
  left: 0;
  overflow: auto;
  padding: 40px 20px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.modal-content {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    #050505;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  color: var(--foreground);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  max-width: 900px;
  overflow-y: auto;
  padding: 24px;
  position: relative;
  text-align: center;
  width: 90%;
}

.modal-content p,
.modal-content ul {
  color: var(--foreground-muted);
}

.close-button {
  color: var(--foreground-muted);
  cursor: pointer;
  font-size: 26px;
  position: absolute;
  right: 18px;
  top: 12px;
}

.close-button:hover {
  color: var(--foreground);
}

/* =====================================================
   MODAL LAYOUT
   ===================================================== */

.modal-layout {
  display: flex;
  flex-direction: row;
  gap: 2rem;
}

.modal-image-container {
  align-items: center;
  display: flex;
  flex-direction: column;
}

.modal-details {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.image-layout {
  align-items: flex-start;
  display: flex;
  flex-direction: row;
  gap: 12px;
}

.thumbnail-column {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 10px;
  width: 70px;
}

.thumbnail-column img:hover {
  border-color: var(--foreground);
}

.main-image-frame img {
  border-radius: var(--radius);
  max-width: 80%;
  object-fit: contain;
  width: 100%;
}

/* =====================================================
   PRODUCT DESCRIPTION
   ===================================================== */

.product-description {
  color: var(--foreground-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-top: 1rem;
  padding: 0 10px;
  text-align: left;
  width: 100%;
}

/* =====================================================
   COLOR PALETTE
   ===================================================== */

.color-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0;
}

.color-swatch {
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  border: 2px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  display: inline-block;
  height: 30px;
  margin: 5px;
  transition: 0.25s ease;
  width: 30px;
}

.color-swatch:hover,
.selected-color {
  border-color: var(--foreground);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.16);
}

/* =====================================================
   SIZE SELECTION
   ===================================================== */

.size-selection {
  display: flex;
  gap: 10px;
  margin: 10px 0;
}

.size-btn,
.size-tag {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  cursor: pointer;
  display: inline-block;
  font-size: 0.9rem;
  margin: 4px 6px;
  padding: 8px 12px;
  transition: 0.25s ease;
}

.size-btn:hover,
.size-tag:hover,
.selected-size {
  background: var(--foreground);
  border-color: var(--foreground);
  color: var(--background);
}

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

.loader {
  animation: spin 1s linear infinite;
  border: 6px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  border-top: 6px solid var(--foreground);
  height: 30px;
  margin: 10px auto;
  width: 30px;
}

.spinner-wrapper {
  align-items: center;
  animation: fadeIn 0.3s ease-in-out;
  color: var(--foreground-muted);
  display: none;
  flex-direction: column;
  font-size: 1rem;
  justify-content: center;
  padding: 30px;
  text-align: center;
}

/* =====================================================
   SKELETON PLACEHOLDERS
   ===================================================== */

.placeholder-card,
.category-placeholder {
  animation: pulse 1.2s infinite ease-in-out;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
}

.placeholder-card {
  align-items: center;
  display: flex;
  flex-direction: column;
  height: 220px;
  padding: 10px;
}

.placeholder-image {
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  height: 120px;
  margin-bottom: 10px;
  width: 80%;
}

.placeholder-line {
  background: rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  height: 10px;
  margin: 4px 0;
  width: 70%;
}

.category-placeholder {
  height: 20px;
  margin: 6px auto;
  width: 90%;
}

/* =====================================================
   BACK TO HOME BUTTON
   ===================================================== */

#backToHomeBtn {
  background: var(--foreground) !important;
  border-radius: var(--radius) !important;
  bottom: 20px !important;
  color: var(--background) !important;
  cursor: pointer !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  padding: 12px 16px !important;
  position: fixed !important;
  right: 20px !important;
  text-decoration: none !important;
  transition: transform 0.2s ease, opacity 0.2s ease !important;
  z-index: 9999 !important;
}

#backToHomeBtn:hover {
  opacity: 0.84 !important;
  transform: translateY(-2px) !important;
}

/* =====================================================
   MOBILE NAVIGATION
   ===================================================== */

.menu-toggle {
  background: var(--foreground);
  border: none;
  color: var(--background);
  display: none;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 16px;
  text-align: left;
  width: 100%;
  z-index: 1001;
}

/* =====================================================
   ANIMATIONS
   ===================================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    background-color: rgba(255, 255, 255, 0.06);
  }

  50% {
    background-color: rgba(255, 255, 255, 0.14);
  }

  100% {
    background-color: rgba(255, 255, 255, 0.06);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* =====================================================
   RESPONSIVE: SMALL SCREENS
   ===================================================== */

@media screen and (max-width: 600px) {
  .product-item {
    width: 90%;
  }
}

/* =====================================================
   RESPONSIVE: MOBILE SIDEBAR
   ===================================================== */

@media screen and (max-width: 768px) {
  .main-content {
    margin-left: 0;
    padding-top: 74px;
    width: 100%;
  }

  .menu-toggle {
    display: block;
    left: 0;
    position: fixed;
    top: 0;
  }

  .modal-layout {
    flex-direction: column;
  }

  .sidebar {
    background: #0b0b0b;
    height: 100%;
    left: -220px;
    position: fixed;
    top: 0;
    transition: left 0.3s ease-in-out;
    width: 220px;
    z-index: 1000;
  }

  .sidebar.open {
    left: 0;
  }
}

