.container {
  width: 95%;
  max-width: 1600px;
  margin: 20px auto 60px;
  animation: fadeIn 0.5s ease-out;
}

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

/* Banner Layout */
.banner {
  background: radial-gradient(circle at 20% 50%, #151b3d 0%, #0c0e20 100%);
  color: #fff;
  padding: 3.5rem 4rem;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 4rem;
  margin-bottom: 2.5rem;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.bannerContent {
  flex: 1;
}

.bannerTitle {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -1px;
  background: linear-gradient(90deg, #ffffff, #00d2ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bannerDesc {
  font-size: 1.05rem;
  color: #a5b4fc;
  max-width: 600px;
  line-height: 1.6;
}

/* Futuristic 3D Rig Panel */
.rigPanelWrapper {
  perspective: 1000px; /* Enable 3D perspective space */
}

.rigPanel {
  position: relative;
  width: 360px;
  height: 360px;
  background: #0a0c16;
  border-radius: 20px;
  border: 2px solid rgba(0, 210, 255, 0.4);
  box-shadow: 0 0 30px rgba(0, 210, 255, 0.25), 
              inset 0 0 30px rgba(0, 210, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

[data-theme='crywolf'] .rigPanel {
  border-color: rgba(133, 201, 141, 0.5);
  box-shadow: 0 0 30px rgba(133, 201, 141, 0.25), 
              inset 0 0 30px rgba(133, 201, 141, 0.15);
}

.rigPanelContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.viewToggleGroup {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.viewToggleBtn {
  background: transparent;
  border: none;
  color: #a5b4fc;
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.viewToggleBtn:hover {
  color: #ffffff;
}

.viewToggleBtn:active {
  transform: scale(0.94);
}

.activeView {
  background: #00d2ff;
  color: #05050a;
}

[data-theme='crywolf'] .activeView {
  background: #85c98d;
  color: #050a06;
}

.staticImageContainer {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #07080f;
}

.staticBuildImg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
}

.emptyCase {
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.15));
  transform: translateZ(0px); /* Base layer */
}

/* Overlaid Components inside visualizer (Larger sizes for case fitting + 3D Parallax translateZ) */
.overlayMotherboard {
  position: absolute;
  top: 22%;
  left: 21%;
  width: 44%;
  height: 52%;
  z-index: 2;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 4px;
  transform: translateZ(20px); /* Float slightly above case */
}
.overlayMotherboard img {
  width: 120%;
  height: 120%;
  object-fit: cover;
  clip-path: inset(8% 8% 8% 8% rounded 4px);
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}

.overlayGPU {
  position: absolute;
  top: 50%;
  left: 19%;
  width: 50%;
  height: 20%;
  z-index: 5;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transform: translateZ(60px); /* GPU sits far forward */
}
.overlayGPU img {
  width: 120%;
  height: 120%;
  object-fit: cover;
  clip-path: inset(10% 5% 10% 5% rounded 4px);
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}

.overlayRAM {
  position: absolute;
  top: 31%;
  left: 45%;
  width: 8%;
  height: 16%;
  z-index: 4;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transform: translateZ(35px); /* RAM sits on Motherboard */
}
.overlayRAM img {
  width: 130%;
  height: 130%;
  object-fit: cover;
  clip-path: inset(12% 12% 12% 12%);
}

/* Animated RAM RGB Glow Overlay */
.ramRgbGlow {
  position: absolute;
  top: 31%;
  left: 45.5%;
  width: 2%;
  height: 14%;
  background: linear-gradient(180deg, #ff007f, #7f00ff, #00f0ff, #00ff7f, #ff007f);
  background-size: 100% 400%;
  animation: rgbCycle 3s linear infinite, rgbGlow 1.5s ease-in-out infinite alternate;
  z-index: 6;
  border-radius: 2px;
  opacity: 0.85;
  filter: blur(1px);
  transform: translateZ(38px); /* Float directly over RAM sticks */
}

@keyframes rgbCycle {
  0% { background-position: 0% 0%; }
  100% { background-position: 0% 100%; }
}

@keyframes rgbGlow {
  0% { box-shadow: 0 0 4px rgba(0, 240, 255, 0.6); }
  100% { box-shadow: 0 0 12px rgba(255, 0, 127, 0.95); }
}

/* Working GPU Fans */
.gpuFanContainer {
  position: absolute;
  top: 50%;
  left: 19%;
  width: 50%;
  height: 20%;
  z-index: 6;
  pointer-events: none;
  transform: translateZ(63px); /* Sit on top of GPU card shroud */
}

.gpuFan {
  position: absolute;
  top: 28%;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px dashed rgba(0, 210, 255, 0.8);
  background: rgba(0, 210, 255, 0.08);
  animation: spinFan 1s linear infinite;
  box-shadow: 0 0 8px rgba(0, 210, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0, 210, 255, 0.9);
}

[data-theme='crywolf'] .gpuFan {
  border-color: rgba(133, 201, 141, 0.8);
  background: rgba(133, 201, 141, 0.08);
  box-shadow: 0 0 8px rgba(133, 201, 141, 0.3);
  color: rgba(133, 201, 141, 0.9);
}

@keyframes spinFan {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.fanLeft { left: 16%; }
.fanCenter { left: 44%; }
.fanRight { left: 72%; }

.overlayCPU {
  position: absolute;
  top: 29%;
  left: 31%;
  width: 14%;
  height: 14%;
  z-index: 3;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transform: translateZ(25px); /* On motherboard */
}
.overlayCPU img {
  width: 120%;
  height: 120%;
  object-fit: cover;
  clip-path: inset(10% 10% 10% 10%);
}

/* New overlays for CPU Cooler (AIO Pump), Storage (SSD), Power Supply (PSU) */
.overlayCooler {
  position: absolute;
  top: 28%;
  left: 30%;
  width: 16%;
  height: 16%;
  z-index: 7; /* Placed over CPU */
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  transform: translateZ(45px); /* Sit on top of CPU socket block */
}
.overlayCooler img {
  width: 120%;
  height: 120%;
  object-fit: cover;
  clip-path: inset(12% 12% 12% 12% rounded 50%);
}

.overlayStorage {
  position: absolute;
  top: 45%;
  left: 27%;
  width: 10%;
  height: 6%;
  z-index: 4;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transform: translateZ(28px); /* Low-profile SSD on motherboard */
}
.overlayStorage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  clip-path: inset(5% 5% 5% 5%);
}

.overlayPSU {
  position: absolute;
  bottom: 12%;
  left: 17%;
  width: 25%;
  height: 12%;
  z-index: 2;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(0,0,0,0.8);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateZ(15px); /* Slightly forward in lower PSU shroud */
}
.overlayPSU img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

/* Builder Layout Grid */
.builderLayout {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.partsList {
  flex: 3;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.partsSectionTitle {
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-main);
  margin-top: 1.5rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

/* Tabular Design for Component Rows */
.tableHeader {
  display: grid;
  grid-template-columns: 80px 1fr 120px 150px;
  padding: 1rem 1.75rem;
  background: var(--header-bg);
  color: var(--text-header);
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid var(--border-color);
}

.componentRow {
  display: grid;
  grid-template-columns: 80px 1fr 120px 150px;
  align-items: center;
  padding: 1.25rem 1.75rem;
  background: var(--secondary-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.componentRow:hover {
  transform: translateY(-2px);
  border-color: var(--accent-color);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}
.componentRow:active {
  transform: translateY(0) scale(0.99);
}
[data-theme='dark'] .componentRow:hover, [data-theme='crywolf'] .componentRow:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.colImage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  background: #ffffff;
  border-radius: 8px;
  padding: 6px;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.02);
  border: 1px solid var(--border-color);
}
[data-theme='dark'] .colImage, [data-theme='crywolf'] .colImage {
  background: rgba(255,255,255,0.05);
}

.placeholderIcon {
  color: var(--text-muted);
  opacity: 0.6;
}

.colProduct {
  font-weight: 600;
  color: var(--text-main);
  padding-left: 1.25rem;
  font-size: 1rem;
}

.choosePlaceholder {
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.colPrice {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.colAction {
  display: flex;
  justify-content: flex-end;
}

.colActionCombined {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.inlineWarning {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  background: rgba(239, 68, 68, 0.05);
  margin-right: 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .inlineWarning {
    white-space: normal;
    font-size: 0.7rem;
    padding: 0.3rem 0.5rem;
    max-width: 150px;
  }
}

/* Sidebar Styling */
.summaryPanel {
  flex: 1;
  background: var(--secondary-bg);
  padding: 2.25rem;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  position: sticky;
  top: 100px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}
[data-theme='dark'] .summaryPanel, [data-theme='crywolf'] .summaryPanel {
  box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}

.summaryTotalRow {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2rem;
}
.summaryTotalRow h3 {
  font-size: 1.1rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.summaryTotalPrice {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -1px;
}

.sidebarActionBtn {
  width: 100%;
  padding: 0.95rem;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
  letter-spacing: 0.5px;
}

.btnRemoveAll {
  background: var(--primary-bg);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}
.btnRemoveAll:hover {
  background: var(--secondary-bg);
  border-color: var(--text-main);
}
.btnRemoveAll:active {
  transform: scale(0.97);
}

.btnAddToCart {
  background: var(--accent-color);
  color: #fff;
  border: none;
  box-shadow: 0 5px 15px rgba(232, 42, 54, 0.2);
}
.btnAddToCart:hover {
  background: #c21a24;
  box-shadow: 0 8px 20px rgba(232, 42, 54, 0.4);
}
.btnAddToCart:active {
  transform: scale(0.96);
}
[data-theme='crywolf'] .btnAddToCart {
  background: #85c98d;
  color: #101435;
  box-shadow: 0 5px 15px rgba(133, 201, 141, 0.2);
}
[data-theme='crywolf'] .btnAddToCart:hover {
  background: #6eb777;
  box-shadow: 0 8px 20px rgba(133, 201, 141, 0.4);
}
[data-theme='crywolf'] .btnAddToCart:active {
  transform: scale(0.96);
}

.toggleRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}

/* Switch Styles */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border-color);
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: #fff;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--accent-color);
}
[data-theme='crywolf'] input:checked + .slider {
  background-color: #85c98d;
}

input:checked + .slider:before {
  transform: translateX(24px);
}

/* Offers Filter Section */
.offersSection {
  margin-top: 4rem;
  border-top: 1px solid var(--border-color);
  padding-top: 3rem;
}

.offersLayout {
  display: flex;
  gap: 2.5rem;
  margin-top: 1.75rem;
}

.offersFilters {
  width: 280px;
  background: var(--secondary-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.02);
}
[data-theme='dark'] .offersFilters, [data-theme='crywolf'] .offersFilters {
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.offersFilters h3 {
  font-size: 1.15rem;
  margin-bottom: 1.75rem;
  font-weight: 700;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
}

.filterGroup {
  margin-bottom: 2rem;
}
.filterGroup h4 {
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}
.filterOption {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
  font-size: 0.95rem;
  color: var(--text-main);
  cursor: pointer;
}

.offersList {
  flex: 1;
}

/* Modal Selector Styles */
.modalOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modalContent {
  background: var(--modal-bg);
  width: 90%;
  max-width: 1200px;
  height: 85vh;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  border: 1px solid var(--border-color);
}

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

.modalHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2.5rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--secondary-bg);
}

.modalTitle {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-header);
  margin: 0;
}

.modalHeaderRight {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.modalSearch {
  display: flex;
  align-items: center;
  background: #f4f6fa;
  border: 1px solid #e2e8f0;
  border-radius: 30px;
  padding: 0.2rem 0.25rem 0.2rem 1.25rem;
  transition: all 0.2s ease;
}

[data-theme='dark'] .modalSearch, [data-theme='crywolf'] .modalSearch {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.modalSearch:focus-within {
  border-color: var(--accent-color);
  box-shadow: 0 0 10px color-mix(in srgb, var(--accent-color) 20%, transparent);
}

.modalSearch input {
  border: none;
  background: transparent;
  outline: none;
  color: #1a1f36;
  width: 220px;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.25rem 0;
}
.modalSearch input::placeholder {
  color: #94a3b8;
}

[data-theme='dark'] .modalSearch input, [data-theme='crywolf'] .modalSearch input {
  color: #ffffff;
}

.modalSearchBtn {
  background: var(--accent-color);
  color: white;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.modalSearchBtn:hover {
  transform: scale(1.05);
  opacity: 0.9;
}
.modalSearchBtn:active {
  transform: scale(0.9);
}

.closeBtn {
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  padding: 0;
}
.closeBtn:hover {
  color: var(--accent-color);
  transform: scale(1.1);
}
.closeBtn:active {
  transform: scale(0.92);
}

.modalBody {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.modalSidebar {
  width: 280px;
  border-right: 1px solid var(--border-color);
  padding: 2rem 1.5rem;
  overflow-y: auto;
  background: var(--secondary-bg);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sidebarTitle {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-header);
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.brandSearchInput {
  width: 100%;
  background: color-mix(in srgb, var(--primary-bg) 60%, transparent);
  border: 1px solid var(--border-color);
  padding: 0.65rem 1rem;
  border-radius: 12px;
  font-size: 0.85rem;
  outline: none;
  margin-bottom: 1rem;
  color: var(--text-main);
  transition: all 0.25s ease;
}
.brandSearchInput:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent-color) 15%, transparent);
}

.brandListScroll {
  max-height: 180px;
  overflow-y: auto;
  padding-right: 5px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.brandListScroll::-webkit-scrollbar {
  width: 4px;
}
.brandListScroll::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

.filterGroup {
  margin-bottom: 2rem;
  display: flow-root; /* Fixes floated Apply button height collapse */
}

.filterGroup h4 {
  font-size: 0.95rem;
  font-weight: 750;
  color: var(--text-header);
  margin-top: 0;
  margin-bottom: 1rem;
}

.filterOption {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-main);
  cursor: pointer;
  user-select: none;
  font-weight: 500;
  transition: color 0.2s ease;
  margin-bottom: 0.5rem;
}
.filterOption:hover {
  color: var(--text-header);
}
.filterOption:active {
  color: var(--accent-color);
}

/* Custom Checkboxes */
.filterOption input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-color);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  background: transparent;
}
.filterOption input[type="checkbox"]:checked {
  background: var(--accent-color);
  border-color: var(--accent-color);
}
.filterOption input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 5px;
  height: 9px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Custom Radio Buttons */
.filterOption input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-color);
  border-radius: 50%;
  outline: none;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  background: transparent;
}
.filterOption input[type="radio"]:checked {
  border-color: var(--accent-color);
}
.filterOption input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 6px;
  height: 6px;
  background: var(--accent-color);
  border-radius: 50%;
}
[data-theme='crywolf'] .filterOption input[type="checkbox"]:checked,
[data-theme='crywolf'] .filterOption input[type="radio"]:checked {
  background-color: #85c98d;
  border-color: #85c98d;
}
[data-theme='crywolf'] .filterOption input[type="radio"]:checked::after {
  background-color: #121212;
}

.priceInputWrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.priceInputBox {
  display: flex;
  align-items: center;
  background: #f1f3f7;
  padding: 0.6rem 1rem;
  border-radius: 12px;
  flex: 1;
  border: none;
}
[data-theme='dark'] .priceInputBox, [data-theme='crywolf'] .priceInputBox {
  background: rgba(255, 255, 255, 0.08);
}

.priceInputBox input {
  border: none;
  background: transparent;
  width: 100%;
  outline: none;
  font-size: 0.9rem;
  color: var(--text-main);
  text-align: center;
  font-weight: 500;
}

.priceInputBox span {
  font-size: 0.9rem;
  color: #a1a1a1;
  font-weight: 600;
  margin-left: 0.25rem;
}

.priceDivider {
  color: #a1a1a1;
  font-size: 1.2rem;
  font-weight: 300;
}

.priceSliderContainer {
  position: relative;
  width: 100%;
  height: 30px;
  margin: 1.5rem 0 1rem;
}

.rangeInput {
  position: absolute;
  width: 100%;
  height: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  z-index: 10;
  left: 0;
}

/* Style range thumbs (handles) */
.rangeInput::-webkit-slider-thumb {
  pointer-events: auto;
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #0a1128;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: transform 0.1s ease;
  border: none;
}
.rangeInput::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}
[data-theme='crywolf'] .rangeInput::-webkit-slider-thumb {
  background: #85c98d;
}

.rangeInput::-moz-range-thumb {
  pointer-events: auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #0a1128;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: transform 0.1s ease;
}
.rangeInput::-moz-range-thumb:hover {
  transform: scale(1.15);
}
[data-theme='crywolf'] .rangeInput::-moz-range-thumb {
  background: #85c98d;
}

.priceSliderTrack {
  position: absolute;
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  left: 0;
}
[data-theme='dark'] .priceSliderTrack, [data-theme='crywolf'] .priceSliderTrack {
  background: rgba(255, 255, 255, 0.15);
}

.priceSliderFill {
  position: absolute;
  height: 100%;
  background: #0a1128;
  border-radius: 4px;
}
[data-theme='crywolf'] .priceSliderFill {
  background: #85c98d;
}

.applyFiltersBtn {
  background: #0a1128;
  color: white;
  border: none;
  padding: 0.55rem 1.75rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  float: right;
  margin-top: 0.5rem;
  box-shadow: 0 4px 10px rgba(10, 17, 40, 0.15);
}
.applyFiltersBtn:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}
.applyFiltersBtn:active {
  transform: translateY(0) scale(0.95);
  opacity: 1;
}
[data-theme='crywolf'] .applyFiltersBtn {
  background: #85c98d;
  color: #121212;
  box-shadow: 0 4px 10px rgba(133, 201, 141, 0.2);
}

.modalGrid {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  align-content: start;
  background: var(--modal-bg);
}

.productCard {
  background: var(--secondary-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  display: flex;
  flex-direction: column;
}

.percentBadge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--accent-color);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 4px 10px color-mix(in srgb, var(--accent-color) 25%, transparent);
  z-index: 2;
}

.productCard:hover {
  border-color: var(--accent-color);
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.productCard:active {
  transform: translateY(0) scale(0.97);
  border-color: var(--accent-color);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.productImgWrapper {
  background: #ffffff;
  border-radius: 8px;
  padding: 8px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  border: 1px solid var(--border-color);
}
[data-theme='dark'] .productImgWrapper, [data-theme='crywolf'] .productImgWrapper {
  background: rgba(255,255,255,0.05);
}

.productImg {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.productName {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  height: 38px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--text-main);
  text-align: left;
}

.productPriceRow {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 0.5rem;
  margin-top: auto;
}

.productPrice {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.productOldPrice {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 500;
}

@media (max-width: 992px) {
  .banner {
    flex-direction: column;
    padding: 2.5rem 2rem;
    gap: 2rem;
    align-items: center;
    text-align: center;
  }

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

  .bannerTitle {
    font-size: 2.2rem;
  }

  .builderLayout {
    flex-direction: column;
  }

  .partsList, .summaryPanel {
    width: 100%;
    flex: none;
  }

  .summaryPanel {
    position: relative;
    top: 0;
  }
}

.mobileFilterToggleBtn {
  display: none;
}

@media (max-width: 768px) {
  .tableHeader {
    display: none;
  }

  .partsList {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .partsSectionTitle {
    margin-top: 1.25rem;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-main);
    border-left: 3px solid var(--accent-color);
    border-bottom: none;
    padding-left: 10px;
    letter-spacing: 1px;
  }

  .componentRow {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0.75rem 1rem;
    gap: 12px;
    justify-content: space-between;
    min-height: 70px;
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
  }

  .componentRow:hover {
    border-color: var(--accent-color);
    box-shadow: 0 8px 20px rgba(0, 210, 255, 0.1);
    transform: translateY(-2px);
  }

  [data-theme='crywolf'] .componentRow:hover {
    box-shadow: 0 8px 20px rgba(133, 201, 141, 0.15);
  }

  .colImage {
    margin: 0;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
  }

  .colProduct {
    padding-left: 0;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: left;
    word-break: break-word;
    height: auto;
    color: var(--text-main);
    flex: 1;
  }

  .colPrice {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-color);
  }

  .colAction {
    width: auto;
    display: flex;
    justify-content: flex-end;
  }

  .colAction button {
    width: auto;
    padding: 6px 12px;
    font-size: 0.75rem;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  /* Responsive Modal Layout: Collapsible filters, clear list view */
  .mobileFilterToggleBtn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: calc(100% - 2rem);
    margin: 1rem;
    padding: 0.75rem;
    background: var(--accent-color, #1d4ed8);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
  }

  .modalBody {
    flex-direction: column;
    overflow-y: auto;
  }

  .modalSidebar {
    display: none;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
  }

  .showMobileSidebar {
    display: flex !important;
  }

  .filterGroup {
    margin-bottom: 0;
    flex: 1;
    min-width: 110px;
  }

  .modalGrid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 1rem;
  }

  .productCard {
    padding: 0.75rem;
  }

  .productImgWrapper {
    height: 100px;
    margin-bottom: 0.5rem;
  }

  .productName {
    font-size: 0.85rem;
    height: 38px;
  }

  .productPrice {
    font-size: 1.05rem;
  }

  /* Responsive Modal Header & Search bar: prevents overlapping and resizes automatically */
  .modalHeader {
    padding: 1rem 1.25rem;
    flex-wrap: wrap;
    gap: 0.75rem;
    position: relative;
  }

  .modalHeader h2 {
    width: calc(100% - 40px);
    font-size: 1.3rem;
  }

  .closeBtn {
    position: absolute;
    right: 1.25rem;
    top: 1rem;
  }

  .modalSearch {
    width: 100%;
  }

  .modalSearch input {
    width: 100%;
  }

  .optionalSectionHeader {
    margin: 2rem 0 1rem;
  }

  .componentRowPlaceholder {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0.75rem 1rem;
    gap: 12px;
    min-height: 70px;
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
  }

  .placeholderColText {
    margin-left: 1rem;
    font-size: 0.85rem;
    text-align: left;
  }

  .colActionCombined {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .rigPanel {
    width: 300px;
    height: 300px;
  }
  
  .bannerTitle {
    font-size: 1.8rem;
  }
}

/* Custom Multi-Slot PC Builder layouts */
.componentRowPlaceholder {
  display: flex;
  align-items: center;
  padding: 1.25rem 1.75rem;
  background: var(--secondary-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 80px;
}

.componentRowPlaceholder:hover {
  transform: translateY(-2px);
  border-color: var(--accent-color);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  background: rgba(255, 255, 255, 0.04);
}
.componentRowPlaceholder:active {
  transform: translateY(0) scale(0.99);
}

.placeholderIconContainer {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  color: var(--text-muted, #64748b);
}

.placeholderColText {
  font-weight: 700;
  color: var(--text-muted, #64748b);
  letter-spacing: 1px;
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-left: 1.5rem;
  flex: 1;
}

.optionalSectionHeader {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted, #64748b);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
}

.colActionCombined {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.viewBtn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: #101435;
  color: #fff;
  border: 1px solid var(--accent-color, #1d4ed8);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.viewBtn:hover {
  background: var(--accent-color, #1d4ed8);
  box-shadow: 0 0 12px rgba(29, 78, 216, 0.35);
}
.viewBtn:active {
  transform: scale(0.95);
}

.removeBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  color: #64748b;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 50%;
}

.removeBtn:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}
.removeBtn:active {
  transform: scale(0.88);
}

/* Premium Mobile Redesign Fixes */
@media (max-width: 992px) {
  .builderLayout {
    flex-direction: column;
    gap: 1.5rem;
  }
  .partsList, .summaryPanel {
    width: 100%;
    position: static;
  }
  .tableHeader {
    display: none;
  }
  .componentRow {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 15px;
    padding: 1.5rem;
  }
  .colImage {
    margin: 0 auto;
  }
  .colProduct {
    padding-left: 0;
  }
  .banner {
    flex-direction: column;
    padding: 2.5rem 1.5rem;
    text-align: center;
    gap: 2.5rem;
  }
  .colActionCombined {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
  }
  .modalContent {
    width: 95%;
    height: 90vh;
  }
  .modalHeader {
    flex-direction: column;
    gap: 15px;
  }
  .modalHeaderRight {
    flex-direction: column;
    width: 100%;
  }
  .modalSearch {
    width: 100%;
  }
  .modalSearch input {
    width: 100%;
  }
}
