/* Base Styles */
:root {
    --black: #000000;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --mid-gray: #aaaaaa;
    --dark-gray: #333333;
    --red: #e74c3c;
    --blue: #4834d4;
    --green: #2ecc71;
    --yellow: #f1c40f;
    --primary-color: var(--red);
    --transition: all 0.3s ease;
    --fade-duration: 5s;
    --blur-intensity: 5px;
    --hamburger-bar-spacing: 5px; /* Base spacing between bars */
}

/* Custom Font */
@font-face {
    font-family: 'SpaceX';
    src: url('../../font/SpaceX.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Text selection color */
::selection {
    background-color: var(--black);
    color: var(--white);
}

::-moz-selection {
    background-color: var(--black);
    color: var(--white);
}

/* Scroll Arrow */
.scrollme {
    position: absolute;
    left: 50%;
    bottom: 50px;
    width: 30px;
    height: 20px;
    margin: 0 0 0 -15px;
    opacity: 0;
    visibility: hidden;
    transform: translate3d(0px, -10px, 0px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 100;
    cursor: pointer;
    animation: none;
}

.scrollme.visible {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0px, 0px, 0px);
    animation: arrowAppearDisappear 4s ease-in-out infinite;
}

@keyframes arrowAppearDisappear {
    0% {
        transform: translate3d(0px, -20px, 0px);
        opacity: 0;
    }
    40% {
        transform: translate3d(0px, 0px, 0px);
        opacity: 1;
    }
    60% {
        transform: translate3d(0px, 0px, 0px);
        opacity: 1;
    }
    90% {
        transform: translate3d(0px, 0px, 0px);
        opacity: 0;
    }
    100% {
        transform: translate3d(0px, -20px, 0px);
        opacity: 0;
    }
}

.scrollme svg path {
    fill: none;
    stroke: #fff;
    transition: stroke 0.3s ease;
}

.scrollme:hover svg path {
    stroke: whitesmoke;
}

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

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

body {
    font-family: 'Varela Round', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--white);
    overflow-x: hidden;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 1px;
}

h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

h2 {
    font-size: 3rem;
}

h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 0;
    box-sizing: border-box;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    letter-spacing: 2px;
}

.separator {
    width: 80px;
    height: 2px;
    background-color: var(--black);
    margin: 0 auto;
}

.center-separator {
    margin-left: auto;
    margin-right: auto;
}

.text-center {
    text-align: center;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 10px 10px;
    border: 1px solid var(--white);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    position: relative;
    overflow: hidden;
    z-index: 100;
    font-family: 'Space Grotesk', sans-serif;
}

.btn::after {
    background: var(--white);
    content: "";
    position: absolute;
    z-index: -1;
    height: 100%;
    left: 0;
    top: 0;
    width: 100%;
    transform-origin: top center;
    transform: scale3d(1, 0, 1);
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.btn:hover::after {
    height: 100%;
    width: 100%;
    transform: scale3d(1, 1, 1);
    transform-origin: bottom center;
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.2);
    color: var(--white);
}

.btn:focus::after {
    height: 100%;
    width: 100%;
    transform: scale3d(1, 1, 1);
    transform-origin: bottom center;
}

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

.btn-primary:hover {
    background-color: transparent;
    color: var(--black);
}

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

.btn-secondary:hover {
    background-color: transparent;
    color: var(--black);
}

.btn-outline {
    background-color: transparent;
    color: var(--black);
    border: 1px solid var(--black);
    padding: 8px 15px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    align-self: flex-start;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-outline::after {
    background: var(--black);
    content: "";
    position: absolute;
    z-index: -1;
    height: 100%;
    left: 0;
    top: 0;
    width: 100%;
    transform-origin: top center;
    transform: scale3d(1, 0, 1);
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

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

.btn-outline:hover::after {
    height: 100%;
    width: 100%;
    transform: scale3d(1, 1, 1);
    transform-origin: bottom center;
}

/* Product Components and Styling */

.product-description-text.truncated {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 4.8em;
}

.read-more-container {
    text-align: right;
    position: absolute;
    right: 0;
    top: 56px;
    width: 120px;
    color: var(--dark-gray);
    background-color: white;
    margin-top: 5px;
}

.read-more-btn {
    display: inline-block;
    color: var(--dark-gray);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    position: relative;
    padding-right: 15px;
    transition: color 0.3s ease;
    margin-left: 5px;
    padding-right: 0;
}

.read-more-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: calc(100% - 15px);
    height: 1px;
    background: var(--dark-gray);
    -webkit-transform: scaleX(0);
    transform: scaleX(0);
    -webkit-transform-origin: right center;
    transform-origin: right center;
    -webkit-transition: -webkit-transform .6s cubic-bezier(.19,1,.22,1);
    transition: -webkit-transform .6s cubic-bezier(.19,1,.22,1);
    transition: transform .6s cubic-bezier(.19,1,.22,1);
    transition: transform .6s cubic-bezier(.19,1,.22,1),-webkit-transform .6s cubic-bezier(.19,1,.22,1);
}

.read-more-btn:hover {
    color: var(--mid-gray);
}

.read-more-btn:focus::after, 
.read-more-btn:hover::after {
    -webkit-transition-duration: .4s;
    transition-duration: .4s;
    -webkit-transform: scaleX(1);
    transform: scaleX(1);
    -webkit-transform-origin: left center;
    transform-origin: left center;
}

.more-indicator {
    color: var(--dark-gray);
}

.text-collapse-toggle {
    display: inline-block;
    color: var(--dark-gray);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    position: relative;
    cursor: pointer;
    transition: color 0.3s ease;
}

.text-collapse-toggle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--dark-gray);
    -webkit-transform: scaleX(0);
    transform: scaleX(0);
    -webkit-transform-origin: right center;
    transform-origin: right center;
    -webkit-transition: -webkit-transform .6s cubic-bezier(.19,1,.22,1);
    transition: -webkit-transform .6s cubic-bezier(.19,1,.22,1);
    transition: transform .6s cubic-bezier(.19,1,.22,1);
    transition: transform .6s cubic-bezier(.19,1,.22,1),-webkit-transform .6s cubic-bezier(.19,1,.22,1);
}

.text-collapse-toggle:hover {
    color: var(--mid-gray);
}

.text-collapse-toggle:focus::after, 
.text-collapse-toggle:hover::after {
    -webkit-transition-duration: .4s;
    transition-duration: .4s;
    -webkit-transform: scaleX(1);
    transform: scaleX(1);
    -webkit-transform-origin: left center;
    transform-origin: left center;
}

/* Header/Navigation */
#header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    height: 66px;
    transition: transform 0.5s cubic-bezier(.19,1,.22,1), var(--transition);
}

#navigation-right, .header-inner {
    -webkit-transition: opacity .2s linear .1s;
    transition: opacity .2s linear .1s;
}

#header.is-hidden {
    pointer-events: none;
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(.19,1,.22,1);
}

#header.is-hidden #hamburger, #header.is-hidden #navigation-right, #header.is-hidden .header-inner {
    opacity: 0;
    -webkit-transition-delay: 0s;
    transition-delay: 0s;
}

.header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    will-change: transform;
    background-color: var(--black);
    -webkit-transform: translate3d(0,-100%,0);
    transform: translate3d(0,-100%,0);
    -webkit-transition: -webkit-transform .7s cubic-bezier(.19,1,.22,1) .15s;
    transition: -webkit-transform .7s cubic-bezier(.19,1,.22,1) .15s;
    transition: transform .7s cubic-bezier(.19,1,.22,1) .15s;
    transition: transform .7s cubic-bezier(.19,1,.22,1),-webkit-transform .7s cubic-bezier(.19,1,.22,1) .15s;
}

#header.has-background .header-bg {
    -webkit-transform: none;
    transform: none;
    -webkit-transition-delay: 0s;
    transition-delay: 0s;
}

.header-inner {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 1300px;
    margin: 0 auto;
    text-align: left;
    padding: 0 20px;
}

#logo {
    position: absolute;
    color: var(--white);
    top: 20px;
    left: 10px;
    width: 300px;
    height: auto;
}

#logo .logo {
    font-family: 'SpaceX', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

#logo img, #logo svg {
    display: block;
    width: 100%;
    height: auto;
}

#navigation {
    display: inline-block;
    position: absolute;
    top: 21px;
    left: 100px;
    height: 30px;
}

#navigation-right {
    display: inline-block;
    position: fixed;
    top: 21px;
    right: 60px;
    height: 30px;
    z-index: 1001;
}

#navigation-right .nav-links li a {
    color: var(--white);
}

.nav-links {
    position: relative;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    position: relative;
    display: inline-block;
    margin: 0 12px;
}

.nav-links li a {
    display: block;
    line-height: 1.4;
    position: relative;
    font: 14px/28px 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-style: normal;
    color: var(--white);
    text-transform: uppercase;
    -webkit-transition: color .25s ease;
    transition: color .25s ease;
}

#navigation .nav-links li a:after, #navigation-right .nav-links li a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--white);
    -webkit-transform: scaleX(0);
    transform: scaleX(0);
    -webkit-transform-origin: right center;
    transform-origin: right center;
    -webkit-transition: -webkit-transform .6s cubic-bezier(.19,1,.22,1);
    transition: -webkit-transform .6s cubic-bezier(.19,1,.22,1);
    transition: transform .6s cubic-bezier(.19,1,.22,1);
    transition: transform .6s cubic-bezier(.19,1,.22,1),-webkit-transform .6s cubic-bezier(.19,1,.22,1);
}

#navigation .nav-links li a:hover, #navigation-right .nav-links li a:hover {
    color: var(--white);
}

#navigation .nav-links li a:focus:after, #navigation .nav-links li a:hover:after, 
#navigation-right .nav-links li a:focus:after, #navigation-right .nav-links li a:hover:after {
    -webkit-transition-duration: .4s;
    transition-duration: .4s;
    -webkit-transform: scaleX(1);
    transform: scaleX(1);
    -webkit-transform-origin: left center;
    transform-origin: left center;
}


#hamburger:active, #hamburger:focus {
    outline: 0;
}

.bar {
    position: absolute;
    display: block !important;
    width: 20px;
    height: 1px;
    background-color: var(--white) !important;
    transition: transform 0.3s ease, opacity 0.3s ease;
    left: 6px;
}

.bar:nth-child(1) {
    top: 0;
}

.bar:nth-child(2) {
    top: calc(var(--hamburger-bar-spacing) * 1);
}

.bar:nth-child(3) {
    top: calc(var(--hamburger-bar-spacing) * 2);
}

#hamburger.active .bar:nth-child(1) {
    transform: translateY(var(--hamburger-bar-spacing)) rotate(45deg);
    background-color: var(--white) !important;
}

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

#hamburger.active .bar:nth-child(3) {
    transform: translateY(calc(var(--hamburger-bar-spacing) * -1)) rotate(-45deg);
    background-color: var(--white) !important;
}

/* Responsive adjustments for hamburger bar spacing */
@media (max-width: 576px) {
    :root {
        --hamburger-bar-spacing: 4px; /* Smaller spacing for small screens */
    }
}

@media (min-width: 1400px) {
    :root {
        --hamburger-bar-spacing: 6px; /* Larger spacing for large screens */
    }
}

/* Side Panel Menu */
#menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    overflow: hidden;
    z-index: 9998;
    transition: width 0.5s cubic-bezier(.19,1,.22,1);
}

#menu.active {
    width: 300px;
}

/* Backdrop overlay with blur effect */
.backdrop-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(var(--blur-intensity));
    -webkit-backdrop-filter: blur(var(--blur-intensity));
    z-index: 9997;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.1s ease, visibility 0.1s ease;
    pointer-events: none;
    will-change: opacity, visibility;
}

#menu.active ~ .backdrop-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

/* Remove the CSS that hides header elements */
#menu.active ~ #header #navigation,
#menu.active ~ #header #navigation-right,
#menu.active ~ #header #logo {
    opacity: 1;
    visibility: visible;
}

#menu-background {
    position: absolute;
    top: 0;
    left: 0;
    -webkit-transform-origin: left top;
    transform-origin: left top;
    display: block;
    width: 100%;
    height: 120%;
    background-color: var(--black);
    z-index: 1;
}

#menu-navigation {
    position: absolute;
    top: 70px;
    right: 25px;
    width: 220px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

#menu.active #menu-navigation {
    opacity: 1;
    transition-delay: 0.3s;
}

#menu-navigation .nav-links li {
    display: block;
    margin: 0;
    text-align: right;
}

#menu-navigation .nav-links li.primary {
    display: none;
}

#menu-navigation .nav-links a {
    display: inline-block;
    font: 16px/40px 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-style: normal;
    color: var(--white);
    text-transform: uppercase;
    position: relative;
    transition: color 0.3s ease;
}

#menu-navigation .nav-links a:hover {
    color: var(--mid-gray);
}

#menu-navigation .nav-links a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--white);
    -webkit-transform: scaleX(0);
    transform: scaleX(0);
    -webkit-transform-origin: right center;
    transform-origin: right center;
    -webkit-transition: -webkit-transform .6s cubic-bezier(.19,1,.22,1);
    transition: -webkit-transform .6s cubic-bezier(.19,1,.22,1);
    transition: transform .6s cubic-bezier(.19,1,.22,1);
    transition: transform .6s cubic-bezier(.19,1,.22,1),-webkit-transform .6s cubic-bezier(.19,1,.22,1);
}

#menu-navigation .nav-links a:focus:after, 
#menu-navigation .nav-links a:hover:after {
    -webkit-transition-duration: .4s;
    transition-duration: .4s;
    -webkit-transform: scaleX(1);
    transform: scaleX(1);
    -webkit-transform-origin: left center;
    transform-origin: left center;
}

/* Responsive adjustments for the header */
@media (max-width: 992px) {
    #navigation {
        display: none;
    }
    
    #navigation-right {
        display: none;
    }
    
    #hamburger {
        right: 30px;
    }
}

@media (max-width: 767px) {
    /* #hero{
        height: 95vh;
        min-height: 95vh;
    } */
    #header {
        height: 66px;
    }
    
    #logo {
        left: 64px;
        top: 8px;
        letter-spacing: 5px;
        width: 180px;
    }
    
    #logo .logo {
        font-size: 1.5rem;
    }
    
    #hamburger {
        right: 20px;
        top: 40px;
    }
    
    .container {
        padding: 0 20px;
    }
    
    #menu.active {
        width: 250px;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        right: 27px;
        width: 180px;
        height: 100vh;
        background-color: transparent;
        color: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        z-index: 1000;
        /* Fix for nav links overlapping buttons when not active */
        pointer-events: none;
        visibility: hidden;
    }
    
    /* Only enable interaction with nav links when menu is active */
    #menu.active .nav-links {
        pointer-events: auto;
        visibility: visible;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .nav-links a {
        color: var(--white);
        font-size: 1.1rem;
    }
    
    .hamburger {
        display: block;
        z-index: 1001;
    }
    
    .hamburger span {
        background-color: var(--white);
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .voltage-table th, 
    .voltage-table td,
    .dimensions-table th,
    .dimensions-table td {
        font-size: 0.8rem;
        padding: 8px 5px;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 14px;
    }
    
    section {
        padding: 60px 0;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-content {
        margin-left: 3rem;
        margin-bottom: 8rem;
        position: relative;
        z-index: 100; /* Ensure hero content is above other elements */
    }
    
    .cta-buttons {
        flex-direction: row;
        gap: 15px;
        position: relative;
        z-index: 101; /* Ensure buttons are clickable */
    }
    
    .btn {
        width: 50%;
        padding: 15px 10px;
        font-size: 12px;
        text-align: center;
    }
    
    /* Hide the "Get in Touch" button on mobile */
    .cta-buttons .btn-secondary {
        display: none;
    }
    
    #hamburger {
        right: 15px;
    }


    .product-grid,
    .models-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card {
        padding: 30px 20px;
    }
    
    .voltage-time-slot {
        width: 100%;
    }
    
    .table-container {
        margin-bottom: 20px;
        overflow-x: auto;
    }
    
    .benefits-list {
        padding: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 100vh;
    background-color: var(--black);
    color: var(--white);
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    position: relative;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 40%, rgba(0, 0, 0, 0.3) 70%);
    filter: brightness(0.6);
    z-index: 1;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slideshow .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity var(--fade-duration) ease;
}

.hero-slideshow .slide.active {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin-bottom: 7rem;
    padding-left: 0;
    margin-left: 0;
    animation: fadeIn 1s ease-out forwards;
}

/* Text animation classes */
.hero-text-wrapper {
    position: relative;
    overflow: hidden;
    will-change: transform, opacity;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    opacity: 1;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.tagline {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-family: 'Varela Round', sans-serif;
    opacity: 1;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

/* Simple fade animation */
.fade-out {
    opacity: 0 !important;
}

/* Animation keyframes for text transitions */
@keyframes fadeInText {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutText {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.animate-in {
    animation: fadeInText 0.8s ease-out forwards;
}

.animate-out {
    animation: fadeOutText 0.5s ease-in forwards;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    /* margin-top: 2rem; */
    opacity: 1;
}

/* About Section */
.about {
    background-color: var(--white);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.2rem;
}

/* Products Section */
.products {
    background-color: var(--light-gray);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
}

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

.icon {
    font-size: 2rem;
    margin-bottom: 20px;
}

/* Latest Products Section */
.latest-products {
    background-color: var(--light-gray);
    padding: 100px 0;
}

.latest-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Latest product grid uses the same product card item styling */
.latest-product-grid .product-card-item {
    background-color: transparent;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Badge styling for new products */
.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--black);
    color: var(--white);
    padding: 5px 10px;
    font-size: 0.8rem;
    border-radius: 4px;
    font-weight: bold;
    letter-spacing: 1px;
    z-index: 2;
}

/* No image styling */
.no-image {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-gray);
    color: var(--mid-gray);
    font-size: 2rem;
}

.latest-product-grid .product-card-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.latest-product-grid .product-card-item:hover .product-card-content {
    box-shadow: 0 -8px 15px rgba(0, 0, 0, 0.08);
}

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

.latest-product-grid .product-card-item .product-card-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.latest-product-grid .product-card-item .product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.latest-product-grid .product-card-item .product-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    margin-top: -15px;
    background-color: var(--white);
    position: relative;
    z-index: 2;
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.05);
}

.latest-product-grid .product-card-item .product-card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--black);
    line-height: 1.3;
}

.latest-product-grid .product-card-item .product-description-container {
    position: relative;
    margin-bottom: 15px;
    flex-grow: 1;
}

.latest-product-grid .product-card-item .product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.latest-product-grid .product-card-item .product-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--black);
    line-height: 1.3;
}

.latest-product-grid .product-card-item .product-info p {
    color: var(--dark-gray);
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.6;
    flex-grow: 1;
}

.latest-product-grid .product-card-item .no-image {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-gray);
    color: var(--mid-gray);
    font-size: 2rem;
}

.btn-outline {
    background-color: transparent;
    color: var(--black);
    border: 1px solid var(--black);
    padding: 8px 15px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    align-self: flex-start;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-outline::after {
    background: var(--black);
    content: "";
    position: absolute;
    z-index: -1;
    height: 100%;
    left: 0;
    top: 0;
    width: 100%;
    transform-origin: top center;
    transform: scale3d(1, 0, 1);
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

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

.btn-outline:hover::after {
    height: 100%;
    width: 100%;
    transform: scale3d(1, 1, 1);
    transform-origin: bottom center;
}

.view-all-products {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.view-all-products .btn-primary {
    background-color: transparent;
    color: var(--black);
    border-color: var(--black);
}

.view-all-products .btn-primary::after {
    background: var(--black);
}

.view-all-products .btn-primary:hover {
    color: var(--white);
}

.no-products {
    text-align: center;
    color: var(--dark-gray);
    font-style: italic;
    grid-column: 1 / -1;
    padding: 30px;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    margin: 20px 0;
    width: 100%;
}

.no-products a {
    color: var(--black);
    font-weight: bold;
    text-decoration: underline;
}

.no-products a:hover {
    color: var(--primary-color);
}

@media (max-width: 992px) {
    .latest-product-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 576px) {
    .latest-product-grid {
        grid-template-columns: 1fr;
    }
    
    .latest-product-grid .product-card-item .product-card-image {
        height: 280px;
    }
    
    .latest-product-grid .product-card-item .product-card-content h3 {
        font-size: 1.2rem;
    }
}

/* Voltage Control Section */
.voltage-control {
    background-color: var(--white);
}

.voltage-content {
    margin-bottom: 60px;
}

.voltage-content h3 {
    text-align: center;
    margin-bottom: 30px;
}

.voltage-chart {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.voltage-time-slot {
    width: 180px;
    text-align: center;
    padding: 15px;
    border: 1px solid var(--mid-gray);
    border-radius: 5px;
}

.voltage-range {
    font-weight: 700;
    padding: 8px;
    margin-bottom: 10px;
    border-radius: 3px;
}

.voltage-range.low {
    background-color: #e74c3c;
    color: var(--white);
}

.voltage-range.medium {
    background-color: #f1c40f;
    color: var(--black);
}

.voltage-range.high {
    background-color: #2ecc71;
    color: var(--white);
}

.time-range {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.note {
    font-size: 0.8rem;
    font-style: italic;
    color: var(--dark-gray);
}

.voltage-note {
    text-align: center;
    font-weight: 600;
    margin-top: 20px;
}

.voltage-types {
    margin-top: 50px;
}

.voltage-type {
    max-width: 900px;
    margin: 0 auto;
}

.voltage-type h3 {
    margin-bottom: 20px;
}

.voltage-type h4 {
    margin: 30px 0 20px;
}

.bullet-list {
    margin-left: 20px;
    margin-bottom: 20px;
}

.bullet-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.bullet-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background-color: var(--red);
    border-radius: 50%;
}

.dimensions-table {
    overflow-x: auto;
}

.dimensions-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.dimensions-table th, .dimensions-table td {
    padding: 12px 15px;
    text-align: left;
    border: 1px solid var(--mid-gray);
}

.dimensions-table th {
    background-color: var(--black);
    color: var(--white);
}

.dimensions-table tr:nth-child(even) {
    background-color: var(--light-gray);
}

/* Benefits Section */
.benefits {
    background-color: var(--light-gray);
}

.benefits-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.benefits-text {
    text-align: left;
}

.voltage-tables {
    margin: 30px 0;
}

.voltage-tables h3 {
    margin-bottom: 15px;
}

.table-container {
    overflow-x: auto;
    margin-bottom: 30px;
}

.voltage-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.voltage-table th, .voltage-table td {
    padding: 10px;
    text-align: center;
    border: 1px solid var(--mid-gray);
    font-size: 0.9rem;
}

.voltage-table th {
    background-color: var(--black);
    color: var(--white);
}

.voltage-table tr:nth-child(even) {
    background-color: var(--white);
}

.voltage-reasons {
    margin: 30px 0;
}

.suggestion-box {
    background-color: var(--white);
    padding: 20px;
    border-left: 4px solid var(--black);
    margin: 30px 0;
}

.suggestion-box h3 {
    margin-bottom: 10px;
    color: var(--black);
}

.benefits-list {
    background-color: var(--white);
    padding: 30px;
    border-radius: 5px;
}

.benefits-list h3 {
    margin-bottom: 20px;
}

.check-list {
    margin-bottom: 30px;
}

.check-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: bold;
}

.payback-box {
    background-color: var(--light-gray);
    padding: 20px;
    margin-top: 30px;
    border-left: 4px solid var(--black);
}

.payback-box h3 {
    color: var(--black);
    margin-bottom: 10px;
}

/* Models Section */
.models {
    background-color: var(--white);
}

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

.model-card {
    background-color: var(--light-gray);
    padding: 30px;
    text-align: center;
    border-radius: 5px;
    transition: var(--transition);
}

.model-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.model-card h3 {
    margin-bottom: 15px;
}

/* Contact Section */
.contact {
    background-color: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    margin-bottom: 50px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 1.5rem;
    margin-right: 15px;
    margin-top: 5px;
}

.form-group {
    margin-bottom: 20px;
}

input, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--mid-gray);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

input:focus, textarea:focus {
    outline: 2px solid rgba(0, 0, 0, 0.2);
    outline-offset: 2px;
    border-color: var(--black);
}

.map-container {
    height: 450px;
    filter: grayscale(100%);
}

/* Footer */
footer {
    background-color: var(--black);
    color: var(--white);
    padding: 40px 0 20px;
    min-height: auto;
    display: block;
}

.footer-header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: top;
}

.footer-header a {
    font-family: 'SpaceX', sans-serif;
    text-decoration: none;
}

.footer-logo {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 10px;
}

.footer-tagline {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 10px; 
    text-align: left;
}

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

.footer-logo img {
    width: 100%;
    height: auto;
}

@media (max-width: 767px) {
    .footer-logo img {
        position: absolute;
        right: 0;
        width: 100%;
        height: auto;
        max-width: 250px;
    }
}

.footer-logo h3 {
    margin-bottom: 15px;
    letter-spacing: 1.5px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    position: relative;
    display: inline-block;
}

.footer-links a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--white);
    -webkit-transform: scaleX(0);
    transform: scaleX(0);
    -webkit-transform-origin: right center;
    transform-origin: right center;
    -webkit-transition: -webkit-transform .6s cubic-bezier(.19,1,.22,1);
    transition: -webkit-transform .6s cubic-bezier(.19,1,.22,1);
    transition: transform .6s cubic-bezier(.19,1,.22,1);
    transition: transform .6s cubic-bezier(.19,1,.22,1),-webkit-transform .6s cubic-bezier(.19,1,.22,1);
}

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

.footer-links a:focus:after, 
.footer-links a:hover:after {
    -webkit-transition-duration: .4s;
    transition-duration: .4s;
    -webkit-transform: scaleX(1);
    transform: scaleX(1);
    -webkit-transform-origin: left center;
    transform-origin: left center;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border: 1px solid var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--white);
    color: var(--black);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-legal-links {
    margin-top: 15px;
    font-size: 0.85rem;
}

.footer-legal-links a {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-legal-links a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--white);
    -webkit-transform: scaleX(0);
    transform: scaleX(0);
    -webkit-transform-origin: right center;
    transform-origin: right center;
    -webkit-transition: -webkit-transform .6s cubic-bezier(.19,1,.22,1);
    transition: -webkit-transform .6s cubic-bezier(.19,1,.22,1);
    transition: transform .6s cubic-bezier(.19,1,.22,1);
    transition: transform .6s cubic-bezier(.19,1,.22,1),-webkit-transform .6s cubic-bezier(.19,1,.22,1);
}

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

.footer-legal-links a:focus:after, 
.footer-legal-links a:hover:after {
    -webkit-transition-duration: .4s;
    transition-duration: .4s;
    -webkit-transform: scaleX(1);
    transform: scaleX(1);
    -webkit-transform-origin: left center;
    transform-origin: left center;
}

.footer-products ul li {
    margin-bottom: 8px;
}

/* Responsive Styles */
/* Extra large devices (large desktops, 1400px and up) */
@media (min-width: 1400px) {
    html {
        font-size: 18px;
    }
    
    .container {
        max-width: 1320px;
    }
    
    h1 {
        font-size: 5rem;
    }
    
    h2 {
        font-size: 3.5rem;
    }
    
    h3 {
        font-size: 2.5rem;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
}

/* Large devices (desktops, 1200px and up) */
@media (min-width: 1200px) and (max-width: 1399px) {
    html {
        font-size: 17px;
    }
    
    .container {
        max-width: 1140px;
    }
}

/* Medium devices (laptops/desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199px) {
    html {
        font-size: 16px;
    }
    
    .container {
        max-width: 960px;
    }
    
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Small devices (landscape tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991px) {
    html {
        font-size: 15px;
    }
    
    .container {
        max-width: 720px;
    }
    
    h1 {
        font-size: 3.5rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .benefits-content {
        grid-template-columns: 1fr;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .voltage-chart {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .voltage-time-slot {
        width: 45%;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 576px) {
    html {
        font-size: 14px;
    }
    
    section {
        padding: 60px 0;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-content {
        margin-left: 3rem;
        margin-bottom: 8rem;
        position: relative;
        z-index: 100; /* Ensure hero content is above other elements */
    }
    
    .cta-buttons {
        flex-direction: row;
        gap: 15px;
        position: relative;
        z-index: 101; /* Ensure buttons are clickable */
    }
    
    .btn {
        width: 50%;
        padding: 15px 10px;
        font-size: 12px;
        text-align: center;
    }
    
    /* Hide the "Get in Touch" button on mobile */
    .cta-buttons .btn-secondary {
        display: none;
    }
    
    #hamburger {
        right: 15px;
    }
    
    .product-grid,
    .models-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card {
        padding: 30px 20px;
    }
    
    .voltage-time-slot {
        width: 100%;
    }
    
    .table-container {
        margin-bottom: 20px;
        overflow-x: auto;
    }
    
    .benefits-list {
        padding: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Small devices only (landscape phones, 576px to 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    html {
        font-size: 14.5px;
    }
    
    .container {
        max-width: 540px;
    }
    
    .product-grid,
    .models-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .voltage-time-slot {
        width: 48%;
    }
}

/* All mobile devices (767px and below) - for mobile navigation */
@media (max-width: 767px) {
    section {
        min-height: 95vh;
    }
    
    header {
        padding: 15px 0;
    }
    
    #menu.active {
        width: 250px;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        right: 27px;
        width: 180px;
        height: 100vh;
        background-color: transparent;
        color: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        z-index: 1000;
        /* Fix for nav links overlapping buttons when not active */
        pointer-events: none;
        visibility: hidden;
    }
    
    /* Only enable interaction with nav links when menu is active */
    #menu.active .nav-links {
        pointer-events: auto;
        visibility: visible;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .nav-links a {
        color: var(--white);
        font-size: 1.1rem;
    }
    
    .hamburger {
        display: block;
        z-index: 1001;
    }
    
    .hamburger span {
        background-color: var(--white);
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .voltage-table th, 
    .voltage-table td,
    .dimensions-table th,
    .dimensions-table td {
        font-size: 0.8rem;
        padding: 8px 5px;
    }
}

/* Fix for very small mobile screens */
@media (max-width: 360px) {
    html {
        font-size: 13px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.about-content, .product-grid, .voltage-content, .voltage-types, 
.benefits-content, .models-grid, .contact-grid {
    width: 100%;
}

/* Touch Device Styles */
.touch-device .btn,
.touch-device .nav-links a,
.touch-device .product-card,
.touch-device .model-card,
.touch-device .social-icons a {
    -webkit-tap-highlight-color: transparent;
}

.touch-device .btn:hover::after {
    height: 100%;
    width: 100%;
    transform: scale3d(1, 1, 1);
    transform-origin: bottom center;
}

.touch-device .btn:active {
    opacity: 0.9;
}

.touch-device .nav-links a:active::after {
    -webkit-transform: scaleX(1);
    transform: scaleX(1);
    -webkit-transform-origin: left center;
    transform-origin: left center;
    -webkit-transition-duration: .3s;
    transition-duration: .3s;
}

.touch-device .product-card:active {
    transform: translateY(-5px);
}

.touch-device .social-icons a:active {
    background-color: var(--white);
    color: var(--black);
}

/* Accessibility improvements */
.btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.2);
    color: var(--white);
}

.btn:focus::after {
    height: 100%;
    width: 100%;
    transform: scale3d(1, 1, 1);
    transform-origin: bottom center;
}

.product-card-content .btn:focus,
.model-card-body .btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.2);
    color: var(--white);
}

.product-card-content .btn:focus::after,
.model-card-body .btn:focus::after {
    height: 100%;
    width: 100%;
    transform: scale3d(1, 1, 1);
    transform-origin: bottom center;
}

/* Remove blue outline from nav links but keep it accessible */
.nav-links a:focus {
    outline: none;
}

.nav-links a:focus::after {
    -webkit-transform: scaleX(1);
    transform: scaleX(1);
    -webkit-transform-origin: left center;
    transform-origin: left center;
    -webkit-transition-duration: .4s;
    transition-duration: .4s;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background-color: var(--black);
    color: white;
    padding: 8px;
    z-index: 2000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Transition for header elements */
#logo, #navigation, #navigation-right {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Hide navigation elements when scrolling down */
.nav-hidden #hamburger, 
.nav-hidden #navigation-right {
    transform: translateY(-100px);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

/* Remove the rule that forces hamburger and navigation-right to be visible when header is hidden */
#header.is-hidden ~ #hamburger,
#header.is-hidden ~ #navigation-right {
    /* Override with empty rule to cancel out the previous rule */
}

/* Navigation elements that should hide/show with scroll */
#hamburger, #navigation-right {
    transition: transform 0.5s cubic-bezier(.19,1,.22,1), opacity 0.3s ease;
}

/* Page Header for inner pages */
.page-header {
    background-color: var(--black);
    color: var(--white);
    padding: 120px 0 60px;
    text-align: center;
    position: relative;
}

.page-header h1 {
    font-size: 3.5rem;
    margin: 0;
    letter-spacing: 3px;
}

/* About Page Styles */
.about-page {
    padding: 80px 0;
}

.about-intro, .about-mission, .about-expertise {
    margin-bottom: 60px;
}

.about-intro p, .about-mission p, .about-expertise p {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto 20px;
}

.mission-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.value-item {
    background-color: var(--light-gray);
    padding: 30px;
    border-radius: 5px;
    text-align: center;
    transition: var(--transition);
}

.value-item:hover {
    transform: translateY(-10px);
}

.value-item .icon {
    font-size: 2.5rem;
    color: var(--black);
    margin-bottom: 20px;
}

.expertise-image {
    margin-top: 40px;
    text-align: center;
}

.expertise-image img {
    max-width: 100%;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Products Page Styles */
.products-intro {
    padding: 60px 0;
    background-color: var(--white);
    text-align: center;
}

.intro-text {
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
}

.product-categories {
    padding: 40px 0 80px;
    background-color: var(--light-gray);
}

.product-category {
    margin-bottom: 80px;
    background-color: var(--white);
    padding: 40px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.product-category:last-child {
    margin-bottom: 0;
}

.product-description {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    margin-top: 30px;
}

.product-image {
    text-align: center;
}

.product-image img {
    max-width: 100%;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-details h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.feature-list, .application-list {
    margin-left: 20px;
    margin-bottom: 30px;
}

.feature-list li, .application-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background-color: var(--black);
    border-radius: 50%;
}

.application-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background-color: var(--red);
    border-radius: 50%;
}

.product-models {
    padding: 80px 0;
    background-color: var(--white);
}

/* Documentation Page Styles */
.faq-container {
    margin-top: 40px;
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid var(--mid-gray);
    border-radius: 5px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    background-color: var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: #e9e9e9;
}

.faq-question h3 {
    font-size: 1.1rem;
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.faq-toggle {
    font-size: 1rem;
    color: var(--black);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 20px 0;
    margin: 0;
}

/* Responsive styles for new pages */
@media (max-width: 992px) {
    .product-description {
        grid-template-columns: 1fr;
    }
    
    .product-image {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 100px 0 40px;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .doc-item {
        flex-direction: column;
    }
    
    .doc-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

/* Products Page Styles - Card Layout */
.product-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card-item {
    background-color: transparent;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product-card-item:hover .product-card-content {
    box-shadow: 0 -8px 15px rgba(0, 0, 0, 0.08);
}

.product-card-image {
    height: 300px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

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

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

.product-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    margin-top: -15px;
    background-color: var(--white);
    position: relative;
    z-index: 2;
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.05);
}

.product-card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--black);
}

.product-info .product-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--black);
    margin: 0;
    display: flex;
    align-items: center;
}

.product-description-container {
    position: relative;
    margin-bottom: 15px;
    flex-grow: 1;
}


.product-description-text.truncated {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 4.8em; /* Approximately 3 lines */
}

.read-more-container {
    text-align: right;
    position: absolute;
    right: 0;
    top: 56px;
    width: 120px;
    color: var(--dark-gray);
    background-color: white;
    margin-top: 5px;
}

.read-more-btn {
    display: inline-block;
    color: var(--dark-gray);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    position: relative;
    padding-right: 15px;
    transition: color 0.3s ease;
}

.read-more-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: calc(100% - 15px); /* Adjust width to exclude padding-right */
    height: 1px;
    background: var(--dark-gray);
    -webkit-transform: scaleX(0);
    transform: scaleX(0);
    -webkit-transform-origin: right center;
    transform-origin: right center;
    -webkit-transition: -webkit-transform .6s cubic-bezier(.19,1,.22,1);
    transition: -webkit-transform .6s cubic-bezier(.19,1,.22,1);
    transition: transform .6s cubic-bezier(.19,1,.22,1);
    transition: transform .6s cubic-bezier(.19,1,.22,1),-webkit-transform .6s cubic-bezier(.19,1,.22,1);
}

.read-more-btn:hover {
    color: var(--mid-gray);
}

.read-more-btn:focus::after, 
.read-more-btn:hover::after {
    -webkit-transition-duration: .4s;
    transition-duration: .4s;
    -webkit-transform: scaleX(1);
    transform: scaleX(1);
    -webkit-transform-origin: left center;
    transform-origin: left center;
}

.product-card-content p {
    color: var(--dark-gray);
    margin-bottom: 15px;
    flex-grow: 1;
}

.product-card-features {
    list-style: none;
    margin-bottom: 20px;
}

.product-card-features li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.product-card-features li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--black);
    font-weight: bold;
}

.product-card-content .btn {
    align-self: flex-start;
    margin-top: auto;
    color: var(--black);
    border-color: var(--black);
    background-color: transparent;
    position: relative;
    overflow: hidden;
}

.product-card-content .btn::after {
    background: var(--black);
    content: "";
    position: absolute;
    z-index: -1;
    height: 100%;
    left: 0;
    top: 0;
    width: 100%;
    transform-origin: top center;
    transform: scale3d(1, 0, 1);
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.product-card-content .btn:hover {
    color: var(--white);
}

.product-card-content .btn:hover::after {
    height: 100%;
    width: 100%;
    transform: scale3d(1, 1, 1);
    transform-origin: bottom center;
}

/* Responsive adjustments for product cards */
@media (max-width: 768px) {
    .product-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .product-card-image {
        height: 280px;
    }
    
    .product-card-content h3 {
        font-size: 1.3rem;
    }
    
    .product-description-text.truncated {
        -webkit-line-clamp: 2;
        max-height: 3.2em; /* Approximately 2 lines */
    }
}

@media (max-width: 576px) {
    .product-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .product-description-text.truncated {
        -webkit-line-clamp: 4;
        max-height: 6.4em; /* Approximately 4 lines */
    }
}

/* Model Cards Styles */
.model-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.model-card-item {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.model-card-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.model-card-header {
    background-color: var(--black);
    color: var(--white);
    padding: 15px 20px;
}

.model-card-header h3 {
    margin: 0;
    font-size: 1.3rem;
    letter-spacing: 1px;
}

.model-card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    margin-top: -15px;
    background-color: var(--white);
    position: relative;
    z-index: 2;
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.05);
}

.model-card-body p {
    color: var(--dark-gray);
    margin-bottom: 15px;
    flex-grow: 1;
}

/* Apply the same styling for model cards */
.model-card-body .product-description-container {
    position: relative;
    margin-bottom: 15px;
    flex-grow: 1;
}

.model-card-specs {
    list-style: none;
    margin-bottom: 20px;
    padding-left: 0;
}

.model-card-specs li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.model-card-specs li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--black);
    font-weight: bold;
}

.model-card-body .btn {
    align-self: flex-start;
    margin-top: auto;
    color: var(--black);
    border-color: var(--black);
    background-color: transparent;
    position: relative;
    overflow: hidden;
}

.model-card-body .btn::after {
    background: var(--black);
    content: "";
    position: absolute;
    z-index: -1;
    height: 100%;
    left: 0;
    top: 0;
    width: 100%;
    transform-origin: top center;
    transform: scale3d(1, 0, 1);
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.model-card-body .btn:hover {
    color: var(--white);
}

.model-card-body .btn:hover::after {
    height: 100%;
    width: 100%;
    transform: scale3d(1, 1, 1);
    transform-origin: bottom center;
}

@media (max-width: 768px) {
    .model-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .model-card-header h3 {
        font-size: 1.2rem;
    }
    
    .model-card-body .product-description-text.truncated {
        -webkit-line-clamp: 2;
        max-height: 3.2em; /* Approximately 2 lines */
    }
}

@media (max-width: 576px) {
    .model-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .model-card-body .product-description-text.truncated {
        -webkit-line-clamp: 4;
        max-height: 6.4em; /* Approximately 4 lines */
    }
}

/* Text alignment utilities */
.text-center {
    text-align: center;
}

/* Center separator */
.center-separator {
    margin-left: auto;
    margin-right: auto;
}

/* Product Filter Styles */
.product-filter {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.filter-nav-links {
    position: relative;
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.filter-nav-links li {
    position: relative;
    display: inline-block;
}

.filter-nav-links li a {
    display: block;
    line-height: 1.4;
    position: relative;
    font: 14px/28px 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-style: normal;
    color: var(--black);
    text-transform: uppercase;
    -webkit-transition: color .25s ease;
    transition: color .25s ease;
}

.filter-nav-links li a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: auto;
    right: 0;
    display: inline-block;
    height: 1px;
    background: var(--black);
    -webkit-transform: scaleX(0);
    transform: scaleX(0);
    -webkit-transform-origin: right center;
    transform-origin: right center;
    -webkit-transition: -webkit-transform .6s cubic-bezier(.19,1,.22,1);
    transition: -webkit-transform .6s cubic-bezier(.19,1,.22,1);
    transition: transform .6s cubic-bezier(.19,1,.22,1);
    transition: transform .6s cubic-bezier(.19,1,.22,1),-webkit-transform .6s cubic-bezier(.19,1,.22,1);
}

.filter-nav-links li a:hover {
    color: var(--black);
}

.filter-nav-links li a:focus:after, 
.filter-nav-links li a:hover:after,
.filter-nav-links li a.active:after {
    -webkit-transition-duration: .4s;
    transition-duration: .4s;
    -webkit-transform: scaleX(1);
    transform: scaleX(1);
    -webkit-transform-origin: left center;
    transform-origin: left center;
}

.filter-nav-links li a.active {
    font-weight: 600;
}

/* Responsive filter navigation */
@media (max-width: 768px) {
    .filter-nav-links {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 10px;
        gap: 15px;
    }
    
    .filter-nav-links li {
        flex: 0 0 auto;
        white-space: nowrap;
    }
}

/* Filter transition animation */
.product-card-item, .model-card-item {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.filter-transition {
    opacity: 0.7;
    transform: scale(0.98);
}

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

.breadcrumb ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumb ul li {
    display: inline-block;
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.breadcrumb ul li:not(:last-child)::after {
    content: '/';
    margin: 0 10px;
    color: var(--mid-gray);
}

.breadcrumb ul li a {
    color: var(--black);
    transition: var(--transition);
}

.breadcrumb ul li a:hover {
    color: var(--dark-gray);
}

.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 80px;
}

.product-detail-left h1 {
    margin-bottom: 20px;
    font-size: 2.5rem;
}

.product-detail-left .separator {
    margin: 0 0 30px 0;
}

.product-description {
    margin-bottom: 40px;
    font-size: 1.1rem;
    line-height: 1.7;
}

.product-specs, .product-features, .product-applications, .product-enquiry {
    margin-bottom: 40px;
}

.product-detail-left h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
}

.specs-table th, .specs-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
}

.specs-table th {
    width: 40%;
    font-weight: 600;
    color: var(--black);
}

.specs-table tr:last-child th, .specs-table tr:last-child td {
    border-bottom: none;
}

.feature-list, .application-list {
    padding-left: 20px;
}

.feature-list li, .application-list li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 10px;
    line-height: 1.6;
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background-color: var(--black);
    border-radius: 50%;
}

.application-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background-color: var(--black);
    border-radius: 50%;
}

.product-enquiry {
    background-color: var(--light-gray);
    padding: 30px;
    border-radius: 5px;
}

.product-enquiry p {
    margin-bottom: 20px;
}

.product-enquiry .btn {
    margin-right: 15px;
    margin-bottom: 10px;
}

.product-detail-right {
    display: flex;
    flex-direction: column;
}

.product-main-image {
    margin-bottom: 20px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-main-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.product-main-image:hover img {
    transform: scale(1.03);
}

.product-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 30px;
}

.gallery-item {
    cursor: pointer;
    border-radius: 5px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: var(--transition);
}

.gallery-item.active {
    border-color: var(--black);
}

.gallery-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.gallery-item:hover img {
    opacity: 0.8;
}

.product-certifications {
    background-color: var(--light-gray);
    padding: 20px;
    border-radius: 5px;
    text-align: center;
}

.product-certifications h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.certification-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.cert-icon {
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.cert-icon i {
    margin-right: 5px;
    color: var(--black);
}

.related-products {
    margin-top: 60px;
}

.related-products h2 {
    text-align: center;
    margin-bottom: 20px;
}

.related-products .separator {
    margin-bottom: 40px;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.related-product-item {
    background-color: var(--light-gray);
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    transition: var(--transition);
    padding-bottom: 20px;
}

.related-product-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.related-product-image {
    height: 180px;
    overflow: hidden;
    margin-bottom: 15px;
}

.related-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.related-product-item h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    padding: 0 15px;
}

.related-product-item .btn {
    margin-top: 10px;
}

/* Responsive styles for product detail page */
@media (max-width: 992px) {
    .product-detail-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .product-detail-left {
        order: 2;
    }
    
    .product-detail-right {
        order: 1;
    }
}

@media (max-width: 768px) {
    .product-detail-section {
        padding: 100px 0 60px;
    }
    
    .product-gallery {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .gallery-item img {
        height: 60px;
    }
    
    .related-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 576px) {
    .product-detail-left h1 {
        font-size: 2rem;
    }
    
    .product-detail-left h2 {
        font-size: 1.5rem;
    }
    
    .product-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .product-enquiry .btn {
        display: block;
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .certification-icons {
        flex-direction: column;
        gap: 10px;
    }
    
    .related-products-grid {
        grid-template-columns: 1fr;
    }
}

/* Inquiry Form Styles */
.inquiry-section {
    padding: 80px 0;
    background-color: var(--white);
}

.inquiry-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.inquiry-info {
    padding-right: 30px;
}

.inquiry-info h2 {
    margin-bottom: 20px;
}

.inquiry-info .separator {
    margin: 0 0 30px 0;
}

.inquiry-info p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.7;
}

.inquiry-benefits {
    background-color: var(--light-gray);
    padding: 30px;
    border-radius: 5px;
    margin-top: 40px;
}

.inquiry-benefits h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.inquiry-form-container {
    background-color: var(--light-gray);
    padding: 40px;
    border-radius: 5px;
}

.inquiry-form .form-group {
    margin-bottom: 20px;
}

.inquiry-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.inquiry-form .required {
    color: var(--red);
}

.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--mid-gray);
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

.inquiry-form small {
    display: block;
    margin-top: 5px;
    color: var(--dark-gray);
    font-size: 0.85rem;
}

.inquiry-form button {
    margin-top: 10px;
    padding: 12px 24px;
}

/* Success and Error Messages */
.success-message,
.error-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.success-message {
    background-color: rgba(46, 204, 113, 0.1);
    border: 1px solid var(--green);
    color: var(--green);
}

.error-message {
    background-color: rgba(231, 76, 60, 0.1);
    border: 1px solid var(--red);
    color: var(--red);
}

/* Responsive styles for inquiry form */
@media (max-width: 992px) {
    .inquiry-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .inquiry-info {
        padding-right: 0;
    }
}

@media (max-width: 576px) {
    .inquiry-form-container {
        padding: 20px;
    }

    .benefits-content{
        display: block;
    }
    
    .inquiry-benefits {
        padding: 20px;
    }
}

.text-collapse-toggle {
    display: inline-block;
    color: var(--dark-gray);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    position: relative;
    cursor: pointer;
    transition: color 0.3s ease;
}

.text-collapse-toggle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--dark-gray);
    -webkit-transform: scaleX(0);
    transform: scaleX(0);
    -webkit-transform-origin: right center;
    transform-origin: right center;
    -webkit-transition: -webkit-transform .6s cubic-bezier(.19,1,.22,1);
    transition: -webkit-transform .6s cubic-bezier(.19,1,.22,1);
    transition: transform .6s cubic-bezier(.19,1,.22,1);
    transition: transform .6s cubic-bezier(.19,1,.22,1),-webkit-transform .6s cubic-bezier(.19,1,.22,1);
}

.text-collapse-toggle:hover {
    color: var(--mid-gray);
}

.text-collapse-toggle:focus::after, 
.text-collapse-toggle:hover::after {
    -webkit-transition-duration: .4s;
    transition-duration: .4s;
    -webkit-transform: scaleX(1);
    transform: scaleX(1);
    -webkit-transform-origin: left center;
    transform-origin: left center;
}

.more-indicator {
    color: var(--dark-gray);
}

/* Adjust spacing for inline read more button */
.product-description-text .read-more-btn {
    margin-left: 5px;
    padding-right: 0;
}

/* Product pricing and actions styling */
.product-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--black);
    margin: 0;
    display: flex;
    align-items: center;
}

.product-description-container {
    position: relative;
    margin-bottom: 15px;
    flex-grow: 1;
}

.product-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    width: 100%;
}

.product-card-actions .btn {
    margin-left: auto;
    pointer-events: auto;
    cursor: pointer;
}

.product-info .product-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-info .product-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--black);
    margin: 0;
    display: flex;
    align-items: center;
}

/* Make related products section use product card styles */
.related-products .product-card-item {
    background-color: transparent;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.related-products .product-card-image {
    height: 300px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.related-products .product-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    margin-top: -15px;
    background-color: var(--white);
    position: relative;
    z-index: 2;
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.05);
}

.product-card-content .product-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--black);
    margin: 0;
    display: flex;
    align-items: center;
}

.product-card-content .product-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-card-link {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.product-card-link:hover,
.product-card-link:focus {
    text-decoration: none;
    color: inherit;
}

/* Ensure the product card actions maintain their layout */
.product-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    width: 100%;
    z-index: 2;
    position: relative;
}

/* Make the button look clickable but prevent it from being an actual link */
.product-card-actions .btn {
    margin-left: auto;
    pointer-events: auto;
    cursor: pointer;
}

.product-card-content .product-price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 1.2rem;
}

.product-card-price-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.product-card-original-price {
    text-decoration: line-through;
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 3px;
}

.product-card-price-row {
    display: flex;
    align-items: center;
}

.product-card-discount-badge {
    background-color: #000000;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.7rem;
    margin-left: 8px;
    font-family: 'Space Grotesk', sans-serif;
}

.product-card-sale-price {
    color: #000000;
    font-size: 1.2rem;
    font-weight: bold;
    font-family: 'Space Grotesk', sans-serif;
}

.product-card-regular-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: #000;
    font-family: 'Space Grotesk', sans-serif;
}

/* Remove blue highlight on mobile touch */
#hamburger,
.nav-links a,
.btn,
.product-card-item,
.filter-link,
.social-icons a,
.scrollme {
    -webkit-tap-highlight-color: transparent;
    outline: none;
}