* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Rubik", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

body {
    background-color: white;
    color: #5d5d5d;
    font-family: "Rubik", sans-serif;
}

header {
    background-color: #f5f5f5;
    padding: 0.3vw 5vw;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: #5d5d5d;
}

.nav-links-a {
    padding: 0.3vw 0.8vw;
    margin-left: 0.5vw;
    font-size: 0.9vw;
    color: #5d5d5d;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8vw;
    color: #5d5d5d;
    margin-bottom: 0.6vw;
    width: 80%;
    background-color: #f5f5f5;
    border-bottom: 0.05vw solid #ddd;
    padding-bottom: 0.6vw;
    padding: 1vw;
}

.logo-search {
    display: flex;
    align-items: center;
    width: 71vw;
    background-color: white;
    margin: 0.8vw auto;
}

.logo {
    width: 3vw;
    margin-right: 0.8vw;
}

.search-container {
    position: relative;
    width: 60vw;
}

.search-bar {
    padding: 1vw;
    padding-right: 3vw;
    border: none;
    border-radius: 0.2vw;
    width: 100%;
    font-size: 1vw;
    background-color: #f5f5f5;
}

.search-button {
    position: absolute;
    right: 1.2vw;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #bababa;
    cursor: pointer;
    font-size: 1.2vw;
}

.cart {
    display: flex;
    align-items: center;
    font-size: 0.9vw;
}

.cart label {
    font-size: 1vw;
    margin-right: 0.5vw;
}

.cart-button {
    padding: 0.6vw 1.2vw;
    background-color: #ff5f00;
    color: #fff;
    border: none;
    border-radius: 0.3vw;
    cursor: pointer;
}

nav {
    display: flex;
    justify-content: flex-end;
    gap: 1vw;
    padding-bottom: 0.5vw;
    width: 80%;
}

nav a {
    text-decoration: none;
    color: #000;
    font-size: 1vw;
}

main {
    background-color: #fff;
    margin: 1.5vw auto;
    padding: 1.5vw 5vw;
    max-width: 80%;

}

.news h2 {
    font-size: 1.6vw;
    margin-bottom: 0.8vw;
}

.news p {
    font-size: 1.2vw;
    margin: 0.4vw 0;
}

.news a {
    font-size: 1.2vw;
    color: #007bff;
    text-decoration: none;
    display: inline-block;
    margin-top: 1.5vw;
}

.contacts h2 {
    font-size: 1.6vw;
    margin-top: 3vw;
    margin-bottom: 0.8vw;
}

.contacts p {
    font-size: 1.2vw;
    margin: 0.4vw 0;
}

.map img {
    width: 100%;
    height: auto;
    margin-top: 1vw;
}

footer {
    background-color: #333;
    color: #fff;
    padding: 3vw 0;
    text-align: left;
    font-family: Arial, sans-serif;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5vw;
}

.footer-section {
    flex: 1;
    margin: 0 1.5vw;
}

.footer-logo {
    width: 8vw;
    margin-bottom: 1.5vw;
}

.footer-section h4 {
    margin-bottom: 0.8vw;
    font-size: 1.6vw;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.6vw;
}

.footer-section ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2vw;
}

.footer-section ul li a:hover {
    text-decoration: underline;
}

.payment-methods img {
    width: 4vw;
    margin-top: 1vw;
}

.footer-bottom {
    border-top: 0.05vw solid #555;
    padding-top: 1.5vw;
    font-size: 1vw;
    color: #aaa;
    margin-top: 1.5vw;
}

.footer-bottom p {
    margin: 0.4vw 0;
}

.disclaimer {
    color: red;
    font-size: 1vw;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

@-webkit-keyframes scale-in-center {
  0% {
    -webkit-transform: scale(0);
            transform: scale(0);
    opacity: 1;
  }
  100% {
    -webkit-transform: scale(1);
            transform: scale(1);
    opacity: 1;
  }
}
@keyframes scale-in-center {
  0% {
    -webkit-transform: scale(0);
            transform: scale(0);
    opacity: 1;
  }
  100% {
    -webkit-transform: scale(1);
            transform: scale(1);
    opacity: 1;
  }
}

.scale-in-center {
	-webkit-animation: scale-in-center 1s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
	        animation: scale-in-center 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

.modal-content {
  -webkit-animation: scale-in-center 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
	        animation: scale-in-center 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
    background-color: #fefefe;
    margin: 30vh auto;
    padding: 1.5vw;
    border: 0.05vw solid #888;
    width: 25%;
    height: auto;
    text-align: left;
    border-radius: 10px;
}

.close {
    animation: fadeOut 0.5s ease-out;
    color: #aaa;
    float: right;
    font-size: 2vw;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.login-input {
    width: 85%;
    padding: 0.8vw;
    margin: 0.8vw 0;
    border: 0.05vw solid #ddd;
    border-radius: 0.3vw;
}

.login-btn {
    width: 85%;
    padding: 0.8vw;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 0.3vw;
}

.tab-container {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 2vw;
    width: 100%;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 1vw 0;
    cursor: pointer;
    font-size: 0.9vw;
    color: #888;
    position: relative;
    transition: color 0.3s;
}

.tab.active {
    color: #000;
    font-weight: bold;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 0.2vw;
    background-color: #000;
}

.content {
    display: none;
    width: 100%;
}

.content.active {
    display: block;
}

.input-field {
    width: 90%;
    padding: 1vw;
    margin: 0.8vw auto;
    border: 1px solid #ddd;
    border-radius: 0.3vw;
    display: block;
    font-size: 18px;
}

.products-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
}

.product-card {
    border: 1px solid #ccc;
    padding: 20px;
    border-radius: 8px;
    box-sizing: border-box;
    flex: 0 1 24vw;
    margin: 0;
    height: 200px;
}

.price-button-container {
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    margin-top: 10px; 
}

.price {
    margin: 0; 
}

.add-to-cart-form {
    display: flex; 
    align-items: center; 
}

.add-to-cart-form input[type="number"] {
    width: 60px; 
    margin-right: 10px;
}

.add-to-cart-btn {
    padding: 5px 10px; 
    cursor: pointer;
}

.part-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #f1f1f1;
    padding: 20px;
    margin: 20px 0;
    background-color: #f9f9f9;
    text-align: left;
    border-radius: 5px;
}

.part-details img {
    max-width: 150px;
    max-height: 150px;
    object-fit: contain;
    margin-right: 20px;
}

.part-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex-grow: 1;
}

.part-info p {
    margin: 5px 0;
    color: #555;
    display: flex;
}

.quantity-control {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
}

.part-info p strong {
    width: 120px;
    display: inline-block;
}

.quantity-selector {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.quantity-btn {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 10px 14px;
    margin: 0 15px;
    cursor: pointer;
    font-size: 20px;
    border-radius: 5px;
}

.quantity {
    font-size: 18px;
    margin: 0 10px;
}

.popup-message {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    opacity: 0.9;
    transition: opacity 0.5s ease;
    z-index: 1000;
}

.popup-message.fade-out {
    opacity: 0;
}

.profile-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
    border-radius: 10px;
    background-color: #fff;
}

.profile-container h1 {
    text-align: center;
    margin-bottom: 20px;
}

.profile-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.profile-container input[type="email"],
.profile-container input[type="text"],
.profile-container input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.profile-container button {
    width: 100%;
    padding: 10px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
}

.profile-container button:hover {
    background-color: #333;
}

.profile-container .order-history-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #007bff;
    text-decoration: none;
    font-size: 16px;
}

.profile-container .order-history-link:hover {
    text-decoration: underline;
}

.form-section {
    margin-bottom: 30px;
}

.form-section h3 {
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.success-message {
    color: green;
    text-align: center;
    margin-bottom: 20px;
}

.cart-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.cart-items,
.cart-summary {
    width: 48%;
}

.cart-items h2,
.cart-summary h2 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: #333;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
    margin-bottom: 10px;
}

.cart-item-details {
    width: 70%;
}

.cart-item-details p {
    margin: 5px 0;
    color: #555;
}

.cart-item-actions {
    width: 30%;
    text-align: right;
}

.remove-btn {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 5px;
}

.remove-btn:hover {
    background-color: #333;
}

.cart-summary {
    border-left: 1px solid #ddd;
    padding-left: 20px;
}

.checkout-btn {
    display: inline-block;
    width: 100%;
    padding: 12px 0;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1rem;
    margin-top: 20px;
}

.checkout-btn:hover {
    background-color: #333;
}

.mobile-header {
    display: none;
}

.hr-container {
    border-color: #f1f1f1;
    border: 1px solid #f1f1f1;
}

.cart-container-styles-prev {
    font-size: 20px;
    color: #bababa;
    margin-left: 10px;
}

.fullscreen-menu {
    display: none;
}

.fullscreen-login {
    display: none;
}



.cart-page-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.cart-page-items,
.cart-page-summary {
    width: 48%;
}

.cart-page-items h2,
.cart-page-summary h2 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: #333;
}

.cart-page-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
    margin-bottom: 10px;
}

.cart-page-item-details {
    width: 70%;
}

.cart-page-item-details p {
    margin: 5px 0;
    color: #555;
}

.cart-page-item-actions {
    width: 30%;
    text-align: right;
}

.cart-page-summary {
    border-left: 1px solid #ddd;
    padding-left: 20px;
}


.mobile-items-container {
    display: none; /* Hide item boxes on desktop */
}

table {
    display: table; /* Show table on desktop */
}












/* Button to open the modal */
.open-modal-btn {
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
}

/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    /* display: flex;
    justify-content: center;
    align-items: center; */
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.5); /* Black w/ opacity */
}

/* Modal Content Box */
.modal-content {
    background-color: #fefefe;
    margin: 30vh auto; 
   
    padding: 20px;
    border: 1px solid #888;
    width: 390px; /* Could be more or less, depending on screen size */
    border-radius: 8px;
    position: relative;
}


/* Close Button */
.close-btn {
    color: #aaa;
    float: right;
    font-size: 24px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
    text-decoration: none;
}

/* Input Fields */
.modal-content input[type="text"],
.modal-content input[type="password"] {
    width: 100%;
    padding: 10px;
    margin: 8px 0 16px 0;
    display: inline-block;
    border: 1px solid #ccc;
    box-sizing: border-box;
    border-radius: 4px;
}

/* Submit Button */
.modal-content .submit-btn {
    background-color: #28a745;
    color: white;
    padding: 10px 0;
    border: none;
    cursor: pointer;
    width: 100%;
    border-radius: 4px;
    font-size: 16px;
}

.modal-content .submit-btn:hover {
    background-color: #218838;
}

/* Forgot Password Link */
.modal-content .forgot-password {
    display: block;
    text-align: center;
    margin-top: 10px;
    color: #3498db;
    text-decoration: none;
    font-size: 14px;
}

.modal-content .forgot-password:hover {
    text-decoration: underline;
}













/* Slider Container */
.slider-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin-top: 20px;
}

/* Slider Track */
.slider-track {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
    width: 100%;
}

/* Slider Item */
.slider-item {
    flex: 0 0 20%; /* 4 slides per view on desktop */
    box-sizing: border-box;
    padding: 15px;
    border: 1px solid #ddd;
    text-align: left;
    margin-right: 5px;
    background-color: #f9f9f9;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* Slider Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #333;
    color: #fff;
    border: none;
    width: 30px;
    height: 30px;
    cursor: pointer;
    opacity: 0.8;
    font-size: 20px;
    border-radius: 5px;
    z-index: 999;
}

.left-arrow {
    left: 5px;
}

.right-arrow {
    right: 5px;
}

.slider-arrow:hover {
    opacity: 1;
}

/* Styles for slider images */
.slider-item img.slider-image {
    width: 100px; /* Adjusted to 100px as per your request */
    height: 100px;
    object-fit: cover;
    margin-bottom: 10px;
    border-radius: 5px;
}

.slider-track {
    scroll-snap-type: x mandatory;
}

.slider-item {
    scroll-snap-align: start;
}




/* Ensure slider items indicate they are clickable */
.slider-item {
    cursor: pointer;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin: 5px;
    transition: transform 0.3s;
   
}

/* Optional: Add a subtle hover effect */
.slider-item:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}





/* Responsive Adjustments */
@media (max-width: 768px) {
    .slider-item {
        flex: 0 0 33.3333%; /* 3 slides per view on tablets */
    }
}

@media (max-width: 480px) {
  
    .slider-track {
        overflow-x: scroll;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        display: flex;
        flex-wrap: nowrap;
    }

    .slider-item {
        flex: 0 0 100%;
        scroll-snap-align: start;
        margin-right: 0;
        width: 100%;
    }

    .slider-arrow {
        display: none;
    }


    
}











/* Media Queries for Mobile Devices */
@media (max-width: 480px) {
    /* Hide Desktop Elements */
    nav,
    .logo,
    .top-bar,
    .cart,
    .nav-links, 
    .cart,
    header,
    #cart-count,
    .fa-cart-shopping {
        display: none;
    }


    /* Adjust Search Bar */
    .search-bar {
        font-size: 14px;
        border-radius: 8px;
        height: 24px;
        margin: 5px 0;
    }

    .logo-search {
        padding: 0;
        width: 100vw;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: row;
        gap: 7vw;
    }

    .hr-container {
        border: 0.1px solid #f1f1f1;
    }

    .search-button {
        font-size: 13px;
        margin-right: 3px;
    }

     /* Show the mobile menu icon */
     .mobile-header {
        display: flex;
        padding: 0;
        height: 50px;
        align-items: center;
        justify-content: center;
        flex-direction: row;
    }

    .menu-icon {
        background: none;
        border: none;
        margin: 0;
        font-size: 24px;
        cursor: pointer;
    }

    /* Mobile menu styles */
    .fullscreen-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: white;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(-100%); /* Start off-screen to the left */
        transition: transform 0.3s ease-in-out;
        z-index: 9999; /* Ensure it's on top of everything */
    }
    
    .fullscreen-menu.active {
        transform: translateX(0);
    }
    
    .close-fullscreen-menu {
        position: absolute;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        font-size: 2rem;
        cursor: pointer;
        color: #333;
    }
    
    .fullscreen-menu-content {
        display: flex;
        flex-direction: column;
        gap: 20px; /* space between menu items */
        text-align: center;
    }
    
    .fullscreen-menu-link {
        text-decoration: none;
        font-size: 1.5rem;
        color: #333;
        transition: color 0.3s ease;
    }
    
    .fullscreen-menu-link:hover {
        color: #007bff;
    }

    /* Fullscreen Login Styles for Mobile */
    .fullscreen-login {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: white;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%); /* Start off-screen to the right */
        transition: transform 0.3s ease-in-out;
        z-index: 10000; /* Ensure it's on top of the menu */
    }
    
    .fullscreen-login.active {
        transform: translateX(0);
    }
    
    .fullscreen-login-content {
        width: 90%;
        max-width: 90%;
        display: flex;
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    /* Hide Desktop Table and Show Mobile Items */
    table {
        display: none; /* Hide table on mobile */
    }

    .mobile-items-container {
        display: block; /* Show item boxes on mobile */
        padding: 10px;
    }

    .item-box {
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 10px;
        margin-bottom: 15px;
        background-color: #f9f9f9;
        text-align: left;
        cursor: pointer;
    }
    .item-box h3 {
        margin: 0 0 10px 0;
        font-size: 16px;
        color: #333;
    }
    .item-box p {
        margin: 5px 0;
        color: #555;
    }
    .item-box .quantity-control {
        display: flex;
        align-items: center;
        margin-top: 10px;
    }
    .item-box .quantity-btn {
        background-color: #ccc;
        border: none;
        padding: 5px 10px;
        font-size: 14px;
        cursor: pointer;
        border-radius: 3px;
    }

    /* Adjust News and Contacts for Mobile */
    .news h2 { 
        font-size: 22px; 
        margin-top: -20px;
    }
    .news p { 
        font-size: 12px;
    }
    .news a { 
        font-size: 12px;
    }

    .contacts { 
        margin-top: 20px;
    }
    .contacts h2 { 
        font-size: 22px; 
    }
    .contacts p { 
        font-size: 12px;
    }
    .contacts .above-map { 
        margin-bottom: 50px;
    }



    /* Modal Adjustments for Mobile */
    .fullscreen-login-content {
        width: 90%;
        max-width: 90%;
    }
}


.product-image {
    width: 150px;
    /* height: auto; */
    border: 1px solid #ccc;
    padding: 5px;
}