/*
Theme Name: SkinGlow
Theme URI: https://example.com/skinglow
Author: Your Name
Author URI: https://example.com
Description: A professional, modern WordPress theme designed for skincare blogs with WooCommerce integration. Features beautiful design, SEO optimization, featured posts, email signup, social media integration, and full page builder support.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: skinglow
Tags: blog, e-commerce, two-columns, right-sidebar, custom-background, custom-colors, custom-header, custom-menu, featured-images, flexible-header, footer-widgets, rtl-language-support, theme-options, threaded-comments, translation-ready
*/

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

/* CSS Variables & Design Tokens */
:root {
  --color-primary: #E8B4B8;
  --color-primary-dark: #D89BA0;
  --color-primary-light: #F5D9DC;
  --color-secondary: #A8C9A5;
  --color-secondary-dark: #8FB48C;
  --color-secondary-light: #C9E3C7;
  --color-accent: #F4E4D7;
  --color-accent-dark: #E8D4C4;
  --color-white: #FFFFFF;
  --color-off-white: #FDFCFB;
  --color-light-gray: #F7F5F3;
  --color-gray: #E5E1DD;
  --color-medium-gray: #A8A29E;
  --color-dark-gray: #57534E;
  --color-black: #1C1917;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  --spacing-xs: 0.5rem;
  --spacing-sm: 0.75rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  --spacing-4xl: 6rem;
  --container-width: 1200px;
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --border-radius-lg: 16px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --transition-fast: 150ms ease-in-out;
  --transition-base: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;
}

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

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

body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: 1.7;
  color: var(--color-dark-gray);
  background-color: var(--color-off-white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-black);
  margin-bottom: var(--spacing-md);
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

p { margin-bottom: var(--spacing-lg); }

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

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

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

.site-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-content {
  flex: 1;
  padding: var(--spacing-3xl) 0;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.content-area {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--spacing-2xl);
  align-items: start;
}

.main-content { min-width: 0; }

/* Header */
.site-header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-gray);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-lg) 0;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.site-logo img {
  max-height: 50px;
  width: auto;
}

.site-title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin: 0;
}

.site-title a { color: var(--color-black); }

.site-description {
  font-size: var(--font-size-sm);
  color: var(--color-medium-gray);
  font-style: italic;
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
}

.main-navigation ul {
  display: flex;
  list-style: none;
  gap: var(--spacing-lg);
  margin: 0;
}

.main-navigation a {
  color: var(--color-dark-gray);
  font-weight: 500;
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: var(--spacing-xs) var(--spacing-sm);
  transition: all var(--transition-fast);
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
  color: var(--color-primary-dark);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-sm);
  color: var(--color-dark-gray);
  font-size: var(--font-size-xl);
}

.header-social {
  display: flex;
  gap: var(--spacing-sm);
}

.header-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-light-gray);
  color: var(--color-dark-gray);
  transition: all var(--transition-fast);
}

.header-social a:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* Featured Posts */
.featured-posts {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-secondary-light) 100%);
  padding: var(--spacing-3xl) 0;
  margin-bottom: var(--spacing-3xl);
}

.featured-posts-title {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
  font-size: var(--font-size-3xl);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
}

.featured-post {
  background: var(--color-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.featured-post:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.featured-post-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.featured-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.featured-post:hover .featured-post-image img {
  transform: scale(1.05);
}

.featured-badge {
  position: absolute;
  top: var(--spacing-md);
  left: var(--spacing-md);
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--border-radius-sm);
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.featured-post-content {
  padding: var(--spacing-lg);
}

.featured-post-title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--spacing-sm);
}

.featured-post-title a { color: var(--color-black); }

.featured-post-excerpt {
  color: var(--color-medium-gray);
  font-size: var(--font-size-sm);
  margin-bottom: var(--spacing-md);
}

.featured-post-meta {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  font-size: var(--font-size-xs);
  color: var(--color-medium-gray);
}

/* Blog Posts Grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--spacing-2xl);
  margin-bottom: var(--spacing-3xl);
}

.post-card {
  background: var(--color-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.post-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.post-thumbnail {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.post-card:hover .post-thumbnail img {
  transform: scale(1.08);
}

.post-category {
  position: absolute;
  bottom: var(--spacing-md);
  left: var(--spacing-md);
  background: var(--color-white);
  color: var(--color-primary-dark);
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--border-radius-sm);
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
}

.post-content {
  padding: var(--spacing-lg);
}

.post-title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--spacing-sm);
  line-height: 1.4;
}

.post-title a {
  color: var(--color-black);
  transition: color var(--transition-fast);
}

.post-title a:hover {
  color: var(--color-primary-dark);
}

.post-excerpt {
  color: var(--color-medium-gray);
  margin-bottom: var(--spacing-md);
  line-height: 1.6;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  font-size: var(--font-size-sm);
  color: var(--color-medium-gray);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--color-gray);
}

.post-author, .post-date {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  color: var(--color-primary-dark);
  font-weight: 600;
  font-size: var(--font-size-sm);
  margin-top: var(--spacing-md);
  transition: gap var(--transition-fast);
}

.read-more:hover { gap: var(--spacing-sm); }

/* Single Post */
.single-post-header {
  text-align: center;
  margin-bottom: var(--spacing-3xl);
}

.single-post-title {
  font-size: var(--font-size-5xl);
  margin-bottom: var(--spacing-lg);
  line-height: 1.2;
}

.single-post-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-lg);
  color: var(--color-medium-gray);
  font-size: var(--font-size-sm);
}

.featured-image {
  margin-bottom: var(--spacing-3xl);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.entry-content {
  font-size: var(--font-size-lg);
  line-height: 1.8;
  color: var(--color-dark-gray);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: var(--spacing-2xl);
  margin-bottom: var(--spacing-lg);
}

.entry-content p { margin-bottom: var(--spacing-xl); }

.entry-content ul,
.entry-content ol {
  margin-bottom: var(--spacing-xl);
  padding-left: var(--spacing-xl);
}

.entry-content li { margin-bottom: var(--spacing-sm); }

.entry-content blockquote {
  border-left: 4px solid var(--color-primary);
  padding: var(--spacing-lg) var(--spacing-xl);
  margin: var(--spacing-2xl) 0;
  background: var(--color-light-gray);
  border-radius: var(--border-radius-sm);
  font-style: italic;
  color: var(--color-dark-gray);
}

/* Author Bio */
.author-bio {
  background: var(--color-light-gray);
  border-radius: var(--border-radius);
  padding: var(--spacing-xl);
  margin: var(--spacing-3xl) 0;
  display: flex;
  gap: var(--spacing-lg);
}

.author-avatar { flex-shrink: 0; }

.author-avatar img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--color-white);
}

.author-info h3 {
  margin-bottom: var(--spacing-xs);
  font-size: var(--font-size-xl);
}

.author-description {
  color: var(--color-medium-gray);
  margin-bottom: var(--spacing-md);
}

.author-social {
  display: flex;
  gap: var(--spacing-sm);
}

.author-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-dark-gray);
  transition: all var(--transition-fast);
}

.author-social a:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* Related Posts */
.related-posts {
  margin: var(--spacing-4xl) 0;
}

.related-posts-title {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
  font-size: var(--font-size-3xl);
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-xl);
}

/* Product/Review Box */
.product-box {
  background: linear-gradient(135deg, var(--color-accent-dark) 0%, var(--color-accent) 100%);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-2xl);
  margin: var(--spacing-3xl) 0;
  box-shadow: var(--shadow-lg);
}

.product-box-header {
  display: flex;
  align-items: start;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.product-image {
  flex-shrink: 0;
  width: 150px;
  height: 150px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info h3 {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--spacing-sm);
}

.product-rating {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-sm);
  color: #F59E0B;
  font-size: var(--font-size-lg);
}

.product-price {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-primary-dark);
}

.product-description {
  margin-bottom: var(--spacing-lg);
  line-height: 1.7;
}

.product-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.product-pros,
.product-cons {
  background: var(--color-white);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius);
}

.product-pros h4,
.product-cons h4 {
  margin-bottom: var(--spacing-md);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.product-pros h4 { color: var(--color-secondary-dark); }
.product-cons h4 { color: #DC2626; }

.product-pros ul,
.product-cons ul {
  list-style: none;
  padding: 0;
}

.product-pros li,
.product-cons li {
  padding-left: var(--spacing-lg);
  position: relative;
  margin-bottom: var(--spacing-xs);
}

.product-pros li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-secondary-dark);
  font-weight: 700;
}

.product-cons li::before {
  content: "✗";
  position: absolute;
  left: 0;
  color: #DC2626;
  font-weight: 700;
}

.product-button {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  background: var(--color-primary-dark);
  color: var(--color-white);
  padding: var(--spacing-md) var(--spacing-2xl);
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: var(--font-size-lg);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-md);
}

.product-button:hover {
  background: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--color-white);
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: calc(80px + var(--spacing-lg));
}

.widget {
  background: var(--color-white);
  border-radius: var(--border-radius);
  padding: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
  border-bottom: 2px solid var(--color-primary);
}

.widget ul { list-style: none; }

.widget li {
  margin-bottom: var(--spacing-sm);
  padding-bottom: var(--spacing-sm);
  border-bottom: 1px solid var(--color-gray);
}

.widget li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.widget a {
  color: var(--color-dark-gray);
  transition: color var(--transition-fast);
}

.widget a:hover { color: var(--color-primary-dark); }

.search-form {
  display: flex;
  gap: var(--spacing-xs);
}

.search-field {
  flex: 1;
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid var(--color-gray);
  border-radius: var(--border-radius-sm);
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
}

.search-submit {
  padding: var(--spacing-sm) var(--spacing-lg);
  background: var(--color-primary-dark);
  color: var(--color-white);
  border: none;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  font-weight: 600;
  transition: background var(--transition-fast);
}

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

/* Email Signup */
.email-signup {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  padding: var(--spacing-3xl) 0;
  margin: var(--spacing-4xl) 0;
  text-align: center;
  color: var(--color-white);
}

.email-signup-title {
  font-size: var(--font-size-3xl);
  color: var(--color-white);
  margin-bottom: var(--spacing-md);
}

.email-signup-description {
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-2xl);
  opacity: 0.95;
}

.email-signup-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  gap: var(--spacing-sm);
}

.email-signup-form input[type="email"] {
  flex: 1;
  padding: var(--spacing-md) var(--spacing-lg);
  border: none;
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: var(--font-size-base);
}

.email-signup-form button {
  padding: var(--spacing-md) var(--spacing-2xl);
  background: var(--color-black);
  color: var(--color-white);
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.email-signup-form button:hover {
  background: var(--color-dark-gray);
  transform: translateY(-2px);
}

/* Footer */
.site-footer {
  background: var(--color-black);
  color: var(--color-gray);
  padding: var(--spacing-4xl) 0 var(--spacing-xl);
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-2xl);
  margin-bottom: var(--spacing-3xl);
}

.footer-widget h3 {
  color: var(--color-white);
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-widget ul { list-style: none; }

.footer-widget li { margin-bottom: var(--spacing-sm); }

.footer-widget a {
  color: var(--color-gray);
  transition: color var(--transition-fast);
}

.footer-widget a:hover { color: var(--color-primary); }

.instagram-feed {
  background: var(--color-dark-gray);
  padding: var(--spacing-3xl) 0;
  margin-bottom: var(--spacing-3xl);
}

.instagram-title {
  text-align: center;
  color: var(--color-white);
  font-size: var(--font-size-2xl);
  margin-bottom: var(--spacing-2xl);
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--spacing-sm);
}

.instagram-item {
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
}

.instagram-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.instagram-item:hover img { transform: scale(1.1); }

.footer-bottom {
  border-top: 1px solid var(--color-dark-gray);
  padding-top: var(--spacing-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
}

.footer-social {
  display: flex;
  gap: var(--spacing-md);
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-dark-gray);
  color: var(--color-white);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--color-primary);
  transform: translateY(-3px);
}

.back-to-top {
  position: fixed;
  bottom: var(--spacing-xl);
  right: var(--spacing-xl);
  width: 50px;
  height: 50px;
  background: var(--color-primary-dark);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xl);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--color-primary);
  transform: translateY(-5px);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-sm);
  margin: var(--spacing-3xl) 0;
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--spacing-md);
  border-radius: var(--border-radius-sm);
  background: var(--color-white);
  color: var(--color-dark-gray);
  font-weight: 500;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.pagination a:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}

.pagination .current {
  background: var(--color-primary-dark);
  color: var(--color-white);
}

/* Comments */
.comments-area {
  margin-top: var(--spacing-4xl);
  padding-top: var(--spacing-3xl);
  border-top: 2px solid var(--color-gray);
}

.comments-title {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--spacing-2xl);
}

.comment-list { list-style: none; }

.comment {
  margin-bottom: var(--spacing-2xl);
  padding: var(--spacing-xl);
  background: var(--color-light-gray);
  border-radius: var(--border-radius);
}

.comment-author {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.comment-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.comment-metadata {
  font-size: var(--font-size-sm);
  color: var(--color-medium-gray);
}

.comment-content { margin-left: 66px; }

.reply { margin-top: var(--spacing-md); }

.comment-reply-link {
  font-size: var(--font-size-sm);
  color: var(--color-primary-dark);
  font-weight: 600;
}

.comment-form { margin-top: var(--spacing-3xl); }

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: var(--spacing-md);
  border: 1px solid var(--color-gray);
  border-radius: var(--border-radius-sm);
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  margin-bottom: var(--spacing-md);
}

.comment-form textarea {
  min-height: 150px;
  resize: vertical;
}

.comment-form input[type="submit"] {
  background: var(--color-primary-dark);
  color: var(--color-white);
  padding: var(--spacing-md) var(--spacing-2xl);
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.comment-form input[type="submit"]:hover {
  background: var(--color-primary);
  transform: translateY(-2px);
}

/* WooCommerce */
.woocommerce-page .content-area {
  grid-template-columns: 1fr;
}

.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-xl);
  list-style: none;
  margin: 0;
  padding: 0;
}

.woocommerce ul.products li.product {
  background: var(--color-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

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

.woocommerce ul.products li.product img {
  width: 100%;
  height: auto;
}

.woocommerce ul.products li.product .price {
  color: var(--color-primary-dark);
  font-weight: 700;
  font-size: var(--font-size-lg);
}

.woocommerce a.button,
.woocommerce button.button {
  background: var(--color-primary-dark);
  color: var(--color-white);
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  transition: all var(--transition-fast);
}

.woocommerce a.button:hover,
.woocommerce button.button:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* Responsive */
@media (max-width: 1024px) {
  :root {
    --font-size-5xl: 2.5rem;
    --font-size-4xl: 2rem;
    --font-size-3xl: 1.75rem;
  }
  
  .content-area {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  :root {
    --spacing-3xl: 3rem;
    --spacing-4xl: 4rem;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .main-navigation {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--color-white);
    padding: var(--spacing-2xl);
    box-shadow: var(--shadow-xl);
    transition: left var(--transition-base);
    z-index: 9999;
  }
  
  .main-navigation.active {
    left: 0;
  }
  
  .main-navigation ul {
    flex-direction: column;
    gap: var(--spacing-md);
  }
  
  .header-social {
    display: none;
  }
  
  .posts-grid,
  .featured-grid,
  .related-posts-grid,
  .product-features {
    grid-template-columns: 1fr;
  }
  
  .author-bio {
    flex-direction: column;
    text-align: center;
  }
  
  .email-signup-form {
    flex-direction: column;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  :root {
    --font-size-5xl: 2rem;
    --font-size-4xl: 1.75rem;
    --font-size-3xl: 1.5rem;
  }
  
  .product-box-header {
    flex-direction: column;
  }
  
  .product-image {
    width: 100%;
    height: 200px;
  }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

.alignleft {
  float: left;
  margin-right: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

.alignright {
  float: right;
  margin-left: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

@media print {
  .site-header,
  .site-footer,
  .sidebar,
  .related-posts,
  .comments-area,
  .back-to-top {
    display: none;
  }
  
  .content-area {
    grid-template-columns: 1fr;
  }
}
