/*
Theme Name: Niche Vault
Theme URI: https://nichevault.store
Description: A minimal, clean WooCommerce theme for art and collectibles with a fixed left sidebar and monospace typography.
Version: 1.0.0
Author: Niche Vault
Author URI: https://nichevault.store
License: GPL v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: niche-vault
Domain Path: /languages

This theme is designed for WooCommerce and provides a minimal, clean aesthetic with:
- Fixed left sidebar navigation (180px)
- Monospace typography throughout
- Minimal color palette (white background, black text)
- Clean product grid layout (5 columns)
- Two-column product detail pages
*/

/* ==========================================================================
   PAGE TRANSITIONS
   ========================================================================== */

#main {
  opacity: 1;
  transition: opacity 0.3s ease;
}

#main.fade-out {
  opacity: 0;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  line-height: 1.6;
  color: #333333;
  background-color: #ffffff;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Courier New', monospace;
  font-weight: normal;
  line-height: 1.4;
  margin-bottom: 1em;
}

h1 {
  font-size: 2em;
}

h2 {
  font-size: 1.75em;
}

h3 {
  font-size: 1.5em;
}

h4 {
  font-size: 1.25em;
}

h5 {
  font-size: 1.1em;
}

h6 {
  font-size: 1.5em;
}

p {
  margin-bottom: 1em;
}

a {
  color: #333333;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.7;
}

strong, b {
  font-weight: bold;
}

em, i {
  font-style: italic;
}

/* ==========================================================================
   LAYOUT: SIDEBAR + MAIN CONTENT
   ========================================================================== */

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

/* Sidebar */
#sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 180px;
  height: 100vh;
  background-color: transparent;
  border-right: none;
  overflow-y: auto;
  z-index: 1000;
  padding: 50px 20px 30px;
}

.admin-bar #sidebar {
  top: 32px;
  height: calc(100vh - 32px);
}

/* Main content area */
#main-content {
  margin-left: 180px;
  flex: 1;
  width: calc(100% - 180px);
  background-color: transparent;
}

/* Header (inside main content) */
#header {
  display: none;
}

/* Footer */
#footer {
  margin-left: 180px;
  padding: 40px 20px;
  border-top: 1px solid #606060;
  background-color: transparent;
  font-size: 12px;
  line-height: 1.8;
}

/* Page content wrapper */
.page-content {
  padding: 40px 40px;
}

.page-content-inner {
  max-width: 100%;
}

/* ==========================================================================
   LOGO
   ========================================================================== */

.logo-container {
  margin-bottom: 50px;
}

.logo-container a {
  display: block;
  text-decoration: none;
}

.logo-container img.site-logo {
  width: 50px;
  height: auto;
  display: block;
}

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

.nav-group {
  margin-bottom: 30px;
  border-bottom: none;
  padding-bottom: 20px;
}

.nav-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.nav-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-group li {
  margin-bottom: 12px;
}

.nav-group a {
  display: block;
  font-size: 13px;
  color: #333333;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.nav-group a:hover {
  opacity: 0.6;
}

.nav-group a.current {
  font-weight: bold;
}

/* ==========================================================================
   HOMEPAGE / FRONT PAGE
   ========================================================================== */

.front-page-content {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   WOOCOMMERCE - PRODUCT GRID / ARCHIVE
   ========================================================================== */

.woocommerce,
.woocommerce-page {
  background-color: #ffffff;
}

.products {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  padding: 0;
  list-style: none;
  margin: 0;
}

.product {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

.product-image-wrapper {
  margin-bottom: 15px;
}

.product-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.2s ease;
}

.product-image-wrapper a:hover img {
  opacity: 0.85;
}

.product-title {
  font-size: 13px;
  margin-bottom: 8px;
  line-height: 1.5;
}

.product-title a {
  color: #333333;
  text-decoration: none;
}

.product-title a:hover {
  opacity: 0.6;
}

.price {
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 0;
  color: #333333;
}

/* ==========================================================================
   WOOCOMMERCE - SINGLE PRODUCT
   ========================================================================== */

.back-link {
  display: inline-block;
  font-size: 12px;
  color: #333333;
  text-decoration: none;
  margin-bottom: 20px;
}

.back-link:hover {
  opacity: 0.6;
}

.single-product .product {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 60px;
  margin: 0;
  padding: 0;
}

.single-product .product-images {
  order: 1;
  width: 100%;
}

.single-product .product-images img {
  width: 100%;
  height: auto;
  display: block;
}

.single-product .product-gallery {
  margin-top: 10px;
}

.single-product .product-gallery img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 10px;
}

.single-product .product-summary {
  order: 2;
  padding: 0;
}

.single-product .product-title {
  font-size: 15px;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  line-height: 1.4;
}

.single-product .price {
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333333;
}

.product-meta {
  margin-bottom: 10px;
  font-weight: bold;
  font-size: 12px;
  line-height: 1.2;
}

.product-meta-item {
  font-size: 12px;
  font-weight: bold;
  line-height: 1.8;
  margin-bottom: 5px;
  color: #333333;
}

.product-meta-label {
  font-weight: bold;
}

.product-description {
  font-size: 12px;
  line-height: 1.2;
  margin-bottom: 30px;
  max-width: 100%;
}

/* Add to Cart Button */
.button,
.btn,
button,
input[type="button"],
input[type="submit"],
.add_to_cart_button {
  display: inline-block;
  padding: 6px 6px;
  border: 0.5px solid transparent;
  background-color: #0059e7;
  color: #ffffff;
  font-family: 'Courier New', monospace;
  font-size: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  text-transform: none;
  letter-spacing: normal;
  font-weight: bold;
}

.button:hover,
.btn:hover,
button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
.add_to_cart_button:hover {
  background-color: #0059e7;
  color: #ffffff;
}

/* Variations */
.variations {
  margin-bottom: 15px;
}

.variation-row {
  margin-bottom: 10px;
}

.variation-row label {
  display: block;
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 5px;
}

.variation-row select {
  width: 100%;
  max-width: 200px;
  padding: 6px 8px;
  border: 1px solid #f0f0f0;
  background-color: #fafafa;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: #333333;
}

.variation-row select:focus {
  outline: none;
  border-color: #333333;
  background-color: #ffffff;
}

.woocommerce-variation-price {
  margin-bottom: 10px;
}

.reset_variations {
  font-size: 11px;
  margin-left: 10px;
}

/* Quantity selector */
.quantity {
  display: inline-flex;
  border: 1px solid #f0f0f0;
  align-items: center;
  margin-right: 10px;
  margin-bottom: 20px;
}

.quantity input {
  width: 50px;
  padding: 5px;
  border: none;
  text-align: center;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  background-color: #ffffff;
}

.quantity button {
  padding: 5px 10px;
  border: none;
  background-color: transparent;
  cursor: pointer;
  font-family: 'Courier New', monospace;
  font-size: 13px;
}

/* ==========================================================================
   WOOCOMMERCE - GENERAL
   ========================================================================== */

.woocommerce-notice,
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
  padding: 15px 20px;
  margin-bottom: 20px;
  border: 1px solid #f0f0f0;
  background-color: #ffffff;
  font-size: 12px;
}

.woocommerce-error {
  border-color: #ffcccc;
  background-color: #fff5f5;
}

/* ==========================================================================
   SIDEBAR RESPONSIVE BEHAVIOR
   ========================================================================== */

@media (max-width: 1024px) {
  #sidebar {
    width: 150px;
    padding: 20px 15px;
  }

  #main-content {
    margin-left: 150px;
    width: calc(100% - 150px);
  }

  #footer {
    margin-left: 150px;
  }

  .products {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

  .page-content {
    padding: 30px 30px;
  }

  .single-product .product {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  body {
    flex-direction: column;
  }

  #sidebar {
    position: static;
    width: 100%;
    height: auto;
    border-bottom: 1px solid #f0f0f0;
    padding: 20px;
    overflow-y: visible;
  }

  #main-content {
    margin-left: 0;
    width: 100%;
  }

  #footer {
    margin-left: 0;
  }

  .products {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }

  .page-content {
    padding: 20px 15px;
  }

  .single-product .product {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .single-product .product-images {
    order: 1;
  }

  .single-product .product-summary {
    order: 2;
  }

  .logo-container {
    margin-bottom: 20px;
  }

  .nav-group {
    margin-bottom: 20px;
    padding-bottom: 15px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 11px;
  }

  .products {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .page-content {
    padding: 15px 10px;
  }

  .product-title {
    font-size: 12px;
  }

  .price {
    font-size: 12px;
  }

  .button,
  .btn,
  button,
  input[type="button"],
  input[type="submit"],
  .add_to_cart_button {
    padding: 8px 15px;
    font-size: 12px;
  }

  #sidebar {
    padding: 15px 10px;
  }

  .nav-group a {
    font-size: 12px;
  }
}

/* ==========================================================================
   WOOCOMMERCE OVERRIDES
   ========================================================================== */

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
}

.woocommerce div.product,
.woocommerce-page div.product {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
}

.woocommerce .star-rating,
.woocommerce-page .star-rating {
  display: none;
}

.woocommerce p.stars,
.woocommerce-page p.stars {
  display: none;
}

.product_list_widget li,
.woocommerce-sidebar .product_list_widget li {
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 15px;
  margin-bottom: 15px;
  list-style: none;
}

.product_list_widget li:last-child,
.woocommerce-sidebar .product_list_widget li:last-child {
  border-bottom: none;
}

.woocommerce .widget_product_categories ul,
.woocommerce-sidebar .widget_product_categories ul {
  list-style: none;
  padding: 0;
}

.woocommerce .widget_product_categories li,
.woocommerce-sidebar .widget_product_categories li {
  border-bottom: 1px solid #f0f0f0;
  padding: 8px 0;
  margin: 0;
}

.woocommerce .widget_product_categories li:last-child,
.woocommerce-sidebar .widget_product_categories li:last-child {
  border-bottom: none;
}

.woocommerce .widget_product_categories a,
.woocommerce-sidebar .widget_product_categories a {
  color: #333333;
  text-decoration: none;
}

.woocommerce .widget_product_categories a:hover,
.woocommerce-sidebar .widget_product_categories a:hover {
  opacity: 0.6;
}

/* ==========================================================================
   GENERIC PAGE STYLES
   ========================================================================== */

.page-title {
  font-size: 18px;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.entry-content {
  font-size: 12px;
  line-height: 1.8;
  max-width: 100%;
}

.entry-content p {
  margin-bottom: 15px;
}

.entry-content h2 {
  font-size: 1.5em;
  margin-top: 30px;
  margin-bottom: 15px;
}

.entry-content h3 {
  font-size: 1.25em;
  margin-top: 25px;
  margin-bottom: 12px;
}

/* ==========================================================================
   FORM STYLES
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="url"],
textarea,
select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #f0f0f0;
  background-color: #fafafa;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: #333333;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #333333;
  background-color: #ffffff;
}

label {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
}

.form-row {
  margin-bottom: 15px;
}

/* ==========================================================================
   CART & CHECKOUT
   ========================================================================== */

.woocommerce-cart-form table,
.woocommerce-checkout-form table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 12px;
}

.woocommerce-cart-form table th,
.woocommerce-checkout-form table th {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid #f0f0f0;
  font-weight: bold;
}

.woocommerce-cart-form table td,
.woocommerce-checkout-form table td {
  padding: 10px;
  border-bottom: 1px solid #f0f0f0;
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hidden {
  display: none;
}

.visible {
  display: block;
}
