/* Status Shop - SEO SSR Styles */

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

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #64748b;
    --accent: #f59e0b;
    --success: #22c55e;
    --danger: #ef4444;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --container-max: 1200px;
    --border-radius: 8px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: var(--font-family);
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1rem;
}

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

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

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

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

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

.btn-secondary {
    background: var(--gray-200);
    color: var(--gray-700);
}

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

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

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

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Header */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo img {
    height: 40px;
    width: auto;
}

.main-nav {
    flex: 1;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-list a {
    color: var(--gray-700);
    font-weight: 500;
}

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

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

.phone-link {
    font-weight: 600;
    color: var(--gray-800);
}

.lang-switcher {
    display: flex;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.lang-current {
    font-weight: 600;
    color: var(--primary);
}

.lang-link {
    color: var(--gray-500);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-700);
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 1rem 0;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.breadcrumbs-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.breadcrumbs-item::after {
    content: '/';
    margin-left: 0.5rem;
    color: var(--gray-400);
}

.breadcrumbs-item:last-child::after {
    display: none;
}

.breadcrumbs-item a {
    color: var(--gray-600);
}

.breadcrumbs-item--current span {
    color: var(--gray-800);
}

/* Main Content */
.main-content {
    flex: 1;
}

/* Sections */
.section {
    padding: 3rem 0;
}

.section h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--gray-900);
}

.section-footer {
    text-align: center;
    margin-top: 2rem;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

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

.hero .btn-primary:hover {
    background: var(--gray-100);
}

.hero .btn-secondary {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Product Card */
.product-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
}

.product-card-link {
    display: block;
    color: inherit;
}

.product-card-image {
    position: relative;
    aspect-ratio: 1;
    background: var(--gray-100);
}

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

.product-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
}

.product-badge--new {
    background: var(--success);
    color: var(--white);
}

.product-badge--sale {
    background: var(--danger);
    color: var(--white);
}

.product-card-content {
    padding: 1rem;
}

.product-card-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--gray-800);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.price-current {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.categories-grid--large {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.category-card {
    display: block;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    color: inherit;
    transition: all 0.2s;
}

.category-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.category-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.category-card h2,
.category-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.category-card p {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.products-count {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* Category Card Large */
.category-card--large {
    display: flex;
    align-items: center;
    text-align: left;
    padding: 0;
    overflow: hidden;
}

.category-card--large .category-card-image {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.category-card--large .category-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    margin: 0;
}

.category-card--large .category-card-content {
    padding: 1rem;
}

/* Why Us */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.why-us-item {
    text-align: center;
    padding: 2rem;
    background: var(--gray-50);
    border-radius: var(--border-radius);
}

.why-us-icon {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.why-us-item h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.why-us-item p {
    color: var(--gray-600);
    font-size: 0.875rem;
}

/* Product Page */
.product-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.product-gallery {
    position: sticky;
    top: 100px;
    align-self: start;
}

.product-main-image {
    aspect-ratio: 1;
    background: var(--gray-100);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 1rem;
}

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

.product-thumbnails {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    background: none;
    padding: 0;
}

.thumbnail.active {
    border-color: var(--primary);
}

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

.product-info h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.product-sku {
    color: var(--gray-500);
    margin-bottom: 1rem;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.product-price .price-current {
    font-size: 1.5rem;
}

.product-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.product-description h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.price-tiers {
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--border-radius);
}

.price-tiers h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.price-tiers table {
    width: 100%;
    border-collapse: collapse;
}

.price-tiers th,
.price-tiers td {
    padding: 0.5rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.price-tiers th {
    font-weight: 500;
    color: var(--gray-600);
}

/* Related Products */
.related-products {
    border-top: 1px solid var(--gray-200);
    padding-top: 3rem;
}

/* Static Page */
.page-content h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.page-body {
    line-height: 1.8;
}

.page-body h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
}

.page-body h3 {
    font-size: 1.25rem;
    margin: 1.5rem 0 0.75rem;
}

.page-body p {
    margin-bottom: 1rem;
}

.page-body ul,
.page-body ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.page-body li {
    margin-bottom: 0.5rem;
}

/* Error Page */
.section-error {
    text-align: center;
    padding: 5rem 0;
}

.error-content h1 {
    font-size: 6rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.error-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.error-content p {
    color: var(--gray-600);
    margin-bottom: 2rem;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    background: var(--gray-50);
    border-radius: var(--border-radius);
}

.empty-state p {
    color: var(--gray-600);
}

/* Subcategories */
.subcategories {
    margin-bottom: 2rem;
}

.subcategories h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.subcategories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.subcategory-link {
    padding: 0.5rem 1rem;
    background: var(--gray-100);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    color: var(--gray-700);
}

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

/* SEO Text */
.category-seo-text,
.product-seo-text {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
    color: var(--gray-600);
    font-size: 0.875rem;
    line-height: 1.8;
}

/* Footer */
.site-footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 3rem 0 1.5rem;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h3 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 1rem;
}

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

.footer-col li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: var(--gray-400);
    font-size: 0.875rem;
}

.footer-col a:hover {
    color: var(--white);
}

.footer-logo img {
    height: 32px;
    filter: brightness(0) invert(1);
    margin-bottom: 1rem;
}

.footer-tagline {
    color: var(--gray-400);
    font-size: 0.875rem;
}

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* Responsive */
@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
    }

    .main-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .header-actions {
        order: -1;
        width: 100%;
        justify-content: flex-end;
    }

    .header-actions .btn {
        display: none;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .product-page {
        grid-template-columns: 1fr;
    }

    .product-gallery {
        position: static;
    }

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

    .product-card-title {
        font-size: 0.875rem;
    }

    .price-current {
        font-size: 1rem;
    }
}

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

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
    }
}
