/*
Theme Name: مفید گیفت
Theme URI: https://mofidgift.com
Author: مفید گیفت
Author URI: https://mofidgift.com
Description: قالب فروشگاهی حرفه‌ای برای هدایای تبلیغاتی - مفید گیفت با طراحی مدرن، سئو بالا و پنل مدیریت کامل
Version: 1.0.0
Requires at least: 5.0
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: mofidgift
Tags: rtl, right-to-left, custom-logo, custom-menu, featured-images, translation-ready, woocommerce
*/

/* ============================================
   مفید گیفت - قالب هدایای تبلیغاتی
   ============================================ */

:root {
  --mg-primary: #0d9488;
  --mg-primary-dark: #0f766e;
  --mg-primary-light: #14b8a6;
  --mg-secondary: #059669;
  --mg-accent: #f59e0b;
  --mg-bg: #f8fafc;
  --mg-white: #ffffff;
  --mg-text: #1e293b;
  --mg-text-light: #64748b;
  --mg-border: #e2e8f0;
  --mg-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --mg-radius: 12px;
  --mg-radius-lg: 16px;
  --mg-font: 'Vazirmatn', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--mg-font);
  background-color: var(--mg-bg);
  color: var(--mg-text);
  line-height: 1.7;
  direction: rtl;
}

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

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

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

/* ====== LAYOUT ====== */
.mg-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.mg-section {
  padding: 64px 0;
}

/* ====== HEADER ====== */
.mg-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  border-bottom: 1px solid var(--mg-border);
}

.mg-header-topbar {
  background: var(--mg-primary);
  color: white;
  font-size: 12px;
  padding: 6px 0;
}

.mg-header-topbar .mg-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mg-header-main {
  padding: 12px 0;
}

.mg-header-main .mg-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mg-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.mg-logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--mg-primary), var(--mg-secondary));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 12px rgba(13,148,136,0.3);
}

.mg-logo-text {
  line-height: 1.2;
}

.mg-logo-name {
  font-size: 18px;
  font-weight: 900;
  color: var(--mg-text);
}

.mg-logo-accent {
  color: var(--mg-primary);
}

.mg-logo-tagline {
  font-size: 10px;
  color: var(--mg-text-light);
}

.mg-search-form {
  flex: 1;
  max-width: 400px;
  display: flex;
}

.mg-search-form input {
  flex: 1;
  border: 1px solid var(--mg-border);
  border-left: none;
  border-radius: 0 8px 8px 0;
  padding: 10px 14px;
  font-family: var(--mg-font);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.mg-search-form input:focus {
  border-color: var(--mg-primary);
}

.mg-search-form button {
  background: var(--mg-primary);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px 0 0 8px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}

.mg-search-form button:hover {
  background: var(--mg-primary-dark);
}

.mg-nav-menu {
  display: flex;
  list-style: none;
  gap: 4px;
}

.mg-nav-menu a {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--mg-text-light);
  border-radius: 8px;
  transition: all 0.2s;
}

.mg-nav-menu a:hover,
.mg-nav-menu .current-menu-item a {
  color: var(--mg-primary);
  background: rgba(13,148,136,0.08);
}

.mg-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mg-btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--mg-border);
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s;
  text-decoration: none;
  position: relative;
}

.mg-btn-icon:hover {
  background: var(--mg-bg);
}

.mg-cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #ef4444;
  color: white;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mg-mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--mg-border);
  background: white;
  cursor: pointer;
  font-size: 18px;
}

.mg-mobile-menu {
  display: none;
  padding: 12px 16px;
  border-top: 1px solid var(--mg-border);
  background: white;
}

.mg-mobile-menu a {
  display: block;
  padding: 10px 0;
  font-size: 14px;
  color: var(--mg-text);
  border-bottom: 1px solid var(--mg-bg);
}

.mg-mobile-search {
  margin-bottom: 12px;
}

.mg-mobile-search input {
  width: 100%;
  border: 1px solid var(--mg-border);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: var(--mg-font);
  font-size: 14px;
  outline: none;
}

/* ====== HERO ====== */
.mg-hero {
  background: linear-gradient(135deg, #f0fdfa 0%, #ffffff 50%, #ecfdf5 100%);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.mg-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  background: rgba(13,148,136,0.15);
  border-radius: 50%;
  filter: blur(80px);
}

.mg-hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 350px;
  height: 350px;
  background: rgba(5,150,105,0.12);
  border-radius: 50%;
  filter: blur(80px);
}

.mg-hero .mg-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.mg-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: white;
  border: 1px solid rgba(13,148,136,0.15);
  color: var(--mg-primary);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 50px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.mg-hero h1 {
  font-size: 36px;
  font-weight: 900;
  color: var(--mg-text);
  margin-top: 20px;
  line-height: 1.4;
}

.mg-hero-subtitle {
  color: var(--mg-text-light);
  font-size: 15px;
  margin-top: 16px;
  line-height: 1.9;
}

.mg-hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.mg-btn-primary {
  background: var(--mg-primary);
  color: white;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  text-decoration: none;
  font-family: var(--mg-font);
  box-shadow: 0 4px 12px rgba(13,148,136,0.3);
}

.mg-btn-primary:hover {
  background: var(--mg-primary-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(13,148,136,0.4);
}

.mg-btn-secondary {
  background: white;
  color: var(--mg-text);
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid var(--mg-border);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  text-decoration: none;
  font-family: var(--mg-font);
}

.mg-btn-secondary:hover {
  border-color: var(--mg-primary);
  color: var(--mg-primary);
}

.mg-hero-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 36px;
}

.mg-hero-stat {
  text-align: center;
}

.mg-hero-stat-num {
  font-size: 22px;
  font-weight: 900;
  color: var(--mg-primary);
}

.mg-hero-stat-label {
  font-size: 11px;
  color: var(--mg-text-light);
}

.mg-hero-stat-sep {
  width: 1px;
  height: 36px;
  background: var(--mg-border);
}

.mg-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mg-hero-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.mg-hero-card.gradient {
  background: linear-gradient(135deg, var(--mg-primary), var(--mg-secondary));
  color: white;
}

.mg-hero-card-icon {
  font-size: 40px;
}

.mg-hero-card-title {
  font-weight: 700;
  font-size: 13px;
  margin-top: 10px;
}

.mg-hero-card.gradient .mg-hero-card-title {
  color: white;
}

/* ====== SECTION TITLES ====== */
.mg-section-title {
  text-align: center;
  margin-bottom: 36px;
}

.mg-section-title h2 {
  font-size: 28px;
  font-weight: 900;
  color: var(--mg-text);
}

.mg-section-title p {
  color: var(--mg-text-light);
  margin-top: 8px;
  font-size: 15px;
}

/* ====== PRODUCTS ====== */
.mg-products-section {
  padding: 64px 0;
}

.mg-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
}

.mg-filter-btn {
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid var(--mg-border);
  background: white;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--mg-font);
  color: var(--mg-text-light);
}

.mg-filter-btn:hover {
  border-color: var(--mg-primary);
  color: var(--mg-primary);
}

.mg-filter-btn.active {
  background: var(--mg-primary);
  color: white;
  border-color: var(--mg-primary);
}

.mg-products-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.mg-products-count {
  font-size: 13px;
  color: var(--mg-text-light);
}

.mg-sort-select {
  border: 1px solid var(--mg-border);
  border-radius: 10px;
  padding: 8px 12px;
  font-family: var(--mg-font);
  font-size: 13px;
  outline: none;
  cursor: pointer;
  background: white;
}

.mg-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.mg-product-card {
  background: white;
  border-radius: var(--mg-radius-lg);
  border: 1px solid var(--mg-border);
  overflow: hidden;
  transition: all 0.3s;
}

.mg-product-card:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  transform: translateY(-4px);
}

.mg-product-img-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--mg-bg);
}

.mg-product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

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

.mg-product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  color: white;
}

.mg-product-badge.sale { background: #ef4444; }
.mg-product-badge.new { background: #3b82f6; }
.mg-product-badge.hot { background: #8b5cf6; }
.mg-product-badge.special { background: #f59e0b; }
.mg-product-badge.popular { background: var(--mg-primary); }

.mg-product-outofstock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mg-product-outofstock-label {
  background: white;
  color: var(--mg-text);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 8px;
}

.mg-product-body {
  padding: 14px;
}

.mg-product-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--mg-text);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 44px;
}

.mg-product-desc {
  font-size: 11px;
  color: var(--mg-text-light);
  margin-top: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mg-product-rating {
  color: #fbbf24;
  font-size: 11px;
  margin-top: 6px;
}

.mg-product-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 12px;
}

.mg-product-price-wrap {}

.mg-product-old-price {
  font-size: 11px;
  color: var(--mg-text-light);
  text-decoration: line-through;
  display: block;
}

.mg-product-price {
  font-size: 15px;
  font-weight: 900;
  color: var(--mg-primary);
}

.mg-product-price span {
  font-size: 11px;
  font-weight: 400;
  color: var(--mg-text-light);
}

.mg-add-to-cart {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--mg-primary);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s;
  text-decoration: none;
}

.mg-add-to-cart:hover {
  background: var(--mg-primary-dark);
  transform: scale(1.1);
}

.mg-add-to-cart:disabled {
  background: var(--mg-border);
  cursor: not-allowed;
  transform: none;
}

.mg-no-products {
  text-align: center;
  padding: 80px 0;
  color: var(--mg-text-light);
  grid-column: 1 / -1;
}

.mg-no-products-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

/* ====== FEATURES ====== */
.mg-features-section {
  padding: 64px 0;
  background: white;
}

.mg-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.mg-feature-card {
  background: var(--mg-bg);
  border: 1px solid var(--mg-border);
  border-radius: var(--mg-radius-lg);
  padding: 32px;
  text-align: center;
  transition: all 0.3s;
}

.mg-feature-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.mg-feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto;
  background: rgba(13,148,136,0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.mg-feature-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--mg-text);
  margin-top: 16px;
}

.mg-feature-desc {
  font-size: 13px;
  color: var(--mg-text-light);
  margin-top: 8px;
  line-height: 1.8;
}

/* ====== ABOUT ====== */
.mg-about-section {
  padding: 64px 0;
  background: linear-gradient(135deg, #f0fdfa 0%, #ecfdf5 100%);
}

.mg-about-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 40px;
  align-items: center;
}

.mg-about-icon {
  text-align: center;
  font-size: 80px;
}

.mg-about-content {
  text-align: right;
}

.mg-about-content h2 {
  font-size: 26px;
  font-weight: 900;
  color: var(--mg-text);
  margin-bottom: 16px;
}

.mg-about-content p {
  color: var(--mg-text-light);
  font-size: 15px;
  line-height: 1.9;
}

/* ====== CONTACT ====== */
.mg-contact-section {
  padding: 64px 0;
  background: white;
}

.mg-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.mg-contact-card {
  background: var(--mg-bg);
  border: 1px solid var(--mg-border);
  border-radius: var(--mg-radius-lg);
  padding: 24px;
  text-align: center;
}

.mg-contact-card-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.mg-contact-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--mg-text);
  margin-bottom: 6px;
}

.mg-contact-card p {
  font-size: 13px;
  color: var(--mg-text-light);
}

/* ====== FOOTER ====== */
.mg-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 48px 0 0;
}

.mg-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
}

.mg-footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  text-decoration: none;
}

.mg-footer-brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--mg-primary), var(--mg-secondary));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.mg-footer-brand-name {
  font-size: 16px;
  font-weight: 900;
  color: white;
}

.mg-footer-brand-name span {
  color: #2dd4bf;
}

.mg-footer-desc {
  font-size: 13px;
  line-height: 1.8;
  margin-top: 12px;
}

.mg-footer-title {
  font-size: 14px;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
}

.mg-footer-links {
  list-style: none;
}

.mg-footer-links li {
  margin-bottom: 8px;
}

.mg-footer-links a {
  color: #94a3b8;
  font-size: 13px;
  transition: color 0.2s;
}

.mg-footer-links a:hover {
  color: #2dd4bf;
}

.mg-footer-bottom {
  border-top: 1px solid #1e293b;
  padding: 20px 0;
  text-align: center;
  font-size: 12px;
}

/* ====== SIDEBAR / WIDGETS ====== */
.mg-sidebar {
  display: grid;
  gap: 20px;
}

.mg-widget {
  background: white;
  border: 1px solid var(--mg-border);
  border-radius: var(--mg-radius-lg);
  padding: 20px;
}

.mg-widget-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--mg-text);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--mg-primary);
}

/* ====== POSTS LIST ====== */
.mg-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.mg-post-card {
  background: white;
  border: 1px solid var(--mg-border);
  border-radius: var(--mg-radius-lg);
  overflow: hidden;
  transition: all 0.3s;
}

.mg-post-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.mg-post-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.mg-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mg-post-body {
  padding: 16px;
}

.mg-post-date {
  font-size: 11px;
  color: var(--mg-text-light);
  margin-bottom: 6px;
}

.mg-post-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--mg-text);
  line-height: 1.6;
  margin-bottom: 8px;
}

.mg-post-title a {
  color: inherit;
}

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

.mg-post-excerpt {
  font-size: 12px;
  color: var(--mg-text-light);
  line-height: 1.8;
}

/* ====== PAGINATION ====== */
.mg-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
}

.mg-pagination a,
.mg-pagination span {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--mg-border);
  background: white;
  font-size: 14px;
  font-weight: 600;
  color: var(--mg-text-light);
  transition: all 0.2s;
  text-decoration: none;
}

.mg-pagination a:hover,
.mg-pagination .current {
  background: var(--mg-primary);
  color: white;
  border-color: var(--mg-primary);
}

/* ====== 404 ====== */
.mg-404 {
  text-align: center;
  padding: 80px 0;
}

.mg-404-icon {
  font-size: 80px;
  margin-bottom: 16px;
}

.mg-404 h1 {
  font-size: 32px;
  font-weight: 900;
  color: var(--mg-text);
  margin-bottom: 12px;
}

.mg-404 p {
  color: var(--mg-text-light);
  margin-bottom: 24px;
}

/* ====== COMMENTS ====== */
.mg-comments {
  margin-top: 32px;
}

.mg-comment {
  display: flex;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--mg-border);
}

.mg-comment-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--mg-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.mg-comment-body {}

.mg-comment-author {
  font-weight: 700;
  font-size: 14px;
  color: var(--mg-text);
}

.mg-comment-date {
  font-size: 11px;
  color: var(--mg-text-light);
  margin-top: 2px;
}

.mg-comment-text {
  font-size: 13px;
  color: var(--mg-text-light);
  margin-top: 8px;
  line-height: 1.8;
}

/* ====== FORMS ====== */
.mg-form-group {
  margin-bottom: 16px;
}

.mg-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--mg-text);
  margin-bottom: 6px;
}

.mg-form-group input,
.mg-form-group textarea,
.mg-form-group select {
  width: 100%;
  border: 1px solid var(--mg-border);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: var(--mg-font);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  background: white;
}

.mg-form-group input:focus,
.mg-form-group textarea:focus,
.mg-form-group select:focus {
  border-color: var(--mg-primary);
}

.mg-form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.mg-btn {
  background: var(--mg-primary);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-family: var(--mg-font);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

.mg-btn-outline {
  background: transparent;
  color: var(--mg-primary);
  border: 2px solid var(--mg-primary);
}

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

/* ====== BREADCRUMB ====== */
.mg-breadcrumb {
  background: white;
  border-bottom: 1px solid var(--mg-border);
  padding: 12px 0;
}

.mg-breadcrumb .mg-container {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--mg-text-light);
}

.mg-breadcrumb a {
  color: var(--mg-text-light);
}

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

.mg-breadcrumb span {
  color: var(--mg-text);
  font-weight: 600;
}

/* ====== CONTENT AREA ====== */
.mg-content-area {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  padding: 40px 0;
}

.mg-main-content {}

.mg-page-header {
  margin-bottom: 28px;
}

.mg-page-header h1 {
  font-size: 26px;
  font-weight: 900;
  color: var(--mg-text);
}

.mg-entry-content {
  font-size: 15px;
  line-height: 2;
  color: var(--mg-text);
}

.mg-entry-content h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--mg-text);
  margin: 28px 0 14px;
}

.mg-entry-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--mg-text);
  margin: 24px 0 12px;
}

.mg-entry-content p {
  margin-bottom: 16px;
}

.mg-entry-content ul,
.mg-entry-content ol {
  margin: 16px 0;
  padding-right: 24px;
}

.mg-entry-content li {
  margin-bottom: 8px;
}

.mg-entry-content blockquote {
  border-right: 4px solid var(--mg-primary);
  background: var(--mg-bg);
  padding: 16px 20px;
  margin: 20px 0;
  border-radius: 0 10px 10px 0;
  font-style: italic;
  color: var(--mg-text-light);
}

/* ====== WOOCOMMERCE OVERRIDES ====== */
.woocommerce ul.products li.product {
  background: white;
  border: 1px solid var(--mg-border);
  border-radius: var(--mg-radius-lg);
  overflow: hidden;
  transition: all 0.3s;
}

.woocommerce ul.products li.product:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  transform: translateY(-4px);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 13px;
  font-weight: 700;
  padding: 12px 12px 0;
  color: var(--mg-text);
}

.woocommerce ul.products li.product .price {
  color: var(--mg-primary);
  font-weight: 900;
}

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

.woocommerce ul.products li.product a.button {
  background: var(--mg-primary);
  color: white;
  border-radius: 8px;
  font-family: var(--mg-font);
}

.woocommerce ul.products li.product a.button:hover {
  background: var(--mg-primary-dark);
}

.woocommerce span.onsale {
  background: #ef4444;
  padding: 4px 12px;
  border-radius: 8px;
  min-height: auto;
  min-width: auto;
  font-size: 11px;
  font-weight: 700;
}

.woocommerce .woocommerce-pagination {
  margin-top: 32px;
}

.woocommerce .woocommerce-pagination a,
.woocommerce .woocommerce-pagination span {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--mg-border);
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
  .mg-products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .mg-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .mg-about-grid {
    grid-template-columns: 1fr;
  }
  .mg-about-grid .mg-about-icon {
    font-size: 60px;
  }
}

@media (max-width: 768px) {
  .mg-search-form { display: none; }
  .mg-nav-menu { display: none; }
  .mg-mobile-toggle { display: flex; align-items: center; justify-content: center; }
  .mg-mobile-menu.active { display: block; }

  .mg-hero .mg-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .mg-hero h1 { font-size: 26px; }
  .mg-hero-actions { justify-content: center; }
  .mg-hero-stats { justify-content: center; }
  .mg-hero-grid { display: none; }

  .mg-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .mg-features-grid {
    grid-template-columns: 1fr;
  }

  .mg-contact-grid {
    grid-template-columns: 1fr;
  }

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

  .mg-content-area {
    grid-template-columns: 1fr;
  }

  .mg-posts-grid {
    grid-template-columns: 1fr;
  }

  .mg-breadcrumb .mg-container {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .mg-products-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .mg-product-body { padding: 10px; }
  .mg-product-name { font-size: 12px; }
  .mg-product-price { font-size: 13px; }
  .mg-hero h1 { font-size: 22px; }
  .mg-section-title h2 { font-size: 22px; }
}

/* ====== ANIMATIONS ====== */
@keyframes mgFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.mg-animate {
  animation: mgFadeUp 0.5s ease-out both;
}

/* ====== CATEGORY LIST ====== */
.mg-category-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mg-category-list li a {
  display: block;
  padding: 6px 14px;
  border-radius: 8px;
  background: var(--mg-bg);
  border: 1px solid var(--mg-border);
  font-size: 12px;
  font-weight: 600;
  color: var(--mg-text-light);
  transition: all 0.2s;
}

.mg-category-list li a:hover {
  background: var(--mg-primary);
  color: white;
  border-color: var(--mg-primary);
}

/* ====== PRICE TABLE ====== */
.mg-price-table {
  background: white;
  border: 1px solid var(--mg-border);
  border-radius: var(--mg-radius-lg);
  overflow: hidden;
}

.mg-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--mg-border);
}

.mg-price-row:last-child {
  border-bottom: none;
}

.mg-price-row-label {
  font-size: 13px;
  color: var(--mg-text-light);
}

.mg-price-row-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--mg-primary);
}
