/*
Theme Name: Party Collection
Theme URI: https://github.com/xdlovelife
Author: xdlovelife
Author URI: https://github.com/xdlovelife
Description: 专为 B2B Party Collection 设计的 WooCommerce 主题，完整的产品展示和电商功能
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: party-collection
Tags: e-commerce, b2b, woocommerce
*/

/* ===================================
   Reset & Base
   =================================== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #1e293b;
  background-color: #ffffff;
  line-height: 1.6;
}

/* ===================================
   WordPress Core
   =================================== */
.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-content {
  flex: 1;
}

/* ===================================
   Header
   =================================== */
.site-header {
  background: var(--color-white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* ===================================
   Footer
   =================================== */
.site-footer {
  background: var(--color-white);
  border-top: 1px solid #e2e8f0;
  padding: var(--spacing-lg) 0;
}

.footer-widgets {
  padding: var(--spacing-lg) 0;
  border-bottom: 1px solid #e2e8f0;
}

.footer-bottom {
  padding: var(--spacing-md) 0;
}

/* ===================================
   WooCommerce
   =================================== */
.woocommerce .products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.woocommerce .product {
  background: var(--color-white);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.woocommerce .product:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.woocommerce .product img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.woocommerce .price-text {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 1.25rem;
}

.moq-text {
  color: var(--color-text-light);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* ===================================
   Responsive
   =================================== */
@media (max-width: 768px) {
  .woocommerce .products {
    grid-template-columns: 1fr;
  }
  
  .footer-widgets .container {
    padding: 0 var(--spacing-sm);
  }
}

/* ===================================
   Accessibility
   =================================== */
.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 0;
  top: 0;
  z-index: 9999;
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--spacing-xs) var(--spacing-sm);
}

/* ===================================
   WordPress Admin Bar
   =================================== */
.admin-bar .site-header {
  margin-top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    margin-top: 46px;
  }
}
