/*
Theme Name: ProWatch Antigravity
Theme URI: https://example.com/prowatchantigravity
Author: Senior WordPress & WooCommerce Developer
Author URI: https://example.com
Description: A lightweight, high-performance custom WordPress & WooCommerce theme built with Gutenberg block support and Tailwind CSS.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: prowatchantigravity
Tags: woocommerce, custom-menu, featured-images, block-styles, full-site-editing

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

/* ==========================================================================
   1. Luxury Color Palette & Design Tokens
   ========================================================================== */
:root {
  --primary-color: #111827; /* Dark Slate / Charcoal */
  --accent-color: #d97706;  /* Amber / Gold Accent */
  --bg-color: #fafafa;      /* Off-white / Light background */
  --text-color: #1f2937;    /* Dark Neutral */
  --header-bg: #ffffff;
  --border-color: #e5e7eb;
  --muted-text: #6b7280;
}

/* ==========================================================================
   2. Modern CSS Resets
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  background-color: var(--bg-color);
  color: var(--text-color);
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: inherit;
}

/* Responsive Images & Media Scaling (Fixes unscaled SVG/images overflow) */
img,
svg,
picture,
video,
canvas {
  max-width: 100%;
  height: auto;
}

img {
  display: block;
}

svg {
  display: inline-block;
  vertical-align: middle;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

a:hover {
  color: var(--accent-color);
}

/* ==========================================================================
   3. Header & Navigation Bar Styling
   ========================================================================== */
.site-header {
  background-color: var(--header-bg);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
}

/* Section A: Logo / Site Title */
.site-branding {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-branding a,
.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--primary-color);
  text-transform: uppercase;
  text-decoration: none;
}

.site-branding a:hover,
.site-title:hover {
  color: var(--accent-color);
}

.site-logo img,
.site-logo svg {
  max-height: 40px;
  width: auto;
}

/* Section B: Navigation Menu */
.main-navigation {
  display: flex;
  align-items: center;
}

.main-navigation ul,
.main-navigation ul#primary-menu,
ul.nav-menu {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

.main-navigation li a,
ul.nav-menu li a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-color);
  padding: 0.5rem 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

.main-navigation li a:hover,
ul.nav-menu li a:hover {
  color: var(--accent-color);
}

/* Section C: Cart & Action Area */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Cart & Account icon size constraint (24px - 32px) */
.header-actions .cart-contents,
.header-actions .account-link,
.header-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0.5rem;
  color: var(--primary-color);
  border-radius: 50%;
  transition: background-color 0.2s ease, color 0.2s ease;
  text-decoration: none;
}

.header-actions a:hover {
  background-color: #f3f4f6;
  color: var(--accent-color);
}

.header-actions svg,
.cart-contents svg,
.header-actions img {
  width: 24px;
  height: 24px;
  max-width: 32px;
  max-height: 32px;
  object-fit: contain;
}

/* Cart Count Badge */
.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--accent-color);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Mobile Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--primary-color);
}

.mobile-menu-toggle svg {
  width: 28px;
  height: 28px;
}

/* ==========================================================================
   4. Responsive Mobile Styling
   ========================================================================== */
@media (max-width: 768px) {
  .header-container {
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
    gap: 0.75rem;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .main-navigation {
    width: 100%;
    order: 3;
  }

  .main-navigation ul,
  .main-navigation ul#primary-menu,
  ul.nav-menu {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
    width: 100%;
  }

  .main-navigation li a,
  ul.nav-menu li a {
    font-size: 0.8rem;
  }
}

/* ==========================================================================
   5. Centered Container Wrapper
   ========================================================================== */
main.container,
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  width: 100%;
}

/* ==========================================================================
   6. Hero & Section Title Styling
   ========================================================================== */
.hero-section {
  text-align: center;
  margin-bottom: 3.5rem;
}

.hero-section .section-title,
.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
  position: relative;
  display: inline-block;
}

.hero-section .section-title::after,
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
  margin: 0.75rem auto 0 auto;
  border-radius: 2px;
}

.hero-section .section-subtitle,
.section-subtitle {
  font-size: 1.125rem;
  color: var(--muted-text);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ==========================================================================
   7. Product Gallery Grid & Card Styling
   ========================================================================== */
.product-gallery-section {
  width: 100%;
}

.product-grid,
.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

/* Individual Product Card */
.product-card,
.woocommerce ul.products li.product {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
  padding: 0;
  margin: 0;
  width: 100% !important;
}

.product-card:hover,
.woocommerce ul.products li.product:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -12px rgba(17, 24, 39, 0.12);
  border-color: rgba(217, 119, 6, 0.35); /* Amber gold subtle highlight */
}

/* Product Card Image Container */
.product-card-image,
.woocommerce ul.products li.product a img {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card-image img {
  transform: scale(1.05);
}

/* Product Card Content Area */
.product-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

/* Product Title */
.product-card-title,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.product-card-title a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

.product-card-title a:hover {
  color: var(--accent-color);
}

/* Product Price */
.product-card-price,
.woocommerce ul.products li.product .price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.product-card-price del {
  color: var(--muted-text);
  font-size: 0.9rem;
  font-weight: 400;
}

.product-card-price ins {
  text-decoration: none;
}

/* Add to Cart Button */
.product-card-actions {
  margin-top: auto;
}

.product-card-actions .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.75rem 1.25rem;
  background-color: var(--primary-color);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  text-decoration: none;
  text-align: center;
}

.product-card-actions .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
  background-color: var(--accent-color);
  color: #ffffff;
}


