/*
Theme Name: 摄影后台管理系统
Theme URI: https://example.com/photo-admin
Author: Your Team
Author URI: https://example.com
Description: 专为摄影工作室设计的后台管理系统主题
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: photo-admin
Tags: e-commerce, photography, custom-logo, custom-menu, featured-images
*/

/* ===========================
   Design Tokens — 摄影风格优化
   =========================== */
:root {
  /* 调色板 — 专业摄影风格 */
  --bg: #f8f9fa;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --ink: #2d3436;
  --ink-light: #636e72;
  --muted: #b2bec3;
  --muted-light: #dfe6e9;
  
  /* 主品牌色 — 专业摄影感 */
  --accent: #2c3e50;      /* 深蓝灰 — 专业、稳重 */
  --accent-hover: #1a252f;
  --accent-subtle: rgba(44, 62, 80, 0.08);
  
  /* 次要强调色 — 活力与创意 */
  --secondary: #e17055;    /* 暖橙色 — 活力、创意 */
  --secondary-hover: #d63031;
  --secondary-subtle: rgba(225, 112, 85, 0.08);
  
  /* 信任元素 */
  --trust: #00b894;
  --trust-subtle: rgba(0, 184, 148, 0.08);
  
  /* 价格与价值 */
  --price: #e17055;
  --sale: #d63031;
  
  /* 边框与线条 */
  --line: #e9ecef;
  --line-light: #f8f9fa;
  
  /* 顶部栏 */
  --topbar: #2d3436;
  --topbar-ink: #dfe6e9;
  
  /* 布局 */
  --container: 1200px;

  /* 圆角 */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-full: 999px;

  /* 阴影 */
  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.1);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-accent: 0 4px 14px rgba(44, 62, 80, 0.2);
  --shadow-secondary: 0 4px 14px rgba(225, 112, 85, 0.2);

  /* 间距 */
  --sp-1: 0.25rem;   /* 4px */
  --sp-2: 0.5rem;    /* 8px */
  --sp-3: 0.75rem;   /* 12px */
  --sp-4: 1rem;      /* 16px */
  --sp-5: 1.25rem;   /* 20px */
  --sp-6: 1.5rem;    /* 24px */
  --sp-8: 2rem;      /* 32px */
  --sp-10: 2.5rem;   /* 40px */
  --sp-12: 3rem;     /* 48px */
  --sp-16: 4rem;     /* 64px */

  /* 过渡效果 */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration: 0.3s;
  --duration-slow: 0.5s;
}

/* ===========================
   Reset & Base
   =========================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6,
.site-title {
  font-family: "Inter", "Plus Jakarta Sans", "Avenir Next", sans-serif;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.25;
  font-weight: 700;
}

/* 摄影风格的标题样式 */
h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

/* 产品标题样式 */
.woocommerce-loop-product__title {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 1rem !important;
  line-height: 1.4;
  color: var(--ink);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

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

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

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

/* ===========================
   Layout — Container
   =========================== */
.container {
  width: min(100% - var(--sp-8), var(--container));
  margin-inline: auto;
}

/* ===========================
   Top Bar
   =========================== */
.topbar {
  background: var(--topbar);
  color: var(--topbar-ink);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-3) 0;
  gap: var(--sp-4);
}

.social-links {
  display: flex;
  gap: var(--sp-4);
}

.social-links a {
  color: var(--topbar-ink);
  opacity: 0.7;
  font-weight: 500;
  font-size: 0.8125rem;
  transition: opacity var(--duration) var(--ease), color var(--duration) var(--ease);
}

.social-links a:hover {
  opacity: 1;
  color: #fff;
}

/* ===========================
   摄影风格的布局
   =========================== */
.layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--sp-8);
  margin-top: var(--sp-10);
  align-items: start;
}

/* 产品网格布局 */
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-6);
}

/* 响应式布局调整 */
@media (max-width: 1024px) {
  .layout {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }

  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 768px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: var(--sp-4);
  }
}

@media (max-width: 400px) {
  .woocommerce ul.products {
    grid-template-columns: 1fr !important;
    max-width: 320px;
    margin-inline: auto;
  }
}

/* ===========================
   Site Header
   =========================== */
.site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: box-shadow var(--duration-slow) var(--ease);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.site-header__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--sp-6);
  min-height: 72px;
}

.branding {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.branding .custom-logo {
  height: 40px;
  width: auto;
}

.site-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-title a {
  color: var(--ink);
  transition: opacity var(--duration) var(--ease);
}

.site-title a:hover {
  opacity: 0.75;
  color: var(--ink);
}

.site-description {
  margin: 0.125rem 0 0;
  color: var(--muted);
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
}

/* Header tools */
.header-tools {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.header-cart {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-full);
  background: var(--surface);
  font-weight: 600;
  font-size: 0.875rem;
  white-space: nowrap;
  transition: border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease),
              background var(--duration) var(--ease);
}

.header-cart:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-subtle);
  box-shadow: var(--shadow-accent);
}

/* Primary navigation */
.primary-nav {
  border-top: 1px solid var(--line-light);
}

.primary-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li a {
  display: block;
  color: var(--ink-light);
  font-weight: 600;
  font-size: 0.9rem;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-sm);
  position: relative;
  transition: color var(--duration) var(--ease),
              background var(--duration) var(--ease);
}

.nav-menu li a:hover,
.nav-menu li.current-menu-item a,
.nav-menu li.current_page_item a {
  color: var(--accent);
  background: var(--accent-subtle);
}

.nav-menu li a::after {
  content: "";
  position: absolute;
  left: var(--sp-3);
  right: var(--sp-3);
  bottom: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform var(--duration) var(--ease);
}

.nav-menu li a:hover::after,
.nav-menu li.current-menu-item a::after,
.nav-menu li.current_page_item a::after {
  transform: scaleX(1);
}

/* Mobile nav toggle */
.mobile-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: var(--sp-2) var(--sp-3);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: background var(--duration) var(--ease),
              border-color var(--duration) var(--ease);
}

.mobile-nav-toggle:hover {
  background: var(--bg);
  border-color: var(--muted-light);
}

/* ===========================
   Hero Section — E-Commerce Focus
   =========================== */
.hero {
  margin-top: var(--sp-8);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #ffffff 0%, #e8f3ef 40%, #f0f7f4 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 50%;
  height: 160%;
  background: radial-gradient(ellipse, rgba(45, 106, 79, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  padding: clamp(var(--sp-8), 4vw, var(--sp-16));
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--sp-8);
  align-items: center;
  position: relative;
}

.hero h2 {
  margin: 0 0 var(--sp-4);
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero p {
  color: var(--muted);
  margin: 0 0 var(--sp-6);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ===========================
   Buttons — Action Oriented
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--accent);
  color: #fff;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  border-radius: var(--radius);
  padding: 0.875rem 1.75rem;
  cursor: pointer;
  box-shadow: var(--shadow-accent);
  transition: transform var(--duration) var(--ease-bounce),
              box-shadow var(--duration) var(--ease),
              background var(--duration) var(--ease);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.btn:hover {
  color: #fff;
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(44, 62, 80, 0.3);
}

.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-xs);
}

/* Secondary button style */
.btn-secondary {
  background: var(--secondary);
  box-shadow: var(--shadow-secondary);
}

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

/* 摄影风格的产品卡片 */
.woocommerce ul.products li.product {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 0;
  margin: 0 !important;
  width: 100% !important;
  float: none !important;
  background: var(--surface);
  overflow: hidden;
  transition: transform var(--duration) var(--ease-bounce),
              box-shadow var(--duration-slow) var(--ease);
  position: relative;
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

/* 产品图片样式 */
.woocommerce ul.products li.product a img {
  margin: 0 !important;
  border-radius: 0;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: transform var(--duration-slow) var(--ease);
}

.woocommerce ul.products li.product:hover a img {
  transform: scale(1.05);
}

/* 产品标题样式 */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  padding: var(--sp-4) var(--sp-4) var(--sp-2) !important;
  font-size: 1rem !important;
  font-weight: 600;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

/* 价格样式 */
.woocommerce ul.products li.product .price {
  display: block;
  padding: 0 var(--sp-4) var(--sp-4);
  font-size: 1.1rem;
  color: var(--price);
  font-weight: 700;
  font-family: "Inter", sans-serif;
}

/* 按钮样式 */
.woocommerce ul.products li.product .button {
  margin: 0 var(--sp-4) var(--sp-4) var(--sp-4);
  display: inline-block;
  text-align: center;
  width: calc(100% - var(--sp-8));
  background: var(--accent) !important;
  color: #fff !important;
  border-radius: var(--radius) !important;
  padding: 0.75rem 1.5rem !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.02em !important;
  transition: all var(--duration) var(--ease);
}

.woocommerce ul.products li.product .button:hover {
  background: var(--accent-hover) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-accent);
}

/* ===========================
   Home Sections
   =========================== */
.home-section {
  margin-top: var(--sp-12);
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 var(--sp-6);
  color: var(--ink);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: var(--sp-2);
}

/* Sale badge */
.sale-badge {
  position: absolute;
  top: var(--sp-3);
  left: var(--sp-3);
  background: var(--sale);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===========================
   Product Grid & Cards
   =========================== */
.product-grid,
.post-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-5);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: transform var(--duration) var(--ease-bounce),
              box-shadow var(--duration-slow) var(--ease),
              border-color var(--duration) var(--ease);
  position: relative;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-subtle);
}

.card > a:first-child {
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--bg);
}

.card > a:first-child img,
.card img.wp-post-image,
.card .attachment-woocommerce_thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease);
}

.card:hover > a:first-child img,
.card:hover img.wp-post-image,
.card:hover .attachment-woocommerce_thumbnail {
  transform: scale(1.05);
}

.card h3,
.card h4 {
  margin: var(--sp-3) var(--sp-4) var(--sp-1);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card h3 a,
.card h4 a {
  color: var(--ink);
  transition: color var(--duration) var(--ease);
}

.card h3 a:hover,
.card h4 a:hover {
  color: var(--accent);
}

.price {
  padding: 0 var(--sp-4) var(--sp-4);
  color: var(--price);
  font-weight: 700;
  font-size: 1.1rem;
}

.price del {
  color: var(--muted-light);
  font-weight: 400;
  font-size: 0.875rem;
}

.price ins {
  text-decoration: none;
  color: var(--sale);
  font-weight: 800;
}

/* Add to cart button on card */
.card .add-to-cart {
  margin: 0 var(--sp-4) var(--sp-4) var(--sp-4);
  display: inline-block;
  text-align: center;
  width: calc(100% - var(--sp-8));
  background: var(--accent);
  color: white;
  border-radius: var(--radius-full);
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: all var(--duration) var(--ease);
}

.card .add-to-cart:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* ===========================
   Layout — Two Column
   =========================== */
.layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--sp-8);
  margin-top: var(--sp-10);
  align-items: start;
}

/* Post list */
.post-list .section-title {
  margin-bottom: var(--sp-6);
}

.post-list .post-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-6);
  margin-bottom: var(--sp-5);
  animation: fadeUp 0.5s var(--ease) both;
  transition: box-shadow var(--duration) var(--ease),
              border-color var(--duration) var(--ease);
}

.post-list .post-item:hover {
  box-shadow: var(--shadow);
  border-color: var(--line);
}

.post-list .post-item img {
  border-radius: var(--radius-sm);
  margin-bottom: var(--sp-4);
}

.post-list .post-item h3 {
  margin: 0 0 var(--sp-2);
  font-size: 1.125rem;
}

.post-list .post-item h3 a {
  color: var(--ink);
}

.post-list .post-item h3 a:hover {
  color: var(--accent);
}

.post-list .post-item > p {
  margin: 0 0 var(--sp-2);
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.post-list .post-item > a:last-child {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--accent);
  transition: gap var(--duration) var(--ease);
}

.post-list .post-item > a:last-child:hover {
  gap: var(--sp-2);
}

/* Content pages */
.post-list .post-item h1 {
  margin: 0 0 var(--sp-4);
  font-size: 1.75rem;
}

.post-list .post-item h2 a {
  color: var(--ink);
}

.post-list .post-item h2 a:hover {
  color: var(--accent);
}

/* ===========================
   Sidebar / Widgets
   =========================== */
.widget-area .widget {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-5);
  margin-bottom: var(--sp-5);
}

.widget-area .widget-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 2px solid var(--line-light);
  color: var(--ink);
}

.widget-area .widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.widget-area .widget ul li {
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--line-light);
  font-size: 0.9rem;
}

.widget-area .widget ul li:last-child {
  border-bottom: none;
}

.widget-area .widget ul li a {
  color: var(--ink-light);
  transition: color var(--duration) var(--ease), padding-left var(--duration) var(--ease);
}

.widget-area .widget ul li a:hover {
  color: var(--accent);
  padding-left: var(--sp-2);
}

/* Price filter widget */
.widget .price_slider_wrapper .ui-slider .ui-slider-handle {
  background: var(--accent);
}

.widget .price_slider_wrapper .ui-slider .ui-slider-range {
  background: var(--accent-subtle);
}

/* ===========================
   Footer
   =========================== */
.site-footer {
  margin-top: var(--sp-16);
  background: #1e293b;
  color: #94a3b8;
}

.site-footer a {
  color: #cbd5e1;
  transition: color var(--duration) var(--ease);
}

.site-footer a:hover {
  color: #fff;
}

.footer-widgets {
  padding: var(--sp-12) 0 var(--sp-8);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-8);
}

.footer-widgets .widget-title {
  color: #f1f5f9;
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: var(--sp-4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8125rem;
}

.footer-widgets .widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-widgets .widget ul li {
  padding: var(--sp-1) 0;
}

.footer-widgets .widget ul li a {
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-widgets .widget ul li a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  padding: var(--sp-5) 0;
  font-size: 0.8125rem;
  color: #64748b;
}

/* ===========================
   WooCommerce Overrides — E-Commerce Optimized
   =========================== */
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-5);
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none !important;
  content: none !important;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  margin: 0 !important;
  width: 100% !important;
  float: none !important;
  background: var(--surface);
  overflow: hidden;
  transition: transform var(--duration) var(--ease-bounce),
              box-shadow var(--duration-slow) var(--ease);
  position: relative;
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Sale badge for WooCommerce */
.woocommerce span.onsale {
  background: var(--sale) !important;
  border-radius: var(--radius-full) !important;
  min-height: auto !important;
  min-width: auto !important;
  padding: 0.25rem 0.75rem !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  line-height: 1 !important;
  top: var(--sp-3) !important;
  left: var(--sp-3) !important;
  right: auto !important;
  margin: 0 !important;
}

.woocommerce ul.products li.product a img {
  margin: 0 !important;
  border-radius: 0;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  padding: var(--sp-3) var(--sp-4) var(--sp-1) !important;
  font-size: 0.9375rem !important;
  font-weight: 600;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.woocommerce ul.products li.product .price {
  display: block;
  padding: 0 var(--sp-4) var(--sp-3);
  font-size: 1rem;
  color: var(--price);
  font-weight: 700;
}

.woocommerce ul.products li.product .price del {
  color: var(--muted-light);
}

.woocommerce ul.products li.product .price ins {
  color: var(--sale);
  font-weight: 800;
  text-decoration: none;
}

.woocommerce ul.products li.product .button,
.woocommerce .button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button {
  border-radius: var(--radius-full) !important;
  background: var(--accent) !important;
  color: #fff !important;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.6rem 1.25rem;
  border: none !important;
  cursor: pointer;
  transition: background var(--duration) var(--ease),
              transform var(--duration) var(--ease-bounce),
              box-shadow var(--duration) var(--ease);
}

.woocommerce ul.products li.product .button:hover,
.woocommerce .button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button:hover {
  background: var(--accent-hover) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-accent);
}

.woocommerce ul.products li.product .button {
  margin: 0 var(--sp-4) var(--sp-4) var(--sp-4);
  display: inline-block;
  text-align: center;
  width: calc(100% - var(--sp-8));
}

.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
  margin-bottom: var(--sp-5);
}

.woocommerce nav.woocommerce-pagination {
  margin-top: var(--sp-8);
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  border-radius: var(--radius-sm) !important;
  border-color: var(--line) !important;
  color: var(--ink-light);
  font-weight: 600;
  padding: var(--sp-2) var(--sp-3) !important;
}

.woocommerce nav.woocommerce-pagination ul li a:hover {
  background: var(--accent-subtle) !important;
  color: var(--accent) !important;
  border-color: var(--accent) !important;
}

.woocommerce nav.woocommerce-pagination ul li span.current {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
}

/* Single product */
.woocommerce div.product .product_title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ink);
}

.woocommerce div.product p.price {
  font-size: 1.5rem !important;
  color: var(--price) !important;
  font-weight: 700;
}

.woocommerce div.product p.price ins {
  color: var(--sale);
  text-decoration: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
  padding: 0 !important;
  margin-bottom: var(--sp-6);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  font-weight: 600;
  color: var(--muted);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: var(--accent);
}

/* Cart & Checkout */
.woocommerce table.shop_table {
  border-radius: var(--radius) !important;
  border-color: var(--line) !important;
  overflow: hidden;
}

.woocommerce table.shop_table th {
  background: var(--bg);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.woocommerce .cart-collaterals .cart_totals {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-5);
  background: var(--surface);
}

.woocommerce #payment {
  border-radius: var(--radius) !important;
  background: var(--bg) !important;
}

/* Trust badges on checkout */
.trust-badge {
  display: flex;
  gap: var(--sp-4);
  justify-content: center;
  margin-top: var(--sp-4);
  padding: var(--sp-3);
  background: var(--trust-subtle);
  border-radius: var(--radius);
  font-size: 0.75rem;
  color: var(--trust);
}

/* Notices */
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info {
  border-top-color: var(--accent) !important;
  border-radius: var(--radius-sm);
}

.woocommerce .woocommerce-error {
  border-radius: var(--radius-sm);
}

/* ===========================
   Search Form
   =========================== */
.search-form {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
}

.search-form label {
  display: block;
  flex: 1;
}

.search-field {
  border: 1px solid var(--line);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  min-width: 200px;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  outline: none;
  background: var(--surface);
  color: var(--ink);
  transition: border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}

.search-field::placeholder {
  color: var(--muted-light);
}

.search-field:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

.search-submit {
  border: 1px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.75rem 1.25rem;
  color: #fff;
  background: var(--accent);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--duration) var(--ease),
              transform var(--duration) var(--ease);
}

.search-submit:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* ===========================
   WooCommerce Ordering
   =========================== */
.woocommerce-ordering {
  margin-bottom: var(--sp-5);
}

.woocommerce-ordering select.orderby {
  width: 100%;
  max-width: 300px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.875rem;
  font-family: "Inter", sans-serif;
  cursor: pointer;
  transition: border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23636e72' 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: 16px;
}

.woocommerce-ordering select.orderby:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

.woocommerce-ordering select.orderby option {
  padding: 0.5rem;
  background: var(--surface);
  color: var(--ink);
}

/* ===========================
   WP Block Search
   =========================== */
.wp-block-search {
  margin-bottom: var(--sp-5);
}

.wp-block-search__label {
  display: block;
  margin-bottom: var(--sp-2);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
}

.wp-block-search__inside-wrapper {
  display: flex;
  align-items: center;
  gap: 0;
}

.wp-block-search__input {
  flex: 1;
  border: 1px solid var(--line);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  outline: none;
  background: var(--surface);
  color: var(--ink);
  transition: border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}

.wp-block-search__input::placeholder {
  color: var(--muted-light);
}

.wp-block-search__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

.wp-block-search__button {
  border: 1px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.75rem 1.25rem;
  color: #fff;
  background: var(--accent);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background var(--duration) var(--ease),
              transform var(--duration) var(--ease);
              margin-left: 0;
}

.wp-block-search__button:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* ===========================
   Quantity Input
   =========================== */
.quantity {
  display: flex;
  align-items: center;
  margin-bottom: var(--sp-4);
}

.quantity label {
  display: block;
  margin-bottom: var(--sp-2);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--ink);
}

.quantity .input-text.qty.text {
  width: 80px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.875rem;
  font-family: "Inter", sans-serif;
  text-align: center;
  transition: border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}

.quantity .input-text.qty.text:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

.quantity .input-text.qty.text::-webkit-inner-spin-button,
.quantity .input-text.qty.text::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.quantity .input-text.qty.text {
  -moz-appearance: textfield;
}

/* ===========================
   Comment Form
   =========================== */
.comment-form-comment {
  margin-bottom: var(--sp-5);
}

.comment-form-comment label {
  display: block;
  margin-bottom: var(--sp-2);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
}

.comment-form-comment label .required {
  color: var(--secondary);
  font-weight: 700;
}

.comment-form-comment textarea {
  width: 100%;
  min-height: 120px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.875rem;
  font-family: "Inter", sans-serif;
  line-height: 1.5;
  resize: vertical;
  transition: border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}

.comment-form-comment textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

.comment-form-comment textarea::placeholder {
  color: var(--muted-light);
}

/* ===========================
   Pix Payment Box
   =========================== */
.pix-box {
  border: 1px dashed var(--accent);
  background: var(--accent-subtle);
  border-radius: var(--radius-sm);
  padding: var(--sp-4);
  margin-top: var(--sp-4);
}

.pix-copy {
  display: block;
  width: 100%;
  min-height: 88px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius-sm);
  padding: var(--sp-3);
  font-family: monospace;
  font-size: 0.875rem;
}

/* ===========================
   Animations
   =========================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Staggered card animation */
.product-grid .card:nth-child(1) { animation: fadeUp 0.5s var(--ease) 0.05s both; }
.product-grid .card:nth-child(2) { animation: fadeUp 0.5s var(--ease) 0.1s both; }
.product-grid .card:nth-child(3) { animation: fadeUp 0.5s var(--ease) 0.15s both; }
.product-grid .card:nth-child(4) { animation: fadeUp 0.5s var(--ease) 0.2s both; }
.product-grid .card:nth-child(5) { animation: fadeUp 0.5s var(--ease) 0.25s both; }
.product-grid .card:nth-child(6) { animation: fadeUp 0.5s var(--ease) 0.3s both; }
.product-grid .card:nth-child(7) { animation: fadeUp 0.5s var(--ease) 0.35s both; }
.product-grid .card:nth-child(8) { animation: fadeUp 0.5s var(--ease) 0.4s both; }

/* Post items stagger */
.post-list .post-item:nth-child(2) { animation-delay: 0.08s; }
.post-list .post-item:nth-child(3) { animation-delay: 0.16s; }
.post-list .post-item:nth-child(4) { animation-delay: 0.24s; }
.post-list .post-item:nth-child(5) { animation-delay: 0.32s; }
.post-list .post-item:nth-child(6) { animation-delay: 0.4s; }

/* ===========================
   Pagination
   =========================== */
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  margin-top: var(--sp-8);
}

.nav-links a,
.nav-links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 var(--sp-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--ink-light);
  background: var(--surface);
  transition: all var(--duration) var(--ease);
}

.nav-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-subtle);
}

.nav-links span.current {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ===========================
   Utility: Screen Reader Text
   =========================== */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  word-wrap: normal !important;
}

/* ===========================
   Responsive — Tablet (≤1024px)
   =========================== */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__inner > div:last-child {
    display: none;
  }

  .layout {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }

  .product-grid,
  .post-grid,
  .woocommerce ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .footer-widgets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-6);
  }

  .site-header__row {
    gap: var(--sp-4);
    min-height: 64px;
  }
}

/* ===========================
   Responsive — Large Phone (≤768px)
   =========================== */
@media (max-width: 768px) {
  .product-grid,
  .post-grid,
  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: var(--sp-3);
  }

  .footer-widgets {
    grid-template-columns: 1fr;
  }

  .hero {
    margin-top: var(--sp-5);
    border-radius: var(--radius-lg);
  }

  .hero h2 {
    font-size: 1.5rem;
  }

  .home-section {
    margin-top: var(--sp-8);
  }

  .section-title {
    font-size: 1.25rem;
  }

  .site-footer {
    margin-top: var(--sp-10);
  }
}

/* ===========================
   Responsive — Phone (≤600px)
   =========================== */
@media (max-width: 600px) {
  .container {
    width: min(100% - var(--sp-4), var(--container));
  }

  /* Header stacks */
  .site-header__row {
    grid-template-columns: 1fr auto;
    gap: var(--sp-3);
    min-height: 56px;
    padding: var(--sp-2) 0;
  }

  .site-title {
    font-size: 1.2rem;
  }

  .site-description {
    display: none;
  }

  .header-tools {
    grid-column: 1 / -1;
    order: 3;
    justify-content: stretch;
    flex-wrap: nowrap;
    gap: var(--sp-2);
  }

  .header-tools .search-form {
    flex: 1;
  }

  .search-field {
    min-width: 0;
    width: 100%;
  }

  .mobile-nav-toggle {
    display: inline-flex;
  }

  .primary-nav .container {
    flex-wrap: wrap;
    padding: var(--sp-2) 0;
  }

  .nav-menu {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: var(--sp-3);
    background: var(--surface);
    border-radius: var(--radius-sm);
  }

  .nav-menu.is-open {
    display: flex;
    animation: fadeIn 0.2s var(--ease) both;
  }

  .nav-menu li a {
    padding: var(--sp-3) var(--sp-4);
    border-radius: 0;
    border-bottom: 1px solid var(--line-light);
  }

  .nav-menu li:last-child a {
    border-bottom: none;
  }

  .nav-menu li a::after {
    display: none;
  }

  /* Single column products on small phones */
  .product-grid,
  .post-grid,
  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: var(--sp-3);
  }

  .card h3,
  .card h4 {
    font-size: 0.8125rem;
    margin: var(--sp-2) var(--sp-3) var(--sp-1);
  }

  .price {
    padding: 0 var(--sp-3) var(--sp-3);
    font-size: 0.9rem;
  }

  .hero__inner {
    padding: var(--sp-6);
  }

  .btn {
    padding: 0.65rem 1.25rem;
    font-size: 0.875rem;
  }

  .layout {
    gap: var(--sp-6);
  }

  .post-list .post-item {
    padding: var(--sp-4);
  }

  .widget-area .widget {
    padding: var(--sp-4);
  }

  .footer-widgets {
    padding: var(--sp-8) 0 var(--sp-5);
    gap: var(--sp-6);
  }
}

/* ===========================
   Responsive — Small Phone (≤400px)
   =========================== */
@media (max-width: 400px) {
  .product-grid,
  .post-grid,
  .woocommerce ul.products {
    grid-template-columns: 1fr !important;
    max-width: 320px;
    margin-inline: auto;
  }

  .topbar .container {
    flex-direction: column;
    gap: var(--sp-1);
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  .header-cart {
    font-size: 0.8rem;
    padding: var(--sp-2) var(--sp-3);
  }
}

/* ===========================
   Print
   =========================== */
@media print {
  .topbar,
  .primary-nav,
  .mobile-nav-toggle,
  .site-footer,
  .search-form,
  .header-cart {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .site-header {
    position: static;
    border: none;
    box-shadow: none;
  }
}

