/*
Theme Name: Gear4Run
Theme URI: https://gear4run.com
Author: Gear4Run
Author URI: https://gear4run.com
Description: Running Recovery Gear Directory - A modern, fast theme for running recovery equipment.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gear4run
*/

/* ========================================
   CSS RESET & BASE
   ======================================== */

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1f2937;
    background-color: #f9fafb;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

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

ul, ol {
    list-style: none;
}

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

/* ========================================
   UTILITIES
   ======================================== */

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 640px) {
    .container {
        padding: 0 24px;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 32px;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ========================================
   HEADER
   ======================================== */

.site-header {
    background: linear-gradient(135deg, #065f46 0%, #047857 50%, #0d9488 100%);
    color: white;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.header-top {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(4px);
}

.site-logo svg {
    width: 28px;
    height: 28px;
    color: white;
}

.site-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.site-tagline {
    font-size: 12px;
    color: rgba(167, 243, 208, 1);
    display: none;
}

@media (min-width: 640px) {
    .site-tagline {
        display: block;
    }
}

.site-slogan {
    display: none;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(167, 243, 208, 1);
}

.site-slogan svg {
    width: 16px;
    height: 16px;
    color: #fcd34d;
}

@media (min-width: 1024px) {
    .site-slogan {
        display: flex;
    }
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: white;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

/* Navigation */
.header-nav {
    display: none;
    padding: 12px 0;
}

.header-nav.is-open {
    display: block;
}

@media (min-width: 768px) {
    .header-nav {
        display: block;
    }
}

.nav-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

@media (min-width: 768px) {
    .nav-list {
        flex-direction: row;
        gap: 8px;
    }
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(209, 250, 229, 1);
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-link:hover,
.nav-link.is-active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.nav-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    background: linear-gradient(135deg, #065f46 0%, #047857 50%, #0d9488 100%);
    color: white;
    padding: 48px 0 64px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 896px;
    margin: 0 auto;
}

.hero-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #fcd34d;
    letter-spacing: -0.025em;
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 48px;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 60px;
    }
}

.hero-description {
    font-size: 18px;
    color: white;
    margin-bottom: 32px;
    max-width: 672px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 640px) {
    .hero-description {
        font-size: 20px;
    }
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 500;
    color: white;
    backdrop-filter: blur(4px);
    transition: all 0.2s;
}

.hero-badge:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.hero-badge svg {
    width: 18px;
    height: 18px;
    color: #fcd34d;
}

/* ========================================
   MAIN CONTENT
   ======================================== */

.site-main {
    flex: 1;
    padding: 48px 0;
}

@media (min-width: 768px) {
    .site-main {
        padding: 64px 0;
    }
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 30px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
    letter-spacing: -0.025em;
}

@media (min-width: 640px) {
    .section-title {
        font-size: 36px;
    }
}

.section-description {
    font-size: 18px;
    color: #6b7280;
    max-width: 672px;
    margin: 0 auto;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 640px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }
}

/* ========================================
   PRODUCT CARD
   ======================================== */

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-4px);
}

.product-card-image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.product-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

.product-card-placeholder svg {
    width: 48px;
    height: 48px;
    color: #059669;
}

.product-card-category {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    background: #059669;
    color: white;
    font-size: 12px;
    font-weight: 600;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-card-title a {
    transition: color 0.2s;
}

.product-card-title a:hover {
    color: #059669;
}

.product-card-excerpt {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.product-card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-card-rating svg {
    width: 16px;
    height: 16px;
}

.product-card-rating .star-filled {
    color: #fbbf24;
}

.product-card-rating .star-empty {
    color: #d1d5db;
}

.product-card-rating span {
    margin-left: 4px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.product-card-price {
    font-size: 18px;
    font-weight: 700;
    color: #059669;
}

.product-card-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 24px;
    background: #059669;
    color: white;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s;
}

.product-card-cta:hover {
    background: #047857;
    transform: translateY(-1px);
}

.product-card-cta svg {
    width: 16px;
    height: 16px;
}

/* ========================================
   WHY RECOVERY SECTION
   ======================================== */

.why-recovery {
    margin-top: 80px;
    padding: 64px 0;
    background: white;
    border-radius: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.why-recovery-inner {
    max-width: 896px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.why-recovery-title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 24px;
}

@media (min-width: 640px) {
    .why-recovery-title {
        font-size: 30px;
    }
}

.why-recovery-text {
    font-size: 18px;
    color: #6b7280;
    margin-bottom: 32px;
}

.why-recovery-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .why-recovery-features {
        grid-template-columns: repeat(3, 1fr);
    }
}

.why-recovery-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.why-recovery-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #d1fae5;
    border-radius: 12px;
}

.why-recovery-feature-icon svg {
    width: 24px;
    height: 24px;
    color: #059669;
}

.why-recovery-feature-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

/* ========================================
   BREADCRUMB
   ======================================== */

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: #059669;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #047857;
    text-decoration: underline;
}

.breadcrumb svg {
    width: 16px;
    height: 16px;
    color: #9ca3af;
}

.breadcrumb-current {
    color: #374151;
    font-weight: 500;
}

/* ========================================
   SINGLE PRODUCT PAGE
   ======================================== */

.single-product {
    max-width: 1024px;
    margin: 0 auto;
}

.single-product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}

@media (min-width: 1024px) {
    .single-product-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.single-product-image {
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

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

.single-product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

.single-product-placeholder svg {
    width: 96px;
    height: 96px;
    color: #059669;
}

.single-product-content {
    display: flex;
    flex-direction: column;
}

.single-product-category {
    display: inline-block;
    padding: 4px 12px;
    background: #d1fae5;
    color: #047857;
    font-size: 12px;
    font-weight: 600;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    width: fit-content;
}

.single-product-title {
    font-size: 30px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
    letter-spacing: -0.025em;
}

@media (min-width: 640px) {
    .single-product-title {
        font-size: 36px;
    }
}

.single-product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.single-product-rating .stars {
    display: flex;
    gap: 2px;
}

.single-product-rating svg {
    width: 20px;
    height: 20px;
}

.single-product-rating .star-filled {
    color: #fbbf24;
}

.single-product-rating .star-empty {
    color: #d1d5db;
}

.single-product-rating span {
    font-size: 14px;
    color: #6b7280;
}

.single-product-price {
    font-size: 36px;
    font-weight: 700;
    color: #059669;
    margin-bottom: 24px;
}

.single-product-description {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 32px;
}

.single-product-features {
    margin-bottom: 32px;
}

.single-product-features h3 {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 16px;
}

.single-product-features ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.single-product-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: #374151;
}

.single-product-features li svg {
    width: 20px;
    height: 20px;
    color: #059669;
    flex-shrink: 0;
    margin-top: 2px;
}

.single-product-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px 32px;
    background: #059669;
    color: white;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.2s;
}

.single-product-cta:hover {
    background: #047857;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(5, 150, 105, 0.3);
}

.single-product-cta svg {
    width: 20px;
    height: 20px;
}

/* Product Tags */
.single-product-tags {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #e5e7eb;
}

.single-product-tags h3 {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.single-product-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.single-product-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f3f4f6;
    color: #374151;
    font-size: 13px;
    border-radius: 9999px;
    transition: all 0.2s;
}

.single-product-tag:hover {
    background: #e5e7eb;
}

.single-product-tag svg {
    width: 14px;
    height: 14px;
    color: #9ca3af;
}

/* ========================================
   CATEGORY / ARCHIVE PAGE
   ======================================== */

.archive-header {
    margin-bottom: 48px;
}

.archive-title {
    font-size: 30px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
    letter-spacing: -0.025em;
}

@media (min-width: 640px) {
    .archive-title {
        font-size: 36px;
    }
}

.archive-description {
    font-size: 18px;
    color: #6b7280;
}

.archive-count {
    font-size: 14px;
    color: #9ca3af;
    margin-top: 8px;
}

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
    background: #111827;
    color: white;
    padding: 64px 0 0;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid #374151;
}

@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.footer-brand {
    max-width: 320px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #059669;
    border-radius: 10px;
}

.footer-logo-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.footer-logo-text {
    font-size: 20px;
    font-weight: 700;
}

.footer-brand-description {
    font-size: 14px;
    color: #9ca3af;
    line-height: 1.7;
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #9ca3af;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: #10b981;
}

.footer-column a svg {
    width: 16px;
    height: 16px;
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
}

.footer-copyright {
    font-size: 14px;
    color: #6b7280;
}

.footer-copyright .heart {
    color: #ef4444;
}

/* ========================================
   404 PAGE
   ======================================== */

.page-404 {
    text-align: center;
    padding: 80px 0;
}

.page-404-title {
    font-size: 96px;
    font-weight: 700;
    color: #059669;
    margin-bottom: 16px;
}

.page-404-subtitle {
    font-size: 24px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 16px;
}

.page-404-text {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 32px;
}

.page-404-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #059669;
    color: white;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s;
}

.page-404-btn:hover {
    background: #047857;
}

.page-404-btn svg {
    width: 16px;
    height: 16px;
}

/* ========================================
   PAGE TEMPLATE
   ======================================== */

.page-content {
    max-width: 768px;
    margin: 0 auto;
}

.page-title {
    font-size: 36px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 32px;
    letter-spacing: -0.025em;
}

.page-body {
    font-size: 16px;
    color: #374151;
    line-height: 1.8;
}

.page-body p {
    margin-bottom: 24px;
}

.page-body h2 {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 48px 0 16px;
}

.page-body h3 {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin: 32px 0 12px;
}

.page-body ul, .page-body ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.page-body ul {
    list-style: disc;
}

.page-body ol {
    list-style: decimal;
}

.page-body li {
    margin-bottom: 8px;
}

.page-body a {
    color: #059669;
    text-decoration: underline;
}

.page-body a:hover {
    color: #047857;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 767px) {
    .hero {
        padding: 32px 0 48px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-description {
        font-size: 16px;
    }

    .site-main {
        padding: 32px 0;
    }

    .section-title {
        font-size: 24px;
    }

    .why-recovery {
        margin-top: 48px;
        padding: 48px 0;
    }
}
