/* components/windows.css */
.window {
  position: fixed;
  background: var(--bg);
  border: 5px solid var(--text);
  min-width: 400px;
  min-height: 300px;
  box-shadow: 10px 10px 0 rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
}

.window-header {
  background: var(--text);
  color: var(--bg);
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: move;
  user-select: none;
}

.window-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 12px;
}

.window-controls {
  display: flex;
  gap: 5px;
}

.window-btn {
    width: 24px;
    height: 24px;
    /* Remove border */
    border: none;
    background: transparent;
    color: var(--bg);
    cursor: pointer;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    font-size: 16px;
    line-height: 1;
}

.window-btn:hover {
    background: var(--bg);
    color: var(--text);
}

.window-tabs {
  display: flex;
  border-bottom: 2px solid var(--text);
  background: var(--bg);
}

.tab-btn {
  padding: 10px 20px;
  background: #0e663c;
  border: none;
  border-right: 2px solid var(--text);
  color: #ffffff;
  cursor: pointer;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.15s;
}

.tab-btn:hover {
  background: rgba(0,0,0,0.05);
  color: #000000;
}

[data-theme="dark"] .tab-btn.active {
  background: var(--bg);
  color: var(--text);
}

[data-theme="dark"] .tab-btn:hover {
  background: rgba(255,255,255,0.05);
  color: #ffffff;
}

.tab-btn.active {
  background: var(--text);
  color: var(--bg);
}

.window-content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

/* Window states */
.window.minimized {
  display: none;
}

.window.maximized {
  top: 60px !important;
  left: 0 !important;
  width: 100vw !important;
  height: calc(100vh - 60px) !important;
}

/* Ultra compact header when window maximized */
header.ultra-compact .logo-container {
  padding: 10px;
}

header.ultra-compact .logo {
  max-width: 80px;
}

header.ultra-compact nav {
  padding: 0 20px 10px;
}

/* Resize handle */
.resize-handle {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 20px;
  height: 20px;
  cursor: nwse-resize;
  background: linear-gradient(135deg, transparent 50%, var(--text) 50%);
}

/* Mobile adjustments for products */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .product-card {
        border-width: 3px;
        padding: 25px;
        min-height: auto;
    }
    
    .product-name {
        font-size: 28px;
        /* Reduce padding on mobile */
        padding-right: 80px;
    }
    
    .product-status {
        top: 20px;
        right: 20px;
        padding: 3px 10px;
        font-size: 9px;
    }
}