/* =========================
   SPOOKY SHOP THEME — RECREATED + POLISHED
   Keeps your existing class/id names and image paths
========================= */
@import url('https://fonts.googleapis.com/css2?family=Creepster&family=Nosifer&display=swap');

:root {
  --bg: #030000;
  --surface: rgba(12, 10, 10, 0.82);
  --surface-strong: rgba(8, 8, 8, 0.94);
  --surface-soft: rgba(255, 255, 255, 0.045);

  --text: #fff7f7;
  --text-muted: #cfc2c2;
  --text-dim: #918787;

  --red: #d41414;
  --red-bright: #ff2b2b;
  --red-dark: #700000;
  --cyan: #00f0ff;
  --cyan-soft: rgba(0, 240, 255, 0.2);

  --border-red: rgba(255, 43, 43, 0.24);
  --border-cyan: rgba(0, 240, 255, 0.2);

  --shadow-red: 0 0 28px rgba(255, 0, 0, 0.28);
  --shadow-cyan: 0 0 24px rgba(0, 240, 255, 0.18);
  --shadow-deep: 0 18px 55px rgba(0, 0, 0, 0.72);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;

  --transition: 180ms ease;
}

/* =========================
   RESET / BASE
========================= */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;

  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);

  background:
    radial-gradient(circle at 50% 0%, rgba(120, 0, 0, 0.28), transparent 35%),
    linear-gradient(rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.72)),
    url('/Images/Wall.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--text);
  text-decoration: none;
  transition: color var(--transition), transform var(--transition), background var(--transition);
}

a:hover {
  color: var(--cyan);
}

button,
input {
  font: inherit;
}

button {
  font-family: 'Nosifer', cursive;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: 'Creepster', cursive;
  color: var(--red-bright);
  letter-spacing: 1.5px;
  text-shadow: 0 0 18px rgba(255, 0, 0, 0.5);
}

p {
  color: var(--text-muted);
  line-height: 1.65;
  opacity: 0.94;
  margin: 0 0 20px;
}

.hidden {
  display: none !important;
}

main {
  flex: 1;
  width: 100%;
  padding: 120px 20px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.container {
  width: min(100%, 680px);
}

/* =========================
   HEADER
========================= */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;

  background:
    linear-gradient(rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.72)),
    url('/Images/Attic.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  border-bottom: 1px solid var(--border-red);
  box-shadow: var(--shadow-red), 0 8px 30px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
}

.header-container {
  width: min(100%, 1240px);
  margin: 0 auto;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.logo img {
  height: 72px;
  filter: drop-shadow(0 0 12px rgba(0, 240, 255, 0.45));
  transition: transform var(--transition), filter var(--transition);
}

.logo img:hover {
  transform: scale(1.04) rotate(-1deg);
  filter: drop-shadow(0 0 18px rgba(255, 43, 43, 0.6));
}

.header-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-links a,
.shop-btn {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.header-links a {
  position: relative;
  padding: 8px 0;
}

.header-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red-bright), var(--cyan));
  transition: width var(--transition);
}

.header-links a:hover::after {
  width: 100%;
}

/* =========================
   SHOP DROPDOWN
========================= */
.shop-item {
  position: relative;
}

#shopNavContainer {
  display: flex;
  align-items: center;
  gap: 20px;
}

.shop-btn {
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  background: transparent;
  cursor: pointer;
  transition: color var(--transition), border var(--transition), background var(--transition), transform var(--transition);
}

.shop-btn:hover,
.shop-item:hover .shop-btn {
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.08);
  border-color: var(--border-cyan);
}

.shop-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 180px;
  padding: 8px;

  display: flex;
  flex-direction: column;
  gap: 4px;

  background: var(--surface-strong);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-deep), var(--shadow-cyan);

  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;

  z-index: 9999;
}

/* invisible hover bridge so menu doesn't close */
.shop-dropdown::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  width: 100%;
  height: 18px;
}

.shop-dropdown.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.shop-item:hover .shop-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.shop-dropdown a {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

.shop-dropdown a:hover {
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.1);
}

/* =========================
   PROFILE MENU
========================= */
.profile-menu {
  position: relative;
  display: flex;
  align-items: center;
}

#profileIcon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  border: 1px solid var(--border-cyan);
  box-shadow: var(--shadow-cyan);
  transition: transform var(--transition), box-shadow var(--transition);
}

#profileIcon:hover {
  transform: scale(1.08);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.45);
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 220px;
  padding: 10px;

  display: flex;
  flex-direction: column;
  gap: 6px;

  background: var(--surface-strong);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-deep), var(--shadow-cyan);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: translateY(-6px);

  transition:
    opacity 160ms ease,
    transform 160ms ease,
    visibility 160ms ease;

  z-index: 9999;
}

.user-dropdown::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  width: 100%;
  height: 18px;
}

.user-dropdown.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.profile-menu:hover .user-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.user-dropdown div {
  color: var(--cyan);
  font-size: 14px;
  padding: 8px 10px;
}

.user-dropdown a,
.user-dropdown button {
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.user-dropdown a:hover,
.user-dropdown button:hover {
  background: rgba(0, 240, 255, 0.12);
  color: var(--cyan);
  transform: translateX(3px);
}

#logoutBtn {
  background: linear-gradient(90deg, var(--red-dark), #9c0000);
  color: white;
}

#logoutBtn:hover {
  background: linear-gradient(90deg, #9c0000, var(--red-bright));
  color: white;
}

/* =========================
   PRODUCT PAGE
========================= */
.product-page {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 36px 20px 56px;
}

.product-header {
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}

.product-title-top {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 700;
  line-height: 0.95;
}

.product-content {
  display: grid;
  grid-template-columns: minmax(300px, 520px) minmax(320px, 1fr);
  gap: 36px;
  align-items: start;
}

.product-image-section,
.product-info-section {
  min-width: 0;
}

.product-image-section {
  display: flex;
  justify-content: center;
}
textarea {
  width: 100%;
  min-height: 90px;
  resize: vertical;
  padding: 10px;
  font-family: inherit;
  font-size: 1rem;
  white-space: pre-wrap;
}
.product-description,
.product-components,
.product-materials,
.product-size {
  white-space: pre-wrap;
}
.image-frame {
  width: 100%;
  max-width: 520px;
  padding: 12px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-cyan);
  background: linear-gradient(145deg, rgba(255, 0, 0, 0.08), rgba(0, 240, 255, 0.045));
  box-shadow: var(--shadow-deep), var(--shadow-cyan);
}

.product-main-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-md);
  transition: transform 260ms ease, filter 260ms ease;
}

.product-main-image:hover {
  transform: scale(1.018);
  filter: contrast(1.08) saturate(1.08);
}

.product-info-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-page .product-price,
.product-price {
  font-size: 30px;
  font-weight: 900;
  color: var(--red-bright);
  text-shadow: 0 0 14px rgba(255, 0, 0, 0.45);
}

.purchase-box {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  border: 1px solid var(--border-cyan);
  box-shadow: inset 0 0 24px rgba(0, 240, 255, 0.04);
}

.quantity-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quantity-box input {
  width: 72px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-cyan);
  background: rgba(0, 0, 0, 0.55);
  color: var(--text);
  outline: none;
}

.quantity-box input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.24);
}

.buy-button,
.view-product-btn,
.modal-content button {
  border: 0;
  border-radius: var(--radius-md);
  background: linear-gradient(100deg, var(--red-bright), #8c0000 46%, var(--cyan));
  color: white;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(255, 0, 0, 0.22), 0 0 18px rgba(0, 240, 255, 0.12);
  transition: transform var(--transition), filter var(--transition), box-shadow var(--transition);
}

.buy-button {
  min-width: 170px;
  padding: 14px 22px;
}

.buy-button:hover,
.view-product-btn:hover,
.modal-content button:hover {
  transform: translateY(-2px) scale(1.015);
  filter: brightness(1.12);
  box-shadow: 0 14px 30px rgba(255, 0, 0, 0.3), 0 0 24px rgba(0, 240, 255, 0.2);
}

/* =========================
   PRODUCT DETAILS / TABS
========================= */
.tabs {
  width: 100%;
  display: flex;
  gap: 8px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
}

.modal-tabs,
.tab-buttons {
  display: flex;
  gap: 8px;
}

.tab-buttons {
  width: 100%;
  padding: 6px;
  background: rgba(0, 0, 0, 0.48);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  border-bottom: 0;
}

.tab-btn,
.tabs button {
  flex: 1;
  padding: 11px 12px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  font-weight: 800;
  cursor: pointer;
  transition: color var(--transition), background var(--transition), box-shadow var(--transition);
}

.tab-btn:hover,
.tabs button:hover {
  color: var(--cyan);
}

.tab-btn.active,
.tabs button.active {
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.12);
  box-shadow: inset 0 0 18px rgba(0, 240, 255, 0.06);
}

.tab-content {
  display: none;
  min-height: 190px;
  padding: 22px;
  color: var(--text-muted);
  line-height: 1.75;
  background: rgba(0, 0, 0, 0.48);
  border: 1px solid var(--border-cyan);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: inset 0 0 28px rgba(0, 240, 255, 0.035);
}

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

.tab-content p:last-child,
.tab-content ul:last-child,
.tab-content ol:last-child {
  margin-bottom: 0;
}

.tab-content ul,
.tab-content ol {
  margin: 0;
  padding-left: 20px;
}

.tab-content li {
  margin-bottom: 8px;
  color: var(--text-muted);
}

.tab-content strong,
.tab-content b {
  color: var(--text);
}

.spec-grid,
.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.spec-row,
.spec-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.spec-row span:first-child,
.spec-item span:first-child {
  color: var(--text-dim);
  font-weight: 600;
}

.spec-row span:last-child,
.spec-item span:last-child {
  color: var(--text);
  font-weight: 700;
  text-align: right;
}

.product-description {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-muted);
}

.more-info-box {
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}

.more-info-box h4 {
  margin-bottom: 10px;
}

.more-info-box ul {
  margin: 0;
  padding-left: 18px;
}

.more-info-box li {
  margin-bottom: 8px;
}

/* =========================
   CATEGORY GRID
========================= */
.category-grid {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 34px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 260px));
  justify-content: center;
  gap: 28px;
}

.category-card,
.product-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(26, 20, 20, 0.86), rgba(7, 7, 7, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.48);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.category-card {
  width: 100%;
  cursor: pointer;
}

.category-card::before,
.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 43, 43, 0.12), transparent 44%, rgba(0, 240, 255, 0.08));
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.category-card:hover,
.product-card:hover {
  transform: translateY(-7px);
  border-color: var(--border-cyan);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.58), 0 0 26px rgba(0, 240, 255, 0.24);
}

.category-card:hover::before,
.product-card:hover::before {
  opacity: 1;
}

.category-image {
  width: 100%;
  height: 210px;
  object-fit: cover;
  filter: contrast(1.05) saturate(1.05);
}

.category-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 34px 16px 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.92));
}

/* =========================
   PRODUCTS GRID
========================= */
#products {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 28px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 220px));
  justify-content: center;
  gap: 30px;
}

.product-card {
  width: 100%;
  min-height: 310px;
  padding: 15px;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.product-card h3,
.product-card h4 {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.05;
}

.product-image {
  width: 100%;
  height: 165px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}

.product-card .product-price {
  margin-top: auto;
  font-size: 18px;
  font-weight: 900;
  color: #ff5656;
}

.view-product-btn {
  width: 100%;
  margin-top: 12px;
  padding: 11px 12px;
}

/* =========================
   MODAL
========================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
}

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

.modal-content {
  position: relative;
  width: min(100%, 410px);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 15px;

  background:
    radial-gradient(circle at 20% 0%, rgba(255, 0, 0, 0.12), transparent 34%),
    var(--surface-strong);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-deep), var(--shadow-red), var(--shadow-cyan);
  animation: popIn 190ms ease-out;
}

@keyframes popIn {
  from {
    transform: translateY(8px) scale(0.96);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

#closeModal {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 22px;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: color var(--transition), transform var(--transition);
}

#closeModal:hover {
  color: var(--cyan);
  transform: rotate(8deg) scale(1.1);
}

.modal-content h2 {
  text-align: center;
  font-size: 26px;
  color: var(--cyan);
  text-shadow: 0 0 18px rgba(0, 240, 255, 0.38);
}

#loginForm,
#signupForm {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.modal-content input {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-cyan);
  background: rgba(0, 0, 0, 0.62);
  color: white;
  outline: none;
  transition: border var(--transition), box-shadow var(--transition), background var(--transition);
}

.modal-content input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.modal-content input:focus {
  border-color: var(--cyan);
  background: rgba(0, 0, 0, 0.78);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.22);
}

.password-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
}

.password-wrapper input {
  flex: 1;
}

.toggle-password {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px;
  padding: 0 !important;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06) !important;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  box-shadow: none !important;
}

.toggle-password:hover {
  color: var(--cyan);
  transform: scale(1.08);
}
.low-stock {
  color: orange;
  font-weight: bold;
}

.out-stock {
  color: red;
  font-weight: bold;
}
.newsletter-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-muted);
  font-size: 13px;
  white-space: nowrap;
}

.newsletter-row input[type='checkbox'] {
  width: 16px;
  height: 16px;
  min-height: 16px;
  accent-color: var(--cyan);
}

#loginMsg,
#signupMsg {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-tabs .sub-tab-btn {
  flex: 0 0 auto;
  padding: 6px 10px;
  font-size: 11px;
  line-height: 1.1;
  border-radius: 6px;
  white-space: nowrap;
}
/* =========================
   FOOTER
========================= */
footer {
  width: 100%;
  margin-top: auto;
  padding: 48px 20px 28px;

  background:
    linear-gradient(rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.72)),
    url('/Images/Bacement.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  border-top: 1px solid var(--border-red);
  box-shadow: 0 -16px 36px rgba(0, 0, 0, 0.55), 0 -2px 24px rgba(255, 0, 0, 0.2);
}

.footer-container {
  width: min(100%, 1200px);
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 26px;
}

.footer-section {
  margin: 0;
}

.footer-section h3 {
  color: var(--cyan);
  margin-bottom: 15px;
  text-shadow: 0 0 16px rgba(0, 240, 255, 0.3);
}

.footer-section a {
  display: block;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.footer-section a:hover {
  color: var(--cyan);
  transform: translateX(5px);
}

.footer-bottom {
  text-align: center;
  margin-top: 34px;
  color: var(--text-dim);
}
.product-thumbnails {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.product-thumbnail {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  opacity: 0.65;
  border: 2px solid transparent;
}

.product-thumbnail.active {
  opacity: 1;
  border-color: white;
}

.product-thumbnail:hover {
  opacity: 1;
}
.image-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.image-lightbox.hidden {
  display: none;
}

.lightbox-image {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 12px;
}

#closeLightbox {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 42px;
  color: white;
  cursor: pointer;
  user-select: none;
}

#mainProductImage {
  cursor: zoom-in;
}
/* =========================
   RESPONSIVE
========================= */
@media (max-width: 520px) {

.header-container {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-areas:
    "logo profile"
    "nav nav";

  align-items: center;
  gap: 10px;
}

.profile-menu {
  grid-area: profile;
  justify-self: end;
  margin-top: -6px;
}

  .logo img {
    height: 56px;
  }

  .product-page {
    padding: 24px 14px 42px;
  }

  .product-title-top {
    font-size: 42px;
    text-align: center;
  }

  .product-content {
    gap: 24px;
  }

  .image-frame {
    padding: 8px;
  }

  .product-info-section {
    gap: 16px;
  }

  .product-page .product-price {
    font-size: 26px;
    text-align: center;
  }

  .purchase-box {
    padding: 14px;
  }

  .quantity-box {
    justify-content: space-between;
    width: 100%;
  }

  .quantity-box input {
    width: 90px;
  }

  .tab-buttons {
    gap: 4px;
    padding: 4px;
  }

  .tab-btn {
    padding: 10px 6px;
    font-size: 12px;
  }

  .tab-content {
    padding: 16px;
    min-height: auto;
  }

  .spec-grid,
  .specs-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .spec-row,
  .spec-item {
    padding: 13px;
  }

  #products {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 16px;
    padding: 18px 10px;
  }

  .product-card {
    min-height: 280px;
    padding: 10px;
  }

  .product-image {
    height: 130px;
  }

  .view-product-btn {
    font-size: 11px;
    padding: 10px 8px;
  }
   .header-links,
#shopNavContainer {
  grid-area: nav;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}
}

@media (max-width: 380px) {

  #products {
    grid-template-columns: 1fr;
  }

  .product-card {
    max-width: 240px;
    margin: 0 auto;
  }

  .product-title-top {
    font-size: 36px;
  }

}
@media (max-width: 900px) {

  .product-content {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .product-image-section {
    justify-content: center;
  }

  .image-frame {
    max-width: 480px;
  }

  .product-info-section {
    width: 100%;
  }

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

  .buy-button {
    width: 100%;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(220px, 260px));
  }

}
.cart-menu {
  position: relative;
  display: flex;
  align-items: center;
}

.cart-btn {
  border: 1px solid var(--border-cyan);
  background: rgba(0,0,0,0.45);
  color: white;
  border-radius: 12px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 20px;

  display: flex;
  align-items: center;
  gap: 8px;

  box-shadow: var(--shadow-cyan);

  transition:
    transform var(--transition),
    background var(--transition),
    box-shadow var(--transition);
}

.cart-btn:hover {
  background: rgba(0,240,255,0.08);
  transform: scale(1.05);
}

#cartCount {
  min-width: 22px;
  height: 22px;

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

  background: var(--red-bright);
  color: white;

  border-radius: 50%;

  font-size: 11px;
  font-weight: bold;

  box-shadow: 0 0 12px rgba(255,0,0,0.45);
}

.cart-dropdown {
  display: none;

  position: absolute;
  top: calc(100% + 12px);
  right: 0;

  width: 340px;
  max-height: 450px;
  overflow-y: auto;

  padding: 14px;

  border-radius: var(--radius-lg);

  background: var(--surface-strong);

  border: 1px solid var(--border-cyan);

  box-shadow:
    var(--shadow-deep),
    var(--shadow-cyan);

  z-index: 9999;
}

.cart-dropdown.show {
  display: block;
}

.cart-dropdown h3 {
  margin-bottom: 14px;
  color: var(--cyan);
}

.cart-item {
  display: flex;
  gap: 12px;
  align-items: center;

  padding: 12px 0;

  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item img {
  width: 60px;
  height: 60px;

  object-fit: cover;

  border-radius: 10px;

  border: 1px solid var(--border-cyan);
}

.cart-item div {
  flex: 1;

  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cart-item strong {
  color: white;
}

.cart-item small {
  color: var(--text-muted);
}

.cart-item button {
  width: 28px;
  height: 28px;

  border: none;
  border-radius: 8px;

  background: var(--red-dark);
  color: white;

  cursor: pointer;

  transition:
    background var(--transition),
    transform var(--transition);
}

.cart-item button:hover {
  background: var(--red-bright);
  transform: scale(1.08);
}

#cartTotal {
  margin-top: 14px;

  text-align: right;

  color: var(--cyan);

  font-weight: bold;
  font-size: 18px;
}
.orders-title{
  text-align:center;
  margin:40px 0 20px;
  color:#fff;
}

.order-card{
  background:#111;
  border:1px solid #222;
  border-radius:16px;
  padding:20px;
  margin:20px auto;
  max-width:800px;
  color:#fff;
}

.order-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:20px;
}

.order-status{
  background:#00cfff;
  color:#000;
  padding:8px 14px;
  border-radius:999px;
  font-weight:bold;
}

.order-item{
  display:flex;
  justify-content:space-between;
  padding:10px 0;
  border-bottom:1px solid #222;
}

.order-total{
  text-align:right;
  margin-top:20px;
  font-size:20px;
  font-weight:bold;
}

.no-orders{
  text-align:center;
  color:#999;
}
.stored-order {
  opacity: 0.7;
  border: 2px solid #00ff99;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.guest-checkout-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.guest-checkout-modal.hidden {
  display: none;
}

.guest-checkout-box {
  background: #120000;
  border: 1px solid #ff2b2b;
  border-radius: 18px;
  padding: 28px;
  width: 90%;
  max-width: 420px;
  text-align: center;
  color: white;
  box-shadow: 0 0 30px rgba(255, 43, 43, 0.45);
  position: relative;
}

.guest-checkout-box input {
  width: 100%;
  padding: 12px;
  margin: 16px 0;
  border-radius: 10px;
  border: 1px solid #00f0ff;
}

.guest-checkout-box button {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  border-radius: 10px;
  cursor: pointer;
}

.guest-close-btn {
  position: absolute;
  top: 8px;
  right: 10px;
  width: auto !important;
  background: none;
  color: white;
  border: none;
  font-size: 24px;
}

.secondary-btn {
  background: transparent;
  color: #00f0ff;
  border: 1px solid #00f0ff;
}
