/*
Theme Name: Imprex
Theme URI: https://imprex.tld
Author: Imprex Devs
Description: An ultra-fast, Kyte-inspired WooCommerce theme designed for maximum conversion speed and one-page flow.
Version: 1.0.0
Text Domain: imprex
Requires at least: 6.0
Requires PHP: 7.4
WC requires at least: 7.0
WC tested up to: 8.8
*/

/* Core CSS Variables based on Kyte catalog design */
:root {
  --color-primary: #ff5722;
  /* Deep Orange/Red like in the screenshot */
  --color-primary-hover: #e64a19;
  --color-secondary: #212121;
  /* Dark gray for text */
  --color-background: #f7f9fa;
  /* Light gray/blue app background */
  --color-surface: #ffffff;
  /* White cards */
  --color-border: #eeeeee;

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --border-radius: 8px;
  --border-radius-lg: 12px;
  --border-radius-full: 9999px;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

  --header-height: 80px;
  --bottom-nav-height: 80px;
}

/* Basic Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  background-color: var(--color-background);
  color: var(--color-secondary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  font-weight: 600;
  color: var(--color-secondary);
}

/* Main App Container */
.imprex-app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Base Utility Classes */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: var(--border-radius-full);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.btn--primary {
  background-color: var(--color-primary);
  color: white;
}

.btn--primary:hover {
  background-color: var(--color-primary-hover);
}

.btn--block {
  width: 100%;
}

/* --- WooCommerce Single Product Overrides for Kyte Theme --- */

.woocommerce-variation-add-to-cart {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: -1.5rem;
}

.woocommerce-variation-add-to-cart .quantity {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.woocommerce-variation-add-to-cart .quantity input.qty {
  width: 60px;
  padding: 0.75rem;
  text-align: center;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0 0.5rem;
  background: var(--color-surface);
}

.woocommerce-variation-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
}

.woocommerce-variation-availability {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: #666;
}

/* Reset standard table styles for variations */
table.variations {
  width: 100%;
  border: none;
  margin-bottom: 1.5rem;
}

table.variations td,
table.variations th {
  padding: 0;
  border: none;
  display: block;
  width: 100%;
  text-align: left;
}

table.variations th {
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-secondary);
}

/* Make selects look decent since standard woo uses selects */
table.variations select {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  font-size: 1rem;
  background-color: var(--color-surface);
  cursor: pointer;
  appearance: none;
  /* Hide default arrow */
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
  margin-bottom: 1rem;
  font-weight: 500;
}

table.variations select:focus {
  outline: none;
  border-color: var(--color-primary);
}

.reset_variations {
  display: inline-block;
  font-size: 0.85rem;
  color: #888;
  margin-top: -0.5rem;
  margin-bottom: 1rem;
  text-decoration: underline;
}

/* The actual add to cart button */
button.single_add_to_cart_button {
  width: 100%;
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 1.15rem;
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: var(--border-radius-full);
  box-shadow: 0 4px 14px 0 rgba(255, 87, 34, 0.39);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

button.single_add_to_cart_button:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
}

button.single_add_to_cart_button.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}