/*
Theme Name: MotoGarden
Theme URI: https://nasakino.ru
Author: MotoGarden Team
Author URI: https://nasakino.ru
Description: Кастомная тема интернет-магазина мотоблоков и садовой мототехники. Полная поддержка WooCommerce, адаптивный дизайн.
Version: 1.0.2
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: motogarden
Tags: e-commerce, woocommerce, motors, garden, responsive, custom-menu, custom-logo
*/

/* ============================================
   CSS VARIABLES & RESET
   ============================================ */
:root {
    --primary: #FF6B00;
    --primary-dark: #E55A00;
    --secondary: #1A1A1A;
    --accent: #2C2C2C;
    --light: #F5F5F5;
    --white: #FFFFFF;
    --gray: #888888;
    --gray-light: #E0E0E0;
    --success: #28A745;
    --danger: #DC3545;
    --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-heading: 'Montserrat', 'Segoe UI', sans-serif;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --radius: 8px;
    --radius-lg: 12px;
}

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

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

body {
    font-family: var(--font-main);
    color: var(--secondary);
    background: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--secondary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.8rem); }

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.section-title span {
    color: var(--primary);
}

/* ============================================
   CONTAINER & GRID
   ============================================ */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

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

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

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

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

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

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

/* ============================================
   HEADER
   ============================================ */
.top-bar {
    background: var(--secondary);
    color: var(--gray-light);
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.top-bar-info {
    display: flex;
    gap: 1.5rem;
}

.top-bar-info i {
    color: var(--primary);
    margin-right: 0.25rem;
}

.main-header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--secondary);
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

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

.main-nav {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
}

.main-nav a:hover::after,
.main-nav a.current::after {
    width: 100%;
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-search {
    position: relative;
}

.header-search input {
    padding: 0.625rem 2.5rem 0.625rem 1rem;
    border: 2px solid var(--gray-light);
    border-radius: 50px;
    width: 220px;
    font-size: 0.9rem;
    outline: none;
}

.header-search input:focus {
    border-color: var(--primary);
    width: 280px;
}

.header-search button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: var(--white);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-cart {
    position: relative;
    font-size: 1.5rem;
    color: var(--secondary);
}

.header-cart:hover {
    color: var(--primary);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
}

@media (max-width: 1024px) {
    .main-nav { display: none; }
    .mobile-menu-toggle { display: flex; }
    .header-search input { width: 160px; }
    .header-search input:focus { width: 200px; }
}

@media (max-width: 768px) {
    .top-bar-info { display: none; }
    .header-search { display: none; }
}

/* ============================================
   MOBILE MENU
   ============================================ */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--white);
    z-index: 2000;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-close {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--secondary);
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-menu a {
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-light);
}

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

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,107,0,0.1)" stroke-width="0.5"/></svg>');
    background-size: 80px;
    opacity: 0.5;
}

.hero .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content {
    color: var(--white);
}

.hero-badge {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 0.375rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {
    color: var(--white);
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero h1 span {
    color: var(--primary);
}

.hero-desc {
    font-size: 1.125rem;
    color: var(--gray-light);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
}

.hero-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.hero-stats {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2rem;
    background: var(--white);
    padding: 1.5rem 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

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

.hero-stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-heading);
}

.hero-stat-label {
    font-size: 0.875rem;
    color: var(--gray);
}

@media (max-width: 1024px) {
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero-desc { margin: 0 auto 2rem; }
    .hero-buttons { justify-content: center; }
    .hero-image { order: -1; }
    .hero-stats { position: relative; bottom: auto; left: auto; transform: none; margin-top: 2rem; }
}

@media (max-width: 768px) {
    .hero-stats { flex-direction: column; gap: 1rem; }
}

/* ============================================
   CATEGORIES SECTION
   ============================================ */
.categories-section {
    padding: 5rem 0;
    background: var(--white);
}

.category-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    height: 280px;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    color: var(--white);
}

.category-overlay h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.category-overlay span {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 600;
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */
.products-section {
    padding: 5rem 0;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 10;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-sale { background: var(--danger); color: var(--white); }
.badge-new { background: var(--success); color: var(--white); }
.badge-hit { background: var(--primary); color: var(--white); }

.product-image {
    position: relative;
    padding: 1.5rem;
    background: var(--light);
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    max-height: 200px;
    object-fit: contain;
}

.product-actions {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
}

.product-card:hover .product-actions {
    opacity: 1;
}

.product-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    font-size: 1rem;
}

.product-action-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.product-info {
    padding: 1.25rem;
}

.product-category {
    font-size: 0.8rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

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

.product-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--gray);
}

.product-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.product-meta i {
    color: var(--primary);
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-light);
}

.product-price {
    display: flex;
    flex-direction: column;
}

.price-old {
    font-size: 0.875rem;
    color: var(--gray);
    text-decoration: line-through;
}

.price-current {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-heading);
}

.add-to-cart {
    padding: 0.625rem 1.25rem;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-section {
    padding: 5rem 0;
    background: var(--secondary);
    color: var(--white);
}

.features-section .section-title {
    color: var(--white);
}

.features-section .section-title::after {
    background: var(--primary);
}

.feature-card {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 107, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--primary);
    border: 2px solid rgba(255, 107, 0, 0.2);
}

.feature-card:hover .feature-icon {
    background: var(--primary);
    color: var(--white);
}

.feature-card h3 {
    color: var(--white);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* ============================================
   BRANDS SECTION
   ============================================ */
.brands-section {
    padding: 3rem 0;
    background: var(--white);
    border-top: 1px solid var(--gray-light);
    border-bottom: 1px solid var(--gray-light);
}

.brands-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    opacity: 0.6;
    filter: grayscale(100%);
}

.brands-grid:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.brand-item {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    font-family: var(--font-heading);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect width="100" height="100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="2"/></svg>');
    background-size: 40px;
}

.cta-section .container {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
}

.cta-section h2 {
    color: var(--white);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--secondary);
    color: var(--gray-light);
    padding-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--accent);
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--gray);
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

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

.footer-social a:hover {
    background: var(--primary);
}

.footer-column h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-column a {
    color: var(--gray);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-column a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-column a::before {
    content: '›';
    color: var(--primary);
    font-weight: 700;
}

.footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.footer-contact i {
    color: var(--primary);
    margin-top: 0.25rem;
}

.footer-bottom {
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--gray);
}

@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

/* ============================================
   WOOCOMMERCE OVERRIDES
   ============================================ */
.woocommerce .products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.5rem !important;
}

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

.woocommerce ul.products li.product {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

@media (max-width: 1024px) {
    .woocommerce .products { grid-template-columns: repeat(3, 1fr) !important; }
}

@media (max-width: 768px) {
    .woocommerce .products { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 480px) {
    .woocommerce .products { grid-template-columns: 1fr !important; }
}

.woocommerce .woocommerce-breadcrumb {
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

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

.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
    margin-bottom: 2rem;
}

.woocommerce .woocommerce-ordering select {
    padding: 0.5rem 1rem;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius);
    outline: none;
}

.woocommerce .woocommerce-ordering select:focus {
    border-color: var(--primary);
}

.woocommerce nav.woocommerce-pagination {
    margin-top: 3rem;
}

.woocommerce nav.woocommerce-pagination ul {
    border: none;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.woocommerce nav.woocommerce-pagination ul li {
    border: none;
    float: none;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    padding: 0.625rem 1rem;
    border-radius: var(--radius);
    border: 2px solid var(--gray-light);
    font-weight: 600;
    min-width: 40px;
    text-align: center;
}

.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li span.current {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* Single Product */
.woocommerce div.product .product_title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.woocommerce div.product p.price {
    font-size: 1.75rem;
    color: var(--primary);
    font-weight: 800;
    font-family: var(--font-heading);
}

.woocommerce div.product .woocommerce-product-details__short-description {
    margin: 1.5rem 0;
    font-size: 1rem;
    line-height: 1.7;
}

.woocommerce .quantity .qty {
    padding: 0.625rem;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius);
    width: 80px;
    text-align: center;
}

.woocommerce .quantity .qty:focus {
    border-color: var(--primary);
    outline: none;
}

.woocommerce div.product form.cart .button {
    background: var(--primary);
    color: var(--white);
    padding: 0.875rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.woocommerce div.product form.cart .button:hover {
    background: var(--primary-dark);
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
    padding: 0;
    margin: 0 0 1.5rem;
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid var(--gray-light);
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs::after {
    display: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    border: none;
    background: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    padding: 1rem 1.5rem;
    font-weight: 600;
    color: var(--gray);
    display: block;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

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

.woocommerce div.product .woocommerce-tabs .panel {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

/* Cart & Checkout */
.woocommerce-cart table.cart,
.woocommerce-checkout .checkout {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.woocommerce table.shop_table {
    border: none;
    border-radius: var(--radius);
}

.woocommerce table.shop_table th {
    background: var(--light);
    padding: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

.woocommerce table.shop_table td {
    padding: 1rem;
    border-top: 1px solid var(--gray-light);
}

.woocommerce-cart table.cart td.product-remove a {
    color: var(--danger) !important;
    font-size: 1.5rem;
}

.woocommerce-cart table.cart td.product-name a {
    font-weight: 600;
    color: var(--secondary);
}

.woocommerce-cart table.cart td.product-name a:hover {
    color: var(--primary);
}

.woocommerce-cart table.cart td.product-price,
.woocommerce-cart table.cart td.product-subtotal {
    font-weight: 700;
    color: var(--primary);
}

.woocommerce .cart_totals,
.woocommerce .woocommerce-checkout #order_review {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.woocommerce .cart_totals h2,
.woocommerce-checkout #order_review_heading {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--gray-light);
}

.woocommerce .wc-proceed-to-checkout .checkout-button {
    background: var(--primary);
    padding: 1rem;
    font-size: 1.1rem;
    border-radius: var(--radius);
}

.woocommerce .wc-proceed-to-checkout .checkout-button:hover {
    background: var(--primary-dark);
}

/* Sidebar Widgets */
.widget-area .widget {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.widget-area .widget-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary);
}

.widget-area .widget ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-light);
}

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

.widget-area .widget ul li a {
    color: var(--secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget-area .widget ul li a:hover {
    color: var(--primary);
}

.widget-area .widget ul li a .count {
    background: var(--light);
    padding: 0.125rem 0.5rem;
    border-radius: 50px;
    font-size: 0.75rem;
    color: var(--gray);
}

/* Price Filter */
.widget_price_filter .price_slider_wrapper .ui-widget-content {
    background: var(--gray-light);
    border-radius: 50px;
    height: 6px;
}

.widget_price_filter .ui-slider .ui-slider-range {
    background: var(--primary);
    border-radius: 50px;
}

.widget_price_filter .ui-slider .ui-slider-handle {
    background: var(--primary);
    border: 3px solid var(--white);
    box-shadow: var(--shadow-sm);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    top: -7px;
}

.widget_price_filter .price_slider_amount .button {
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
}

/* ============================================
   PAGE & POST STYLES
   ============================================ */
.page-header {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    padding: 4rem 0;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,107,0,0.1)" stroke-width="0.5"/></svg>');
    background-size: 80px;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--gray);
    font-size: 1.1rem;
}

.content-area {
    padding: 3rem 0;
}

.content-area .container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

@media (max-width: 1024px) {
    .content-area .container { grid-template-columns: 1fr; }
    .widget-area { order: -1; }
}

.post-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.post-card:hover {
    box-shadow: var(--shadow-md);
}

.post-card .post-image {
    height: 250px;
    overflow: hidden;
}

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

.post-card .post-content {
    padding: 1.5rem;
}

.post-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--gray);
    margin-bottom: 0.75rem;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.post-meta i {
    color: var(--primary);
}

.post-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.post-excerpt {
    color: var(--gray);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.read-more {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* ============================================
   NOTIFICATIONS & MESSAGES
   ============================================ */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-notice {
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-left: 4px solid;
}

.woocommerce-message {
    background: #d4edda;
    border-color: var(--success);
    color: #155724;
}

.woocommerce-info {
    background: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

.woocommerce-error {
    background: #f8d7da;
    border-color: var(--danger);
    color: #721c24;
}

.woocommerce-message .button {
    margin-left: auto;
    background: var(--success);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
}

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

.animate {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* ============================================
   SCROLL TO TOP
   ============================================ */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--primary-dark);
}

/* ============================================
   LOADING SPINNER
   ============================================ */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.bg-white { background: var(--white); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.hidden { display: none; }

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */
@media (max-width: 768px) {
    .section-title { margin-bottom: 2rem; }
    .btn { padding: 0.75rem 1.5rem; font-size: 0.9rem; }
}
