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

:root {
    --primary-color: #0066CC;
    --primary-dark: #004499;
    --primary-light: #3388DD;
    --accent-color: #FF6B35;
    --accent-light: #FF8C61;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --bg-light: #f5f7fa;
    --bg-white: #ffffff;
    --bg-gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --bg-gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --bg-gradient-4: linear-gradient(135deg, #0066CC 0%, #004499 100%);
    --border-color: #e0e0e0;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 15px 40px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    background: var(--bg-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
}

.logo {
    display: flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
}

.logo img {
    height: 2.5rem;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 102, 204, 0.3));
}

.logo svg {
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 102, 204, 0.3));
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2.5rem;
}

.nav-menu > li {
    position: relative;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0;
}

.nav-menu a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.dropdown {
    position: relative;
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    box-shadow: var(--shadow-lg);
    border-radius: 12px;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    list-style: none;
    padding: 0.75rem 0;
    margin-top: 0.75rem;
    border: 1px solid var(--border-color);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    padding: 0.875rem 1.75rem;
    display: block;
    color: var(--text-dark);
}

.dropdown-menu a:hover {
    background: linear-gradient(90deg, rgba(0, 102, 204, 0.1), transparent);
    color: var(--primary-color);
    transform: translateX(5px);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

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

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

.btn-primary:active {
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 150px 0 100px;
    background-image: url('https://dmcdzzpjcpezdxbnreac.supabase.co/storage/v1/object/public/Website%20pics/samolot-glowne.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.hero-background-graphics {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-text {
    color: white;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
    letter-spacing: 3px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 2.25rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.btn-browse-tools {
    display: inline-block;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    font-weight: 700;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease 0.3s backwards;
    border: 2px solid transparent;
}

.btn-browse-tools:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(255, 255, 255, 0.5);
}

.search-box {
    display: flex;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    animation: fadeInUp 0.8s ease 0.4s backwards;
    transition: transform 0.3s ease;
}

.search-box:hover {
    transform: scale(1.02);
}

.search-input {
    flex: 1;
    padding: 1.5rem 2rem;
    border: none;
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: 1px;
    outline: none;
    background: transparent;
}

.search-input::placeholder {
    color: var(--text-light);
    font-weight: 600;
    letter-spacing: 1px;
}

.search-button {
    padding: 1.5rem 2.5rem;
    background: var(--bg-gradient-4);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-button:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s ease 0.6s backwards;
}

.hero-image .image-placeholder {
    min-height: 400px;
    width: 100%;
    max-width: 600px;
}

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Image Placeholders */
.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    color: var(--text-light);
    border: 2px dashed var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.image-placeholder svg {
    margin-bottom: 0.5rem;
    opacity: 0.6;
    z-index: 1;
}

.image-placeholder span {
    font-size: 0.875rem;
    text-align: center;
    font-weight: 500;
    z-index: 1;
}

.image-placeholder img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    z-index: 2;
}

.loan-tooling .image-placeholder.large {
    aspect-ratio: 4 / 5;
    width: auto;
    height: 100%;
}

.image-placeholder.large {
    aspect-ratio: 4 / 5;
    width: 100%;
    height: auto;
}

.image-placeholder.small {
    min-height: 200px;
}

.image-placeholder:hover {
    border-color: var(--primary-color);
    transform: scale(1.02);
    box-shadow: var(--shadow);
}

/* Section Headers */
.section-header {
    margin-bottom: 4rem;
    text-align: center;
}

.section-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-header h3 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Loan Tooling Section */
.loan-tooling {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
    position: relative;
}

.loan-tooling-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.content-text p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.9;
}

.content-images {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    height: 100%;
}

/* Values Section */
.values {
    padding: 120px 0;
    background: var(--bg-white);
    position: relative;
}

.values::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(180deg, var(--bg-light), transparent);
    pointer-events: none;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.value-card {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--bg-gradient-4);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.value-card:hover::before {
    transform: scaleX(1);
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.value-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-gradient-4);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.value-card h4 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text-dark);
}

.value-card p {
    color: var(--text-light);
    line-height: 1.9;
    font-size: 1.0625rem;
}

/* Services Section */
.services {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 100%);
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 20px;
    border: 2px solid var(--border-color);
    transition: all 0.4s ease;
    overflow: hidden;
    position: relative;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 102, 204, 0.1), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::after {
    left: 100%;
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
    transform: translateY(-8px);
}

.service-image {
    width: 100%;
    height: 200px;
    margin-bottom: 1.5rem;
    border-radius: 16px;
    overflow: hidden;
}

.service-card h4 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.0625rem;
}

.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.0625rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.service-link:hover {
    gap: 1rem;
    transform: translateX(5px);
}

/* AOG CTA Section */
.aog-cta {
    padding: 100px 0;
    background: var(--bg-gradient-4);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.aog-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.aog-cta-content {
    position: relative;
    z-index: 1;
}

.aog-cta-content h3 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.aog-cta-content p {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    opacity: 0.95;
}

.aog-cta .btn-primary {
    background: white;
    color: var(--primary-color);
    font-size: 1.125rem;
    padding: 1.25rem 3rem;
}

.aog-cta .btn-primary:hover {
    background: var(--bg-light);
    transform: translateY(-5px) scale(1.05);
}

/* Safety and Quality Section */
.safety-quality {
    padding: 120px 0;
    background: var(--bg-white);
}

.safety-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.safety-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.safety-images .image-placeholder {
    min-height: 300px;
}

.safety-text {
    max-width: 600px;
}

.safety-text p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    line-height: 1.9;
}

/* Certificates Section */
.certificates {
    padding: 120px 0;
    background: var(--bg-light);
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.certificate-item {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.certificate-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.certificate-item .image-placeholder {
    min-height: 250px;
}

/* Contact Section */
.contact {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light) 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
    align-items: start;
}

.contact-info h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    background: var(--bg-gradient-4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-details {
    color: var(--text-light);
    line-height: 2;
    font-size: 1.125rem;
}

.contact-details p {
    margin-bottom: 1.5rem;
}

.contact-details strong {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.25rem;
}

.contact-form {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.0625rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.125rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--bg-light);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form .btn {
    width: 100%;
    padding: 1.25rem;
    font-size: 1.125rem;
}

/* Footer */
.footer {
    background: linear-gradient(180deg, var(--text-dark) 0%, #0a0a0a 100%);
    color: white;
    padding: 80px 0 40px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    gap: 4rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.75rem;
    font-weight: 700;
}

.footer-links {
    display: flex;
    gap: 5rem;
    flex-wrap: wrap;
}

.footer-column h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
}

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

.footer-column ul li {
    margin-bottom: 1rem;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-column ul li a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-bottom p {
    opacity: 0.7;
    font-size: 0.9375rem;
}

/* Tools Page Styles */
.tools-page-header {
    padding: 150px 0 60px;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
    border-bottom: 1px solid var(--border-color);
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    font-size: 0.9375rem;
    color: var(--text-light);
}

.breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.breadcrumbs span {
    color: var(--text-light);
}

.breadcrumbs a + a::before,
.breadcrumbs a + span::before {
    content: '>';
    margin: 0 0.75rem;
    color: var(--text-light);
}

.page-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 3rem;
    background: var(--bg-gradient-4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tools-search-box {
    display: flex;
    max-width: 600px;
    background: var(--bg-white);
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.tools-search-box:focus-within {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-xl);
}

.tools-search-input {
    flex: 1;
    padding: 1.25rem 2rem;
    border: none;
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: 1px;
    outline: none;
    background: transparent;
}

.tools-search-input::placeholder {
    color: var(--text-light);
    font-weight: 600;
    letter-spacing: 1px;
}

.tools-search-button {
    padding: 1.25rem 2.5rem;
    background: var(--bg-gradient-4);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.tools-search-button:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.tools-catalog {
    padding: 80px 0;
    background: var(--bg-white);
}

/* Filters Section */
.filters-section {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow);
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    padding-bottom: 1rem;
    border-bottom: none;
    cursor: pointer;
    user-select: none;
}

.filters-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

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

.btn-toggle-filters {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-dark);
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
}

.btn-toggle-filters:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.filters-section.collapsed .toggle-icon {
    transform: rotate(180deg);
}

.filters-section.collapsed .filters-header {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filters-content {
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
    opacity: 1;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
}

.filters-section.collapsed .filters-content {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    overflow: hidden;
}

.btn-clear-filters {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9375rem;
}

.btn-clear-filters:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.filters-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.filter-group label {
    display: block;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.0625rem;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.75rem 1.25rem;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    user-select: none;
}

.filter-checkbox:hover {
    border-color: var(--primary-color);
    background: rgba(0, 102, 204, 0.05);
}

.filter-checkbox input[type="checkbox"] {
    margin: 0;
    margin-right: 0.75rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.filter-checkbox input[type="checkbox"]:checked + span {
    font-weight: 600;
    color: var(--primary-color);
}

.filter-checkbox:has(input[type="checkbox"]:checked) {
    background: rgba(0, 102, 204, 0.1);
    border-color: var(--primary-color);
}

.filter-checkbox span {
    font-size: 0.9375rem;
    color: var(--text-dark);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.tool-card {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--bg-gradient-4);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tool-card:hover::before {
    transform: scaleX(1);
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.tool-card-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tool-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 12px;
    background: var(--bg-light);
    margin-bottom: 0.5rem;
}

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

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

/* Image Carousel for Tool Cards */
.tool-card-image-carousel {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: var(--bg-light);
    margin-bottom: 0.5rem;
}

.tool-card-image-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.tool-card-image-carousel .tool-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
    margin-bottom: 0;
    object-fit: cover;
    transition: opacity 0.4s ease, transform 0.3s ease;
}

.tool-card-image-carousel .tool-card-image.active {
    opacity: 1;
    z-index: 1;
}

.tool-card:hover .tool-card-image-carousel .tool-card-image.active {
    transform: scale(1.05);
}

.tool-card-carousel-controls {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 8px;
    border-radius: 12px;
    backdrop-filter: blur(4px);
}

.tool-card-carousel-prev,
.tool-card-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: var(--text-dark);
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
    opacity: 0;
    z-index: 10;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.tool-card-carousel-prev {
    left: 8px;
}

.tool-card-carousel-next {
    right: 8px;
}

.tool-card-image-carousel:hover .tool-card-carousel-prev,
.tool-card-image-carousel:hover .tool-card-carousel-next {
    opacity: 1;
}

.tool-card-carousel-prev:hover,
.tool-card-carousel-next:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.tool-card-carousel-prev:active,
.tool-card-carousel-next:active {
    transform: translateY(-50%) scale(0.95);
}

.tool-card-carousel-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.tool-card-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.tool-card-carousel-dot.active {
    background: var(--bg-white);
    width: 10px;
    height: 10px;
}

.tool-card-carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.tool-card-image-placeholder {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 12px;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.tool-card-image-placeholder img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    opacity: 0.6;
}

.tool-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.4;
    margin: 0;
}

.tool-code {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
    margin: 0;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.btn-view-details {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: var(--bg-gradient-4);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    margin-top: 0.5rem;
}

.btn-view-details:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0.5rem 1rem;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.page-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.page-link.active {
    background: var(--bg-gradient-4);
    color: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.page-link.next {
    padding: 0.5rem 1.5rem;
    min-width: auto;
}

.page-ellipsis {
    color: var(--text-light);
    padding: 0 0.5rem;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--bg-white);
        width: 100%;
        text-align: left;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        padding: 1rem 0;
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu a {
        display: block;
        width: 100%;
        padding: 0.5rem 0;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--bg-light);
        margin-top: 0.5rem;
        margin-left: 1rem;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

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

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

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

    .hero-image {
        display: none;
    }

    .loan-tooling-content,
    .safety-content {
        grid-template-columns: 1fr;
    }

    .content-images {
        grid-template-columns: 1fr;
    }

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

    .footer-content {
        flex-direction: column;
    }

    .footer-links {
        width: 100%;
        gap: 3rem;
    }

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

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

    .hero-title {
        font-size: 2rem;
    }

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

    .section-header h3 {
        font-size: 2.25rem;
    }

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

    .aog-cta-content h3 {
        font-size: 2.5rem;
    }

    .aog-cta-content p {
        font-size: 1.25rem;
    }

    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .page-title {
        font-size: 2.5rem;
    }

    .tools-search-box {
        max-width: 100%;
    }
}

/* Admin Panel Styles */
.admin-panel {
    padding: 150px 0 80px;
    background: var(--bg-light);
    min-height: 100vh;
}

.admin-header {
    text-align: center;
    margin-bottom: 3rem;
}

.admin-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.admin-header p {
    font-size: 1.125rem;
    color: var(--text-light);
}

.admin-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.admin-section {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.admin-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.admin-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

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

.admin-form label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.admin-form input,
.admin-form textarea,
.admin-form select {
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
}

.admin-form textarea {
    resize: vertical;
    min-height: 100px;
}

.products-list {
    margin-top: 1rem;
}

.products-table {
    display: grid;
    gap: 0;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--bg-gradient-4);
    color: white;
    font-weight: 700;
    font-size: 0.9375rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    align-items: center;
    transition: background 0.2s ease;
}

.col-created-by,
.col-updated-by {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

.table-row:hover {
    background: var(--bg-light);
}

.table-row .col-name {
    font-weight: 600;
    color: var(--text-dark);
}

.table-row .col-code {
    font-family: 'Courier New', monospace;
    color: var(--primary-color);
    font-weight: 600;
}

.table-row .col-category {
    color: var(--text-light);
}

.col-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-edit,
.btn-delete {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

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

.btn-edit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-delete {
    background: #dc3545;
    color: white;
}

.btn-delete:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.products-count {
    margin-top: 1rem;
    text-align: right;
    color: var(--text-light);
    font-weight: 600;
}

.loading-message,
.no-products,
.error-message {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

.error-message {
    color: #dc3545;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-content {
    background: var(--bg-white);
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 2px solid var(--border-color);
}

.modal-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.modal-content .admin-form {
    padding: 2rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

/* Login Page Styles */
.login-section {
    padding: 150px 0 100px;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.login-container {
    max-width: 450px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--text-light);
    font-size: 1.0625rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.login-form label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9375rem;
}

.login-form input {
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.login-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
}

.btn-login {
    width: 100%;
    padding: 1rem;
    font-size: 1.125rem;
    margin-top: 0.5rem;
}

.login-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.login-footer p {
    color: var(--text-light);
    font-size: 0.9375rem;
}

.login-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.login-footer a:hover {
    text-decoration: underline;
}

.error-message {
    background: #fee;
    border: 2px solid #dc3545;
    color: #dc3545;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
}

.success-message {
    background: #d4edda;
    border: 2px solid #28a745;
    color: #155724;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
}

@media (max-width: 640px) {
    .login-container {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }

    .login-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 968px) {
    .filters-section {
        padding: 1.5rem;
    }
    
    .filters-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .btn-clear-filters {
        width: 100%;
    }

    .admin-section {
        padding: 1.5rem;
    }

    .table-header,
    .table-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .table-header {
        display: none;
    }

    .table-row {
        border: 2px solid var(--border-color);
        border-radius: 8px;
        margin-bottom: 1rem;
        padding: 1rem;
    }

    .table-row::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--text-light);
        font-size: 0.875rem;
        margin-bottom: 0.25rem;
    }

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

    .modal-content {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }
}

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

    .page-title {
        font-size: 2rem;
    }

    .tool-card {
        padding: 1.5rem;
    }

    .tool-card-image,
    .tool-card-image-placeholder {
        height: 160px;
    }

    .pagination {
        gap: 0.5rem;
    }

    .page-link {
        min-width: 40px;
        height: 40px;
        padding: 0.5rem;
        font-size: 0.875rem;
    }

    .page-link.next {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
}

/* Product Page Header */
.product-page-header {
    padding: 150px 0 60px;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
    border-bottom: 1px solid var(--border-color);
}

/* Product Detail Page Styles */
.product-detail {
    padding: 60px 0 80px;
    background: var(--bg-white);
}

.product-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
}

.product-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
    line-height: 1.3;
}

.product-codes {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 16px;
    border: 2px solid var(--border-color);
}

.product-code-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.code-label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.code-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

.product-actions {
    margin-top: 2rem;
}

.btn-add-to-cart {
    width: 100%;
    padding: 1.25rem 3rem;
    background: var(--bg-gradient-4);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-add-to-cart:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-add-to-cart:active {
    transform: translateY(-1px);
}

.product-image-section {
    position: sticky;
    top: 100px;
}

.product-image-placeholder {
    width: 100%;
    min-height: 500px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    border: 2px dashed var(--border-color);
    box-shadow: var(--shadow);
}

.product-image-placeholder svg {
    margin-bottom: 1rem;
    opacity: 0.6;
}

.product-image-placeholder span {
    font-size: 1rem;
    font-weight: 600;
}

/* Style for logo in placeholder (when no image) */
.product-image-placeholder img[alt="4Aviation Tools Logo"] {
    max-width: 60%;
    max-height: 60%;
    object-fit: contain;
    opacity: 0.5;
    border-radius: 0;
}

/* Style for actual product image in placeholder (fallback) */
.product-image-placeholder img:not([alt="4Aviation Tools Logo"]) {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    opacity: 1;
}

/* Product Image Carousel */
.product-image-carousel {
    width: 100%;
    min-height: 500px;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    box-shadow: var(--shadow);
}

.product-image-container {
    position: relative;
    width: 100%;
    min-height: 500px;
}

.product-image-carousel .product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    object-fit: cover;
    border-radius: 20px;
}

.product-image-carousel .product-image.active {
    opacity: 1;
    z-index: 1;
}

.product-carousel-controls {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.3);
    padding: 6px 12px;
    border-radius: 16px;
    backdrop-filter: blur(6px);
}

.product-carousel-prev,
.product-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.75);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: bold;
    color: var(--text-dark);
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
    opacity: 0;
    z-index: 10;
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.product-carousel-prev {
    left: 12px;
}

.product-carousel-next {
    right: 12px;
}

.product-image-carousel:hover .product-carousel-prev,
.product-image-carousel:hover .product-carousel-next {
    opacity: 1;
}

.product-carousel-prev:hover,
.product-carousel-next:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.product-carousel-prev:active,
.product-carousel-next:active {
    transform: translateY(-50%) scale(0.95);
}

.product-carousel-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.product-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.product-carousel-dot.active {
    background: var(--bg-white);
    width: 12px;
    height: 12px;
}

.product-carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.product-description {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.product-description h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.product-description p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.0625rem;
}

.breadcrumbs a + a::before {
    content: '';
}

.breadcrumbs a + span::before {
    content: '>';
    margin: 0 0.75rem;
    color: var(--text-light);
}

@media (max-width: 968px) {
    .product-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .product-image-section {
        position: static;
    }

    .product-image-placeholder {
        min-height: 400px;
    }

    .product-image-carousel {
        min-height: 400px;
    }

    .product-image-container {
        min-height: 400px;
    }

    .product-title {
        font-size: 2rem;
    }
}

@media (max-width: 640px) {
    .product-title {
        font-size: 1.75rem;
    }

    .code-value {
        font-size: 1.25rem;
    }

    .product-codes {
        padding: 1.5rem;
    }
}

/* Cart Page Styles */
.cart-page-header {
    padding: 150px 0 60px;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
    border-bottom: 1px solid var(--border-color);
}

.cart-content {
    padding: 60px 0 80px;
    background: var(--bg-white);
}

.empty-cart {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
    text-align: center;
}

.empty-cart-content svg {
    color: var(--text-light);
    margin-bottom: 2rem;
    opacity: 0.5;
}

.empty-cart-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.empty-cart-content p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.cart-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.cart-items-section h2,
.quotation-form-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.cart-item {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    transition: all 0.3s ease;
}

.cart-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.cart-item-code {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
    margin-bottom: 0.25rem;
}

.cart-item-reference {
    font-size: 0.9375rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-end;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.25rem;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-light);
    color: var(--text-dark);
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.quantity-input {
    width: 60px;
    text-align: center;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.5rem;
    background: transparent;
}

.quantity-input:focus {
    outline: none;
}

.btn-remove-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: transparent;
    border: 2px solid #dc3545;
    color: #dc3545;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-remove-item:hover {
    background: #dc3545;
    color: white;
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.btn-continue-shopping {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-continue-shopping:hover {
    color: var(--primary-dark);
    transform: translateX(-5px);
}

.btn-clear-cart {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 2px solid #dc3545;
    color: #dc3545;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-clear-cart:hover {
    background: #dc3545;
    color: white;
}

.quotation-form {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 20px;
    border: 2px solid var(--border-color);
}

.quotation-form .form-group {
    margin-bottom: 1.5rem;
}

.quotation-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.quotation-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9375rem;
}

.quotation-form input,
.quotation-form textarea,
.quotation-form select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
    color: var(--text-dark);
}

.quotation-form select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23666666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.quotation-form select:hover {
    border-color: var(--primary-light);
}

.quotation-form select:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%230066CC' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.quotation-form select option {
    padding: 0.5rem;
    background: white;
    color: var(--text-dark);
}

.quotation-form input:focus,
.quotation-form textarea:focus,
.quotation-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
}

.quotation-form textarea {
    resize: vertical;
    font-family: inherit;
    line-height: 1.6;
}

/* Rental Calendar Styles */
.calendar-container {
    margin-top: 1rem;
}

.rental-calendar {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 0.5rem;
}

.calendar-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
}

.calendar-month-year-selectors {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.calendar-month-select,
.calendar-year-select {
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    background: white;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23666666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    transition: all 0.2s ease;
}

.calendar-month-select {
    min-width: 140px;
}

.calendar-year-select {
    min-width: 90px;
}

.calendar-month-select:hover,
.calendar-year-select:hover {
    border-color: var(--primary-light);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%230066CC' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.calendar-month-select:focus,
.calendar-year-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%230066CC' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.calendar-month-select option,
.calendar-year-select option {
    padding: 0.5rem;
    background: white;
    color: var(--text-dark);
}

.calendar-nav-btn {
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    color: var(--text-dark);
    transition: all 0.2s ease;
}

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

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.calendar-weekday {
    text-align: center;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-light);
    padding: 0.5rem 0;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    background: white;
    border: 2px solid transparent;
}

.calendar-day.empty {
    cursor: default;
    background: transparent;
}

.calendar-day.past {
    color: var(--text-light);
    cursor: not-allowed;
    opacity: 0.4;
}

.calendar-day:not(.past):not(.empty):hover {
    background: var(--bg-light);
    border-color: var(--border-color);
}

.calendar-day.in-range {
    background: rgba(0, 102, 204, 0.1);
    color: var(--primary-color);
}

.calendar-day.start-date,
.calendar-day.end-date {
    background: var(--primary-color);
    color: white;
    font-weight: 700;
    border-color: var(--primary-color);
}

.calendar-day.start-date::before {
    content: '';
    position: absolute;
    left: 100%;
    top: 0;
    bottom: 0;
    width: 50%;
    background: rgba(0, 102, 204, 0.1);
    z-index: -1;
}

.calendar-day.end-date::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 0;
    bottom: 0;
    width: 50%;
    background: rgba(0, 102, 204, 0.1);
    z-index: -1;
}

@media (max-width: 640px) {
    .calendar-header {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .calendar-month-year-selectors {
        order: 3;
        width: 100%;
        justify-content: space-between;
    }

    .calendar-nav-btn {
        flex: 1;
        max-width: 50px;
    }

    .calendar-month-select,
    .calendar-year-select {
        flex: 1;
        min-width: auto;
        font-size: 0.875rem;
        padding: 0.5rem 1.75rem 0.5rem 0.5rem;
    }
}

.btn-submit-quotation {
    width: 100%;
    padding: 1.25rem;
    font-size: 1.125rem;
    margin-top: 1rem;
}

/* Quotation Summary Styles */
.quotation-summary {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 20px;
    border: 2px solid var(--border-color);
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.summary-header h2 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.btn-edit-quotation {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    background: var(--bg-white);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.btn-edit-quotation:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.summary-content {
    margin-bottom: 2rem;
}

.summary-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.summary-section:last-of-type {
    border-bottom: none;
}

.summary-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.summary-item {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    align-items: center;
}

.summary-item strong {
    font-weight: 600;
    color: var(--text-dark);
    min-width: 150px;
}

.summary-item span {
    color: var(--text-light);
}

.summary-reference {
    color: var(--primary-color);
    font-weight: 500;
}

.summary-quantity {
    margin-left: auto;
    font-weight: 600;
    color: var(--text-dark);
}

.summary-items .summary-item {
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 0.5rem;
}

.summary-message {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid var(--border-color);
}

.summary-message pre {
    margin: 0;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
    white-space: pre-wrap;
    word-wrap: break-word;
}

.summary-actions {
    display: flex;
    justify-content: center;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
}

.btn-send-quotation {
    padding: 1.25rem 3rem;
    font-size: 1.125rem;
    font-weight: 700;
    min-width: 250px;
}

@media (max-width: 640px) {
    .quotation-summary {
        padding: 1.5rem;
    }

    .summary-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .summary-header h2 {
        font-size: 1.5rem;
    }

    .summary-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .summary-item strong {
        min-width: auto;
    }

    .summary-quantity {
        margin-left: 0;
    }

    .btn-send-quotation {
        width: 100%;
        min-width: auto;
    }
}

.cart-link {
    position: relative;
    color: var(--primary-color) !important;
    font-weight: 600;
}

@media (max-width: 968px) {
    .cart-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .cart-item {
        flex-direction: column;
        gap: 1.5rem;
    }

    .cart-item-actions {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

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

    .cart-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
}

@media (max-width: 640px) {
    .cart-item {
        padding: 1.5rem;
    }

    .quotation-form {
        padding: 1.5rem;
    }

    .rental-calendar {
        padding: 1rem;
    }
    
    .calendar-header h3 {
        font-size: 1.125rem;
    }
    
    .calendar-day {
        font-size: 0.875rem;
    }
}

/* Scroll Animations - Elements visible by default on all pages */
.fade-in-on-scroll,
.slide-in-left,
.slide-in-right,
.scale-in {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Only apply animation styles on landing page */
body.index-page .fade-in-on-scroll {
    opacity: 0;
    transform: translateY(30px);
}

body.index-page .slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
}

body.index-page .slide-in-right {
    opacity: 0;
    transform: translateX(50px);
}

body.index-page .scale-in {
    opacity: 0;
    transform: scale(0.8);
}

/* Parallax Effect */
.parallax {
    will-change: transform;
    transition: transform 0.1s ease-out;
}

/* Scroll Image Carousel */
[data-scroll-images] {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

[data-scroll-images] img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

[data-scroll-images] img:first-child {
    opacity: 1;
}

/* Zoom on Scroll Effect */
.zoom-on-scroll {
    transition: transform 0.3s ease-out;
    will-change: transform;
}

/* Section Reveal - Sections visible by default on all pages */
section {
    opacity: 1;
    transform: translateY(0);
}

/* Only apply reveal animation on landing page (index.html) */
body.index-page section:not(.no-reveal) {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

body.index-page section.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth scroll behavior enhancement */
html {
    scroll-behavior: smooth;
}

/* Performance optimizations */
.parallax,
.zoom-on-scroll,
[data-scroll-images] {
    backface-visibility: hidden;
    perspective: 1000px;
}
