/* ===========================
   Reset & Base Styles
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

:root {
    --primary-color: #ff6b35;
    --secondary-color: #004e89;
    --dark-color: #1a1a2e;
    --light-color: #f5f5f5;
    --white: #ffffff;
    --gray: #6c757d;
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white);
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body.menu-open {
    overflow: hidden;
}

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

a:hover,
a:focus,
a:active {
    color: inherit;
    text-decoration: none;
    outline: none;
}

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

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

/* Prevent horizontal overflow from any element */
section {
    overflow-x: hidden;
}

/* ===========================
   Header
   =========================== */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 10000;
    transition: transform 0.3s ease-in-out;
    border-bottom: 10px solid #e31e27;
    width: 100%;
}

.header.hide-on-scroll {
    transform: translateY(-100%);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    gap: 20px;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
    text-decoration: none;
    color: inherit;
}

.logo-circle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), #ff8c5a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    flex-shrink: 0;
}

.logo-img {
    width: 35px;
    height: 35px;
    filter: brightness(0) invert(1);
}

.logo-text {
    font-size: 18px;
    font-weight: bold;
    color: var(--dark-color);
    line-height: 1.2;
    text-decoration: none;
}

.logo-text span {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: normal;
}

.nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-list li {
    display: inline-block;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    display: inline-block;
    padding: 8px 12px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--dark-color);
    transition: width 0.3s ease;
}

.nav-link.active::after {
    width: 100%;
}

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

.nav-link.active {
    color: var(--dark-color);
}

/* Dropdown Menu */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 280px;
    list-style: none;
    margin: 0;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    pointer-events: none;
}

.has-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu li {
    display: block;
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--dark-color);
    text-decoration: none;
    transition: background 0.2s ease;
    font-weight: 500;
}

.dropdown-menu a:hover {
    background: #f5f5f5;
    color: var(--primary-color);
}

.header-contact {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-shrink: 0;
}

.phone-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #e31e27;
    padding: 10px 15px;
    border-radius: 8px;
}

.contact-phones {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.phone-link,
.email-link {
    text-decoration: none;
    color: white;
    font-size: 16px;
    font-weight: 700;
    display: inline-block;
    padding: 4px 0;
    white-space: nowrap;
}

.email-link {
    background: #e31e27;
    padding: 10px 15px;
    border-radius: 8px;
}

.cart-link {
    text-decoration: none;
    color: var(--white);
    font-size: 14px;
    display: inline-block;
    white-space: nowrap;
    font-weight: 600;
    padding: 10px 18px;
    background: #6c757d;
    border-radius: var(--border-radius);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 10002;
    position: relative;
    pointer-events: auto;
}

.mobile-menu-btn span {
    width: 28px;
    height: 3px;
    background: var(--dark-color);
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
    pointer-events: none;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    background: linear-gradient(135deg, rgba(74, 85, 104, 0.6) 0%, rgba(237, 137, 54, 0.6) 100%), 
                url('../images/KCT_RIEPU_SERVISS_hp.png') center/cover no-repeat;
    color: var(--white);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.hero-title {
    font-size: 56px;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 40px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 16px;
}

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

.btn-primary:hover {
    background: #c11820;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tire-showcase {
    position: relative;
    width: 400px;
    height: 300px;
}

.tire {
    position: absolute;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border: 3px solid var(--white);
    border-radius: 50%;
    backdrop-filter: blur(10px);
}

.tire-1 {
    top: 0;
    left: 0;
}

.tire-2 {
    top: 0;
    right: 0;
}

.tire-3 {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* ===========================
   Alert Banner
   =========================== */
.alert-banner {
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: var(--white);
    padding: 20px 0;
    position: relative;
}

.alert-content {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.alert-content h3 {
    font-size: 24px;
    min-width: 120px;
}

.alert-content p {
    flex: 1;
    line-height: 1.8;
}

.alert-close {
    position: absolute;
    top: -10px;
    right: 0;
    background: none;
    border: none;
    color: var(--white);
    font-size: 30px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.alert-close:hover {
    transform: rotate(90deg);
}

/* ===========================
   Sections
   =========================== */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    margin-bottom: 40px;
    color: var(--dark-color);
    position: relative;
}

.section-title.centered {
    text-align: center;
}

.section-title.centered::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 15px auto 0;
}

.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.section-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--light-color), #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.section-description {
    margin-bottom: 20px;
    color: var(--gray);
    line-height: 1.8;
}

.features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-icon {
    width: 25px;
    height: 25px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

/* ===========================
   Par Mums Section
   =========================== */
.par-mums {
    background: var(--white);
    padding: 80px 0;
}

.par-mums-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    align-items: center;
}

.par-mums-image {
    background: #f0f0f0;
    border-radius: var(--border-radius);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-box {
    max-width: 100%;
}

.logo-box img {
    width: 100%;
    height: auto;
    display: block;
}

.par-mums-content {
    padding: 20px 0;
}

.par-mums-content .section-title {
    color: #2d3748;
    font-size: 36px;
    margin-bottom: 24px;
    font-weight: 700;
}

.par-mums-content .section-description {
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 16px;
}

.par-mums-content .features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 30px;
}

.par-mums-content .feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.par-mums-content .feature-icon {
    width: 24px;
    height: 24px;
    background: #2d3748;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
}

.par-mums-content .feature-item span:not(.feature-icon) {
    color: #2d3748;
    font-size: 15px;
    font-weight: 500;
}

/* ===========================
   Partner Brands
   =========================== */
.partner-brands {
    background: white;
    padding: 60px 0;
}

.partner-brands .section-title {
    margin-bottom: 50px;
    font-size: 32px;
    color: var(--dark-color);
}

.brands-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.brand-logo-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: transform 0.3s ease;
}

.brand-logo-item:hover {
    transform: scale(1.05);
}

.brand-logo-item img {
    max-width: 180px;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.brand-logo-item:hover img {
    filter: grayscale(0%);
}

@media (max-width: 768px) {
    .brands-logos {
        gap: 30px;
    }
    
    .brand-logo-item img {
        max-width: 120px;
        max-height: 70px;
    }
    
    .partner-brands .section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
}

/* ===========================
   Pakalpojumi
   =========================== */
.pakalpojumi {
    background: var(--light-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

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

.service-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--dark-color);
    font-weight: 600;
}

.service-card p {
    color: var(--gray);
    line-height: 1.5;
    font-size: 14px;
}

.service-category-card .service-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.2);
}

.service-category-card .view-prices {
    transition: transform 0.3s ease;
}

.service-category-card:hover .view-prices {
    transform: translateX(5px);
}

/* ===========================
   Veikals
   =========================== */
.product-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 30px;
    background: var(--light-color);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-color);
    transition: var(--transition);
}

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

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

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Product styles moved to shop.css to avoid conflicts */

.product-link:hover {
    background: var(--secondary-color);
}

/* ===========================
   Pieraksts
   =========================== */
.pieraksts {
    background: var(--light-color);
}

.booking-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.booking-info-main {
    background: var(--white);
    padding: 60px 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.booking-info-main p {
    font-size: 18px;
    color: var(--gray);
    line-height: 1.6;
}

.btn-large {
    padding: 16px 40px;
    font-size: 18px;
}

.booking-info-main {
    background: var(--white);
    padding: 60px 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.booking-info-main p {
    font-size: 18px;
    color: var(--gray);
    line-height: 1.6;
}

.btn-large {
    padding: 16px 40px;
    font-size: 18px;
}

.booking-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.booking-form .btn {
    grid-column: 1 / -1;
    margin-top: 10px;
}

.booking-info {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.booking-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.booking-info p {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.6;
}

.contact-big {
    display: block;
    font-size: 28px;
    color: var(--primary-color);
    text-decoration: none;
    margin: 30px 0;
    font-weight: bold;
}

.contact-big:hover {
    color: var(--secondary-color);
}

.info-text {
    font-style: italic;
}

/* ===========================
   Galerija
   =========================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    height: 250px;
    background: linear-gradient(135deg, var(--light-color), #e0e0e0);
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

/* ===========================
   Kontakti
   =========================== */
.kontakti {
    background: var(--light-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    max-width: 450px;
}

.contact-info h3 {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--dark-color);
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-icon {
    font-size: 24px;
    width: 40px;
    flex-shrink: 0;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-map {
    border-radius: var(--border-radius);
    overflow: visible;
    box-shadow: var(--shadow);
    max-width: 500px;
}

.map-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, var(--light-color), #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.navigation-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
}

.map-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    padding: 0;
    overflow: hidden;
}

.map-nav-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.map-nav-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===========================
   Footer
   =========================== */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 40px 0 20px;
}

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

.footer-section h3 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 700;
}

.footer-section p,
.footer-section a {
    color: var(--white);
    line-height: 1.8;
    font-size: 14px;
}

.footer-section a {
    display: block;
    transition: var(--transition);
}

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

.footer-section .contact-strong {
    font-weight: 700;
    font-size: 16px;
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: var(--white);
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* ===========================
   Responsive Design
   =========================== */

/* Tablet and smaller - reorganize header layout */
@media (max-width: 1225px) {
    .header {
        border-bottom: none !important;
        padding: 0 !important;
        overflow: visible !important;
        width: 100% !important;
    }
    
    .header .container {
        padding: 0 20px !important;
        max-width: 100% !important;
        overflow: visible !important;
    }
    
    .header-content {
        flex-wrap: wrap;
        justify-content: space-between;
        margin: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        padding-bottom: 0 !important;
        overflow: visible !important;
    }
    
    .logo {
        order: 1;
        flex: 0 0 auto;
    }
    
    .mobile-menu-btn {
        order: 3;
        margin-left: auto;
        display: flex !important;
        z-index: 10002 !important;
        position: relative;
    }
    
    .cart-link {
        order: 2;
    }
    
    .nav {
        order: 4;
        background: white;
        margin: 0 !important;
        position: fixed;
        top: 90px;
        left: -100%;
        width: 100%;
        max-width: 100%;
        box-shadow: var(--shadow);
        transition: left 0.3s ease;
        padding: 20px 0;
        z-index: 10001;
        max-height: calc(100vh - 90px);
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    .nav.active {
        left: 0 !important;
    }
    
    .header-contact {
        order: 5;
        background: #e31e27 !important;
        margin: 0 -20px -15px -20px !important;
        padding: 15px 20px 25px 20px !important;
        width: 100vw !important;
        max-width: none !important;
        border-bottom: 10px solid #e31e27 !important;
        box-sizing: border-box !important;
        justify-content: center;
        border-top: none;
        flex-wrap: wrap;
        position: relative;
        left: 0;
        margin-left: -20px !important;
    }
    
    .phone-links {
        background: transparent;
        padding: 0;
        border-radius: 0;
        display: block !important;
    }
    
    .phone-link {
        display: block;
        padding: 5px 0;
        color: white !important;
    }
    
    .email-link, .cart-link {
        background: transparent !important;
        color: white !important;
    }
    
    .contact-phones {
        flex-direction: row;
        gap: 15px;
    }
    
    /* Tablet/Medium screen dropdown styles */
    .nav-list {
        flex-direction: column;
        gap: 0;
        align-items: center;
    }
    
    .nav-link {
        display: block;
        padding: 15px 20px;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--light-color);
    }
    
    .nav-link::after {
        display: none;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        transition: opacity 0.3s ease, max-height 0.3s ease, visibility 0.3s;
        box-shadow: none;
        background: #f5f5f5;
        border-radius: 0;
        padding: 0;
        width: 100%;
        transform: none;
    }
    
    .has-dropdown.active .dropdown-menu {
        opacity: 1;
        visibility: visible;
        max-height: 500px;
    }
    
    .dropdown-menu a {
        padding: 12px 30px;
        text-align: center;
        border-bottom: 1px solid #e0e0e0;
        font-size: 14px;
    }
}

@media (max-width: 968px) {
    .nav {
        position: fixed;
        top: 90px;
        left: -100%;
        width: 100%;
        background: var(--white);
        box-shadow: var(--shadow);
        transition: left 0.3s ease;
        padding: 20px 0;
        z-index: 10001;
        max-height: calc(100vh - 90px);
        overflow-y: auto;
    }

    .nav.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
        align-items: center;
    }

    .nav-link {
        display: block;
        padding: 15px 20px;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--light-color);
    }

    .nav-link::after {
        display: none;
    }
    
    /* Mobile Dropdown Menu */
    .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        background: #f5f5f5;
        border-radius: 0;
        padding: 0;
        width: 100%;
    }
    
    .has-dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-menu a {
        padding: 12px 30px;
        text-align: center;
        border-bottom: 1px solid #e0e0e0;
        font-size: 14px;
    }

    .mobile-menu-btn {
        display: flex !important;
    }

    .header-contact {
        gap: 10px;
    }

    .phone-links {
        gap: 2px;
    }

    .phone-link {
        font-size: 12px;
        padding: 4px 8px;
    }

    .contact-phones {
        gap: 8px;
    }

    .phone-link,
    .email-link {
        font-size: 12px;
        padding: 6px 8px;
    }

    .cart-link {
        padding: 8px 14px;
        font-size: 13px;
    }

    .logo-text {
        font-size: 16px;
    }

    .logo-circle {
        width: 50px;
        height: 50px;
    }

    .logo-img {
        width: 28px;
        height: 28px;
    }
}

/* Tablet screens - 2 columns for services */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Small screens - contacts below logo, cart next to logo */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: space-between;
        padding: 10px 0;
    }
    
    .logo {
        order: 1;
        flex: 0 1 auto;
    }
    
    .mobile-menu-btn {
        order: 2;
        margin-left: auto;
        margin-right: 5px;
    }
    
    .nav {
        order: 4;
    }
    
    .cart-link {
        order: 2;
        padding: 8px 12px;
        margin-right: 10px;
    }
    
    .header-contact {
        order: 3;
        margin-left: 0;
        justify-content: center;
        border-top: 1px solid var(--light-color);
        padding-top: 10px;
        margin-top: 5px;
    }
    
    .contact-phones {
        flex-direction: row;
        gap: 15px;
    }
    
    .phone-link,
    .email-link {
        font-size: 11px;
        padding: 4px 6px;
    }
    
    /* Content boxes */
    .content-box,
    .info-box,
    .feature-card {
        margin: 10px 0;
        padding: 15px;
    }
    
    .section {
        padding: 30px 0;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-cta .btn {
        width: 100%;
        text-align: center;
    }
    
    .par-mums-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .par-mums-image {
        padding: 30px;
    }
    
    .par-mums-content .features {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .service-card {
        padding: 25px 20px;
    }
}

/* Extra small screens - Galaxy S8+ and similar */
@media (max-width: 400px) {
    .container {
        padding: 0 10px;
    }
    
    .header-content {
        padding: 8px 0;
        gap: 8px;
    }
    
    .cart-link {
        padding: 6px 10px;
        margin-right: 8px;
        font-size: 12px;
    }
    
    .mobile-menu-btn {
        margin-right: 8px;
    }
    
    .logo img {
        max-height: 45px;
    }
    
    .content-box,
    .info-box,
    .feature-card {
        margin: 8px 0;
        padding: 12px;
    }
    
    .phone-link,
    .email-link {
        font-size: 10px;
        padding: 3px 5px;
    }
    
    .contact-phones {
        gap: 10px;
    }
}

@media (max-width: 640px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

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

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-cta {
        justify-content: center;
    }

    .tire-showcase {
        width: 300px;
        height: 200px;
    }

    .tire {
        width: 100px;
        height: 100px;
    }

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

    .booking-form {
        grid-template-columns: 1fr;
    }

    .services-grid,
    .products-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

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

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

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

    .alert-content {
        flex-direction: column;
        text-align: center;
    }

    .alert-content h3 {
        min-width: auto;
    }

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

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

/* ===========================
   Empty Cart
   =========================== */
.empty-cart {
    text-align: center;
    padding: 80px 20px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 0 auto;
}

.empty-cart h3 {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.empty-cart p {
    color: var(--gray);
    margin-bottom: 30px;
    font-size: 18px;
}


/* ===========================
   Page Header
   =========================== */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), #ff8c5a);
    color: #ffffff !important;
    padding: 0;
    text-align: center;
    height: 225px;
    min-height: 225px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-header .container {
    color: #ffffff !important;
}

.page-header h1 {
    font-size: 56px;
    margin: 0 0 10px 0;
    color: #ffffff !important;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-header p {
    font-size: 24px;
    margin: 0;
    opacity: 1;
    color: #ffffff !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* ===========================
   Service Prices Table
   =========================== */
.prices-table-container {
    margin-top: 20px;
}

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

.prices-table th {
    background: var(--primary-color);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.prices-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.prices-table tr:hover {
    background-color: #f5f5f5 !important;
}

/* Stack booking boxes and contact sections vertically on tablets and mobile */
@media (max-width: 768px) {
    /* Online pieraksts - Stack boxes vertically (override inline grid) */
    .pieraksts .booking-content,
    section .booking-content,
    div.booking-content {
        display: flex !important;
        flex-direction: column !important;
        gap: 30px !important;
        grid-template-columns: none !important;
    }
    
    .booking-info-main,
    .booking-info {
        width: 100% !important;
        max-width: 100% !important;
        padding: 40px !important;
        box-sizing: border-box !important;
    }
    
    .booking-info-main {
        text-align: center !important;
    }
    
    .booking-info {
        text-align: center !important;
    }
    
    .contact-phones {
        flex-direction: column !important;
        align-items: center !important;
    }
    
    /* Kontakti - Stack contact info and map vertically (override inline grid) */
    .kontakti .contact-grid,
    section .contact-grid,
    div.contact-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 30px !important;
        grid-template-columns: none !important;
    }
    
    .contact-info,
    .contact-map {
        width: 100% !important;
        max-width: 100% !important;
    }
}

@media (max-width: 768px) {
    .prices-table {
        font-size: 14px;
    }
    
    .prices-table th,
    .prices-table td {
        padding: 10px;
    }
    
    .prices-table th:nth-child(2),
    .prices-table td:nth-child(2) {
        display: none;
    }
}

/* Phone links with red background on all screens */
.phone-links {
    background: #e31e27;
    padding: 10px;
    border-radius: 5px;
}

.phone-link {
    color: white !important;
}

/* Duplicate 1225px media query removed - merged into main one above */
