/* 
  Glassmorphism Design System 
  Following UI/UX Pro Max Guidelines: 
  - Sufficient Contrast
  - Floating Elements
  - Proper Border formatting 
  - Smooth Hover Transitions
  - Responsive Typography
*/

:root {
    /* Colors */
    --clr-bg: #0F172A;
    /* Slate 900 for modern dark theme base */
    --clr-text-main: #F8FAFC;
    --clr-text-muted: #94A3B8;

    /* Brand Accent: Vibrant Teal / Green for trust & nature/transport */
    --clr-primary: #10B981;
    --clr-primary-hover: #059669;

    --clr-accent: #3B82F6;

    /* Glass Panels */
    --glass-bg: rgba(30, 41, 59, 0.6);
    /* Slate 800 with opacity */
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --glass-blur: blur(16px);

    /* Typography */
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;

    /* Spacing */
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 4rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 32px;

    /* Z-Index Scale */
    --z-background: -1;
    --z-normal: 1;
    --z-sticky: 10;
    --z-dropdown: 20;
    --z-modal: 50;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    /* A11y baseline */
    overflow-x: hidden;
}

body {
    font-family: var(--font-family);
    background-color: var(--clr-bg);
    color: var(--clr-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Background Shapes Setup */
.bg-shapes-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: var(--z-background);
    pointer-events: none;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: var(--z-background);
    opacity: 0.5;
}

.bg-shape-1 {
    width: 600px;
    height: 600px;
    background: var(--clr-primary);
    top: -200px;
    left: -200px;
}

.bg-shape-2 {
    width: 500px;
    height: 500px;
    background: var(--clr-accent);
    top: 40%;
    right: -100px;
}

.bg-shape-3 {
    width: 700px;
    height: 700px;
    background: #8B5CF6;
    /* Purple accent */
    bottom: -200px;
    left: 20%;
}

/* General Layout Containers */
.content-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
}

.section-heading {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-heading h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-heading p {
    color: var(--clr-text-muted);
    font-size: 1.125rem;
}

.text-center {
    text-align: center;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Typography elements */
a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--clr-primary);
}

/* Forms & Buttons */
button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-align: center;
    transition: all var(--transition-normal);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-primary {
    background-color: var(--clr-primary);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--clr-primary-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    color: var(--clr-text-main);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.shadow-hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.shadow-hover:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
}

.glass-btn {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    color: var(--clr-text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background var(--transition-fast);
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--clr-text-main);
    transition: background var(--transition-fast), color var(--transition-fast);
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--clr-primary);
}

/* Glassmorphism Classes */

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
}

.glass-card {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    overflow: hidden;
}

.hover-lift {
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.product-card:hover {
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

img.product-img {
    transition: transform 0.5s ease;
}

.product-card:hover img.product-img {
    transform: scale(1.05);
}

/* Navbar */
.navbar {
    position: fixed;
    top: var(--space-md);
    left: var(--space-md);
    right: var(--space-md);
    z-index: var(--z-sticky);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.5px;
}

.logo-icon {
    color: var(--clr-primary);
}

.desktop-nav .nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--clr-text-main);
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--clr-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.header-phone svg {
    color: var(--clr-primary);
}

.header-phone:hover {
    color: var(--clr-primary);
}

.mobile-menu-toggle {
    display: none;
    color: var(--clr-text-main);
}

/* Hero Section */
.hero {
    padding-top: calc(100px + var(--space-2xl));
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    min-height: 90vh;
}

.hero-content {
    padding: 3rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.5);
    color: var(--clr-primary);
    border-radius: var(--radius-xl);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--clr-text-muted);
    margin-bottom: 2rem;
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 2rem;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--clr-text-muted);
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    padding: 10px;
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    object-fit: cover;
    box-shadow: var(--glass-shadow);
    display: block;
}

/* Categories Section */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.category-card {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    text-align: center;
    align-items: center;
    height: 100%;
}

.wide-category {
    grid-column: span 2;
}

.category-img-wrapper {
    width: 100%;
    height: 160px;
    margin-bottom: 1rem;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.category-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.category-card:hover .category-img-wrapper img {
    transform: scale(1.05);
}

.category-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: auto;
}

/* Products Section */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #EF4444;
    /* Red badge */
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}

.product-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 1px solid var(--glass-border);
}

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-spec {
    color: var(--clr-text-muted);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.product-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

/* Advantages Section */
.advantages-banner {
    padding: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--clr-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.feature-icon svg {
    width: 32px;
    height: 32px;
}

.feature-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-desc {
    color: var(--clr-text-muted);
    font-size: 0.875rem;
}

/* Trust Section */
.trust-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.trust-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
}

.trust-icon {
    width: 32px;
    height: 32px;
    color: var(--clr-primary);
}

/* Product Page Specific */
.product-page {
    padding-top: calc(100px + var(--space-xl));
}

.product-layout {
    display: grid;
    grid-template-columns: 3fr 2fr;
    grid-template-areas:
        "gallery details"
        "tabs details";
    gap: 3rem;
    align-items: start;
}

.product-gallery {
    grid-area: gallery;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-details {
    grid-area: details;
}

.product-tabs-section {
    grid-area: tabs;
}

.gallery-main {
    margin-bottom: 1rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    width: 100%;
    aspect-ratio: 4/3;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    box-shadow: var(--glass-shadow);
    transition: opacity 0.3s ease;
}

.gallery-thumbnails {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.gallery-thumb {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition-fast);
    opacity: 0.6;
}

.gallery-thumb:hover {
    opacity: 1;
}

.gallery-thumb.active {
    opacity: 1;
    border-color: var(--clr-primary);
}

.product-details {
    display: flex;
    flex-direction: column;
}

.details-section-main {
    padding: 2.5rem 2.5rem 0 2.5rem;
}

.details-section-equipment {
    padding: 0 2.5rem 2.5rem 2.5rem;
}

.product-title-lg {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.product-sku {
    color: var(--clr-text-muted);
    font-size: 0.875rem;
}

.compare-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--clr-text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.compare-toggle:hover {
    color: #fff;
}

.compare-toggle.active {
    color: var(--clr-primary);
}

.price-block {
    margin-bottom: 2rem;
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.price-current {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
}

.spec-list {
    list-style: none;
    margin-bottom: 2rem;
}

.spec-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    gap: 1rem;
}

.spec-list li:last-child {
    border-bottom: none;
}

.spec-name {
    color: var(--clr-text-muted);
    width: 45%;
}

.spec-value {
    color: #fff;
    font-weight: 500;
    width: 55%;
}

.product-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
    padding-top: 2rem;
}

.product-actions .btn {
    flex: 1;
}

/* Product Options Selector */
.product-options {
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
}

.option-label {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.option-selector {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.05);
    /* Match screenshot greyish background */
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    padding: 0.25rem;
    max-width: 100%;
    overflow-x: auto;
    /* Hide scrollbar for cleaner look */
    scrollbar-width: none;
}

.option-selector::-webkit-scrollbar {
    display: none;
}

.option-btn {
    background: transparent;
    border: none;
    color: var(--clr-text-muted);
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.option-btn:hover:not(.active) {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

/* For exact screenshot match, Active pill is a bright green. Since our brand is blue/green, let's use a nice glowing primary/emerald */
.option-btn.active {
    background: #10B981;
    color: #fff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.equipment-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    margin-top: 0.5rem;
}

.equipment-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.equipment-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.equipment-item:has(input:checked) {
    border-color: var(--clr-primary);
    background: rgba(16, 185, 129, 0.05);
}

.eq-checkbox {
    display: flex;
}

.eq-checkbox input {
    appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid var(--glass-border);
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: all var(--transition-fast);
}

.eq-checkbox input:checked {
    background: var(--clr-primary);
    border-color: var(--clr-primary);
}

.eq-checkbox input:checked::after {
    content: '';
    position: absolute;
    left: 30%;
    top: 15%;
    width: 30%;
    height: 50%;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.eq-image {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.eq-details {
    flex: 1;
}

.eq-name {
    color: var(--clr-text-main);
    font-size: 0.9rem;
    line-height: 1.3;
}

.eq-price {
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}

/* Catalog Page */
.catalog-page {
    padding-top: calc(100px + var(--space-xl));
}

/* Explicit Catalog Product Cards */
.catalog-page .product-card.glass-card {
    padding: 0;
    overflow: hidden;
}

.catalog-page .product-img {
    height: 270px;
    margin-bottom: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.15);
    /* Subtly darker image area for separation */
    box-shadow: none;
    border-radius: 0;
    backdrop-filter: none;
}

.catalog-page .product-img img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.catalog-page .product-card:hover .product-img img {
    transform: scale(1.05);
}

/* Ensure the badge stays inside the image block perfectly */
.catalog-page .product-card .product-badge {
    top: 1rem;
    left: 1rem;
    right: auto;
    z-index: 10;
}

.catalog-page .product-content {
    padding: 1.5rem;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.catalog-header h1 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.catalog-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    align-items: start;
    margin-top: 2rem;
}

.catalog-sidebar {
    padding: 1.5rem;
    position: sticky;
    top: 100px;
}

.mobile-filter-toggle {
    display: none;
}

.filter-group {
    margin-bottom: 2rem;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--clr-text-muted);
    cursor: pointer;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.filter-checkbox:hover {
    color: #fff;
}

.filter-checkbox input[type="checkbox"] {
    appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid var(--glass-border);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    position: relative;
    transition: all var(--transition-fast);
}

.filter-checkbox input[type="checkbox"]:checked {
    background: var(--clr-primary);
    border-color: var(--clr-primary);
}

.filter-checkbox input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 30%;
    top: 15%;
    width: 30%;
    height: 50%;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.price-inputs {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.price-inputs input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 0.6rem;
    border-radius: var(--radius-sm);
    outline: none;
    text-align: center;
    font-size: 0.9rem;
}

.price-inputs input:focus {
    border-color: var(--clr-primary);
}

.price-inputs span {
    color: var(--clr-text-muted);
}

.catalog-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding: 0.5rem 0;
}

.catalog-results-count {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
}

.sort-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    outline: none;
    cursor: pointer;
    font-family: inherit;
}

.sort-select option {
    background: #1E293B;
    color: #fff;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    color: var(--clr-text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-weight: 500;
}

.page-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.page-btn.active {
    background: var(--clr-primary);
    color: #fff;
    border-color: var(--clr-primary);
}

/* Tabs Section */
.product-tabs-section {
    margin-top: 3rem;
    border-radius: var(--radius-lg);
    padding: 1rem 2.5rem 2.5rem 2.5rem;
}

.tabs-nav {
    display: flex;
    gap: 1rem;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 1rem 2rem;
    color: var(--clr-text-muted);
    font-weight: 600;
    font-size: 1.125rem;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    transition: all var(--transition-fast);
}

.tab-btn.active {
    color: var(--clr-primary);
    border-bottom-color: var(--clr-primary);
}

.tab-btn:hover:not(.active) {
    color: #fff;
}

.tab-pane {
    display: none;
    color: var(--clr-text-muted);
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
.main-footer {
    padding-top: 4rem;
    padding-bottom: 2rem;
    margin-top: 4rem;
    border-top: 1px solid var(--glass-border);
    border-bottom: none;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-desc {
    color: var(--clr-text-muted);
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.socials {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    transition: all var(--transition-fast);
}

.social-icon:hover {
    background: var(--clr-primary);
    border-color: var(--clr-primary);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #fff;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a,
.contact-address {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--clr-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--clr-text-muted);
    font-size: 0.875rem;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 1;
    visibility: visible;
    transition: opacity var(--transition-fast), visibility var(--transition-fast);
}

.modal-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.modal-content {
    width: 100%;
    max-width: 500px;
    padding: 2rem;
    transform: translateY(0);
    transition: transform var(--transition-normal);
}

.modal-overlay.hidden .modal-content {
    transform: translateY(20px);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    font-size: 1rem;
    margin-bottom: 1rem;
    outline: none;
}

.modal-input:focus {
    border-color: var(--clr-primary);
}

.city-list {
    list-style: none;
    max-height: 250px;
    overflow-y: auto;
}

.city-list::-webkit-scrollbar {
    width: 6px;
}

.city-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.city-btn {
    width: 100%;
    text-align: left;
    padding: 0.75rem 1rem;
    color: var(--clr-text-main);
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.city-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: calc(var(--z-sticky) - 1);
    background: rgba(15, 23, 42, 0.95);
    padding: 100px 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-overlay.active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: calc(80px + var(--space-xl));
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .wide-category {
        grid-column: span 2;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .catalog-layout {
        grid-template-columns: 220px 1fr;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .city-select {
        display: none;
        /* Hide in header, show in mobile menu */
    }

    .nav-container {
        padding: 0.5rem 1rem;
    }

    .nav-actions .header-phone {
        display: none;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .icon-btn {
        width: 36px;
        height: 36px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "gallery"
            "details"
            "tabs";
        gap: 2rem;
    }

    .product-actions {
        flex-direction: column;
    }

    .details-section-main {
        padding: 1.25rem 0.75rem 0 0.75rem;
    }

    .details-section-equipment {
        padding: 0 0.75rem 1.25rem 0.75rem;
    }

    .product-sku {
        font-size: 0.75rem;
        margin-bottom: 1rem;
    }

    .price-current {
        font-size: 1.8rem;
    }

    .price-block span:last-child {
        font-size: 0.9rem;
    }

    .price-block span:last-child svg {
        width: 16px;
        height: 16px;
        min-width: 16px;
    }

    .product-tabs-section {
        padding: 0.75rem 1.5rem 1.5rem 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .catalog-layout {
        grid-template-columns: 1fr;
    }

    .mobile-filter-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        width: 100%;
        margin-bottom: 1rem;
    }

    .catalog-sidebar {
        display: none;
        position: static;
        margin-bottom: 2rem;
    }

    .catalog-sidebar.show {
        display: block;
    }

    .catalog-topbar {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .catalog-topbar>div {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .trust-grid {
        flex-direction: column;
    }

    .bg-shape-1 {
        width: 300px;
        height: 300px;
        top: -100px;
        left: -100px;
    }

    .bg-shape-2 {
        width: 250px;
        height: 250px;
        top: 30%;
        right: -50px;
    }

    .bg-shape-3 {
        width: 350px;
        height: 350px;
        bottom: -100px;
        left: 5%;
    }
}

/* --- Cart Page Layout --- */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    align-items: start;
    margin-bottom: 4rem;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    position: relative;
}

.cart-item-img {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.cart-item-info h3 {
    margin-bottom: 0.5rem;
    color: #fff;
    font-size: 1.1rem;
}

.cart-item-options {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    line-height: 1.4;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    padding: 0.25rem;
}

.qty-btn {
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.qty-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.qty-input {
    width: 30px;
    text-align: center;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
}

.cart-item-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-right: 1.5rem;
}

.cart-item-remove {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--clr-text-muted);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.cart-item-remove:hover {
    color: #ef4444;
}

.cart-summary {
    padding: 2rem;
    border-radius: var(--radius-lg);
    position: sticky;
    top: 100px;
}

.summary-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: var(--clr-text-main);
    font-size: 0.95rem;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.cart-promocode {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.cart-promocode input {
    flex: 1;
    min-width: 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    outline: none;
    transition: border 0.3s;
}

.cart-promocode .btn {
    padding: 0.5rem 1rem;
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.95rem;
}

.cart-promocode input:focus {
    border-color: var(--clr-primary);
}

.cart-promocode input::placeholder {
    color: var(--clr-text-muted);
}

@media (max-width: 900px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        order: 1;
        position: static;
        margin-top: 2rem;
    }

    .cart-item {
        grid-template-columns: 80px 1fr;
        grid-template-areas: "img info" "img price";
        gap: 1rem;
        padding: 1.25rem;
    }

    .cart-item-remove {
        top: 0.5rem;
        right: 0.5rem;
    }

    .cart-item-img {
        grid-area: img;
        width: 100%;
        height: auto;
        aspect-ratio: 4/3;
    }

    .cart-item-info {
        grid-area: info;
    }

    .cart-item-info h3 {
        font-size: 1rem;
    }

    .cart-item-price {
        grid-area: price;
        text-align: left;
        margin-right: 0;
        font-size: 1.1rem;
        font-weight: 700;
    }
}


/* --- Contacts Page Layout --- */
.contacts-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
    margin-bottom: 4rem;
}

.contacts-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    padding: 2rem;
    border-radius: var(--radius-lg);
}

.contact-card h3 {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.contact-card p {
    margin-bottom: 0.5rem;
    color: var(--clr-text-main);
    line-height: 1.6;
}

.contact-card strong {
    color: #fff;
    font-weight: 500;
    margin-right: 0.5rem;
}

.contact-card a {
    color: var(--clr-text-main);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.contact-card a:hover {
    color: var(--clr-primary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.contacts-map {
    border-radius: var(--radius-lg);
    height: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
}

@media (max-width: 900px) {
    .contacts-layout {
        grid-template-columns: 1fr;
    }

    .contacts-map {
        min-height: 350px;
        height: 350px;
    }
}


/* --- Checkout Page Layout --- */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2.5rem;
    align-items: start;
    margin-bottom: 4rem;
}

.checkout-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.checkout-step {
    padding: 2rem;
    border-radius: var(--radius-lg);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.step-number {
    background: var(--clr-primary);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.step-header h3 {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--clr-text-main);
    font-size: 0.9rem;
}

.radio-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.radio-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    background: rgba(255, 255, 255, 0.02);
}

.radio-option:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.radio-option.active {
    border-color: var(--clr-primary);
    background: rgba(37, 99, 235, 0.05);
}

.radio-indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--glass-border);
    position: relative;
    flex-shrink: 0;
    margin-left: 1rem;
}

.radio-option.active .radio-indicator {
    border-color: var(--clr-primary);
}

.radio-option.active .radio-indicator::after {
    content: '';
    position: absolute;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: var(--clr-primary);
    border-radius: 50%;
}

.radio-content h4 {
    color: #fff;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.radio-content p {
    color: var(--clr-text-muted);
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 900px) {
    .checkout-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .checkout-step {
        padding: 1.5rem;
    }

    .cart-summary {
        order: 1;
        position: static;
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .product-page,
    .catalog-page {
        padding-top: calc(50px + var(--space-xl));
    }
    .breadcrumbs {
        margin-bottom: 0 !important;
        font-size: 0 !important;
    }
    .breadcrumbs > a,
    .breadcrumbs > span {
        display: none !important;
    }
    .breadcrumbs > a:nth-last-of-type(1) {
        display: inline-flex !important;
        align-items: center;
        font-size: 0.95rem !important;
        color: var(--clr-text-muted);
        text-decoration: none;
    }
    .breadcrumbs > a:nth-last-of-type(1)::before {
        content: '\2190';
        margin-right: 0.5rem;
        font-size: 1.2rem;
        line-height: 1;
    }
    .product-title-lg {
        font-size: 1.25rem;
    }
}
/* Mobile Menu Overlay Redesign */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: calc(var(--z-sticky) - 1);
    background: rgba(15, 23, 42, 0.85) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    padding: 120px 2rem 2rem !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 3rem !important;
    clip-path: circle(0% at right 1.5rem top 2.5rem);
    transition: clip-path 0.5s cubic-bezier(0.65, 0, 0.35, 1) !important;
    pointer-events: none !important;
    visibility: hidden !important;
    transform: none !important;
}

.mobile-menu-overlay.active {
    clip-path: circle(150% at right 1.5rem top 2.5rem) !important;
    pointer-events: all !important;
    visibility: visible !important;
}

@media (max-width: 768px) {
    .mobile-nav {
        width: 100%;
    }

    .mobile-nav .nav-links {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 2rem !important;
        width: 100%;
        margin-bottom: 2rem;
        list-style: none !important;
    }

    .mobile-nav .nav-links a {
        font-size: 1.5rem !important;
        font-weight: 700 !important;
        letter-spacing: 0.05em;
        color: #fff;
        text-transform: uppercase;
        position: relative;
    }

    .mobile-full-btn {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-bottom: 1.5rem;
        padding: 1rem !important;
        font-size: 1.1rem !important;
        border-radius: var(--radius-lg) !important;
        background: rgba(255, 255, 255, 0.1) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        color: #fff;
        font-weight: 600;
    }
    
    .mobile-menu-extra {
        width: 100%;
    }

    .fade-up-item {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        transition-delay: calc(0.2s + (var(--delay) * 0.08s)) !important;
    }

    .mobile-menu-overlay.active .fade-up-item {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-actions button[aria-label="Сравнение"] {
        display: none !important;
    }
}

/* Hero Full-Width Redesign Override */
.full-width-hero {
    display: flex !important;
    max-width: 100% !important;
    padding: 6rem 2rem !important;
    background-image: linear-gradient(to right, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.5) 50%, rgba(15, 23, 42, 0.1) 100%), url('assets/hero_bg.png') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    border-radius: var(--radius-xl) !important;
    margin: 2rem auto !important;
    width: calc(100% - 4rem) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important;
}

.hero-inner {
    width: 100%;
    margin: 0 auto;
    max-width: 1400px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    min-height: 55vh;
}

.full-width-hero .hero-content {
    max-width: 650px;
    padding: 3rem;
    background: rgba(15, 23, 42, 0.6) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: var(--radius-lg);
}

@media (max-width: 900px) {
    .full-width-hero {
        background-image: linear-gradient(to bottom, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.5) 100%), url('assets/hero_bg.png') !important;
        padding: 3rem 1.5rem !important;
        min-height: auto;
        width: calc(100% - 2rem) !important;
        margin: 1rem auto !important;
        border-radius: var(--radius-lg) !important;
    }
    .hero-inner {
        justify-content: center;
    }
    .full-width-hero .hero-content {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .full-width-hero {
        padding: 6rem 0.5rem 1.5rem 0.5rem !important;
    }
    .full-width-hero .hero-content {
        padding: 1.25rem 0.875rem;
    }
    .full-width-hero .hero-title {
        font-size: 1.4rem;
        line-height: 1.15;
        margin-bottom: 0.5rem;
    }
    .full-width-hero .hero-subtitle {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    .full-width-hero .hero-actions {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    .full-width-hero .hero-actions .btn {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    .full-width-hero .hero-stats {
        margin-top: 1rem;
        padding-top: 1rem;
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    .full-width-hero .stat-item {
        flex: 1 1 calc(33.333% - 0.5rem);
        min-width: 75px;
    }
    .full-width-hero .stat-number {
        font-size: 1.25rem;
    }
    .full-width-hero .stat-label {
        font-size: 0.7rem;
    }
    .categories-section .category-card {
        padding: 0.5rem !important;
    }
    .product-tabs-section {
        padding: 1rem !important;
    }
    .tab-btn {
        font-size: 1rem !important;
        padding: 0.6rem 0.75rem !important;
    }
}

