/*
Theme Name: CREAMY
Description: Minimal WooCommerce theme with 3D WebGL background
Version: 1.0
Author: CREAMY Fashion Label
Text Domain: creamy
*/

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

:root {
  --padding: 5px;
  --black: #000000;
  --white: #ffffff;
  --grey: #e8e8e8;
}

@font-face {
  font-family: 'Squeeze';
  src: url('assets/fonts/rama-gothic/fonnts.com-Rama_Gothic_C_Bold.otf') format('opentype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
  font-size: 14px;
  line-height: 1.4;
}

/* 3D Canvas Background - Fixed behind all content */
#three-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* Typography */
h1 { font-size: 48px; line-height: 1; }
h2 { font-size: 32px; line-height: 1.1; }
h3 { font-size: 24px; line-height: 1.1; }

/* Layout */
.site-container {
  padding: var(--padding);
  padding-top: 50px; /* Space for fixed header */
  max-width: 100%;
}

header.site-header {
  position: fixed;
  top: 5px;
  left: 5px;
  right: 5px;
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 100;
}

.site-logo {
  font-family: 'Squeeze', sans-serif;
  font-size: 96px;
  text-decoration: none;
  color: var(--black);
  margin-top: -29px;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav.main-nav a {
  color: var(--black);
  text-decoration: none;
  font-size: 12px;
  text-transform: uppercase;
  transition: opacity 0.2s;
}

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

/* Products Grid */
.products {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--padding);
  padding: var(--padding);
  list-style: none; /* Remove bullet points */
}

.product {
  position: relative;
}

.product img {
  max-height: 800px;
  object-fit: cover;
  display: block;
}

.product-info {
  padding: 10px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.product-title {
  font-size: 18px;
  margin: 0;
  flex: 0 0 auto;
}

.price {
  font-size: 16px;
  margin: 0;
}

/* Right side container for price and button */
.product-info .price-and-button {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-left: auto;
}

/* Buttons */
.button, button, input[type="submit"], .add_to_cart_button {
  background: none;
  color: var(--black) !important;
  border: solid 2px black;
  padding: 4px 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  transition: opacity 0.2s;
  text-decoration: none;
  display: inline-block;
}

.button:hover, button:hover, input[type="submit"]:hover, .add_to_cart_button:hover {
  opacity: 0.8;
}

/* Mobile Gyroscope Permission */
#gyro-permission {
  position: fixed;
  bottom: -200px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: var(--black);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 12px;
  display: none;
}

#gyro-permission.show {
  display: block;
}

/* WooCommerce Overrides */
.woocommerce ul.products {
  list-style: none;
  padding: 0;
  margin: 0;
}

.woocommerce ul.products li.product {
  list-style: none;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 400;
  margin: 0;
  flex: 0 0 auto;
}

.woocommerce ul.products li.product .price {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: var(--black);
  margin: 0;
}

/* Product info wrapper for horizontal layout */
.woocommerce ul.products li.product .product-info-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 5px 0;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  margin: 0;
  flex: 0 0 auto;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title a {
  color: var(--black);
  text-decoration: none;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title a:hover {
  opacity: 0.7;
}

.woocommerce ul.products li.product .price-and-button {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-left: auto;
}

.woocommerce ul.products li.product .price {
  margin: 0;
}

.woocommerce ul.products li.product .add_to_cart_button {
  margin: 0;
  white-space: nowrap;
}

.woocommerce-page {
  padding: var(--padding);
}

.woocommerce div.product {
  padding: var(--padding);
}

.woocommerce div.product .product_title {
  font-size: 32px;
}

.woocommerce div.product .woocommerce-product-gallery {
  margin-bottom: 20px;
}

.woocommerce .cart-collaterals .cart_totals,
.woocommerce-page .cart-collaterals .cart_totals {
  width: 100%;
}

/* Footer */
.site-footer {
  position: fixed;
  bottom: 5px;
  right: 5px;
  padding: 0;
  margin: 0;
  text-align: right;
  font-size: 12px;
  z-index: 10;
}

/* Responsive */
@media (min-width: 768px) {
  h1 { font-size: 64px; }

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

  .site-logo {
    font-size: 32px;
  }

  nav.main-nav a {
    font-size: 14px;
  }
}

@media (min-width: 1200px) {
  .site-container {
    padding: 10px;
    padding-top: 50px;
  }
}
