*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}

.navbar{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #4a4a4a;
    padding: 15px 100px;
}
.logo a{
    color: #fff;
    font-size: 36px;
    font-weight: bold;
    text-decoration: none;
}
.search-bar{
    display: flex;
    align-items: center;
    position: relative;
}
.search-bar form{
    display: flex;
    margin: 0;
}
.search-bar input{
    font-size: 17px;
    width:325px;
    padding: 10px;
    border: none;
    border-radius: 5px 0 0 5px;
    outline: none;
    margin: 0;
}
.search-bar button{
    font-size: 17px;
    padding: 10px 15px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    outline:none;
    margin: 0;
}
ul{
    list-style: none;
    display: flex;
}
ul li{
    margin-right: 20px;
}
ul li a{
    font-size: 19px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    padding: 0px 8px;
}
ul li a:hover{
    color: #007bff;

}
.hero-block{
    background-image: linear-gradient(rgba(0, 0, 0, 0.5),rgba(0, 0, 0, 0.5)),url("RTX6000.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 50vh;
    
}
.hero-content{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    color:white;
}

body{
    background-color: #5a5a5a;
}

footer{
    background-color: #4a4a4a;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}
main{
    height:100%;
}
.logo{
    width: 100px;
    height: 80px;
    margin-left: 10px;
    border-radius: 5%;
}
.cards{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    width: 100%;
    margin-top: 0px;
}
.catalog-page .cards{
    flex-direction: column;
}
.product-section{
    width: 98%;
    background-color: #3a3a3a;
    padding: 30px 20px;
    margin-bottom: 30px;
    border-radius: 18px;
    align-self: center;
}
.product-section h2{
    color: #fff;
    font-size: 28px;
    margin-bottom: 16px;
    text-align: center;
}
.section-cards{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
.navbar{
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #4a4a4a;
    padding: 15px 100px;
    position: relative;
    z-index: 2;
}
.catalog-page .category-tabs{
    position: relative;
    top: -18px;
    display: flex;
    justify-content: center;
    gap: 14px;
    margin: 0 auto 24px auto;
    padding: 16px 20px;
    background: #4a4a4a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
    width: max-content;
    min-width: 360px;
    z-index: 1;
}
.category-button{
    padding: 12px 24px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    background: #4a4a4a;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    margin: 0 10px;
}
.category-button:hover,
.category-button:focus{
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.18);
}
.category-button.active{
    background: #5a5a5a;
    border-color: #707070;
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.22);
}
.category-button.active:hover{
    background: #656565;
    border-color: #7a7a7a;
}
.card{
    position: relative;
    background-color: #4a4a4a;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 300px;
    padding: 20px;
    margin: 0;
    min-height: 700px;
    padding-bottom: 100px;
    transition: 1s;
    filter: blur(0.2px);
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2);
}
.card-button-container{
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 20px;
    margin-top: 0;
    transform: none;
}
.card > .card-button {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    width: auto;
    margin: 0;
}
.card:hover{
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transform:scale(1.05);
    filter: blur(0.2px);
}
.card-image{
    width: 100%;
    height: 225px;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
    margin-bottom: 15px;
}
.card h2{
    font-size: 24px;
    margin-bottom: 10px;
}
.card-button{
    font-size: 18px;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    outline:none;
    margin:10px;
}
.suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #ccc;
    border-radius: 0 0 5px 5px;
    max-height: 200px;
    overflow-y: auto;
    width: 325px;
    z-index: 1000;
    display: none;
}
.suggestion-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}
.suggestion-item:hover {
    background: #f0f0f0;
}
.suggestion-item:last-child {
    border-bottom: none;
}
.btn {
    background-color: gold;
    color: black;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.cart-modal{
    display: block;
    position: relative;
    width: min(95vw, 980px);
    margin: 40px auto;
    background-color: #2f2f2f;
    color: #fff;
    padding: 28px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    z-index: 1001;
}
.cart-content{
    max-height: none;
    overflow: visible;
    margin-bottom: 20px;
}
#cart-items{
    list-style: none;
    margin: 20px 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}
.cart-item-card{
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.04);
    padding: 18px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.cart-item-card-image{
    flex: 0 0 220px;
    max-width: 220px;
}
.cart-item-card-image img{
    width: 100%;
    height: auto;
    border-radius: 14px;
    object-fit: cover;
}
.cart-item-card-body{
    flex: 1;
    min-width: 220px;
}
.cart-item-card-body h3{
    margin: 0 0 10px;
    font-size: 1.35rem;
}
.cart-item-card-body p{
    margin: 0 12px 14px 0;
    line-height: 1.5;
    color: #dcdcdc;
}
.cart-item-meta{
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: #b5d4ff;
    font-size: 0.96rem;
}
.empty-cart-message{
    color: #ccc;
    font-size: 1.05rem;
    padding: 24px 0;
}
.checkout-button, .add-to-cart-button,
.remove-item {
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 0.95rem;
    cursor: pointer;
}
.checkout-button:hover, .add-to-cart-button:hover,
.remove-item:hover {
    background-color: #0056d1;
}
.remove-item {
    min-width: 90px;
    margin-top: 10px;
}
.cart-modal h2 {
    margin-bottom: 18px;
    font-size: 30px;
    padding-right: 50px;
}
.cart-modal p {
    margin-top: 18px;
    font-size: 18px;
}
.cart-modal .close {
    cursor: pointer;
    position: absolute;
    top: 18px;
    right: 18px;
    font-size: 28px;
    color: #fff;
}
.product-modal.hidden {
    display: none;
}
.product-modal{
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    inset: 0;
    padding: 32px;
    background: rgba(0, 0, 0, 0.72);
    z-index: 2000;
}
.product-modal-card{
    width: min(95vw, 900px);
    max-height: min(95vh, 760px);
    background: #1f1f1f;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    position: relative;
    padding: 28px;
}
.product-modal-grid{
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 28px;
    align-items: start;
}
.product-modal-image{
    position: relative;
    max-height: 420px;
    overflow: hidden;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #121212;
}
.product-modal-image img{
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}
.image-nav-button{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.50);
    color: #ffffff;
    font-size: 1.45rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}
.image-nav-button:hover{
    background: rgba(0, 0, 0, 0.75);
}
.image-nav-button.prev{
    left: 12px;
}
.image-nav-button.next{
    right: 12px;
}
.product-modal-info{
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: #ffffff;
}
.product-modal-info h2,
.product-modal-info p,
.product-modal-info label,
.product-modal-info span,
.product-modal-info input {
    color: #ffffff;
    padding-right: 60px;
}
.product-modal-price,
.product-modal-total{
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
}
.product-modal-quantity-label{
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.95rem;
}
.product-modal-quantity-label input{
    width: 100px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: #2c2c2c;
    color: #fff;
}
.product-image-thumbs{
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}
.product-thumbnail{
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    cursor: pointer;
    opacity: 0.8;
}
.product-thumbnail.active,
.product-thumbnail:hover{
    opacity: 1;
    border-color: #007bff;
}
.product-modal .modal-close{
    position: absolute;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: none;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}
.product-modal .modal-close:hover{
    background: rgba(255, 255, 255, 0.18);
}
@media (max-width: 860px) {
    .product-modal-grid{
        grid-template-columns: 1fr;
    }
    .cart-item-card{
        flex-direction: column;
    }
    .cart-item-card-image{
        width: 100%;
        max-width: none;
    }
}

/* About Us Page Styles */
.about-hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("RTX6000.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 50vh;
}

.about-hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: white;
    text-align: center;
}

.about-hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.about-hero-content p {
    font-size: 1.2rem;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.about-section {
    margin-bottom: 40px;
    background-color: #3a3a3a;
    padding: 30px;
    border-radius: 18px;
}

.about-section h2 {
    color: #fff;
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
}

.about-section p {
    color: #ddd;
    line-height: 1.6;
    margin-bottom: 20px;
}

.about-section ul {
    color: #ddd;
    margin-left: 20px;
    margin-bottom: 20px;
}

.about-section li {
    margin-bottom: 10px;
}

.about-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    display: block;
    margin: 20px auto;
}

/* Contact Page Styles */
.contact-hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("HPOMEN.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 50vh;
}

.contact-hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: white;
    text-align: center;
}

.contact-hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-hero-content p {
    font-size: 1.2rem;
}

.contact-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info, .contact-form {
    background-color: #3a3a3a;
    padding: 30px;
    border-radius: 18px;
}

.contact-info h2, .contact-form h2 {
    color: #fff;
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
}

.contact-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-item h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 10px;
}

.contact-item p {
    color: #ddd;
    line-height: 1.6;
}

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

.form-group label {
    display: block;
    color: #fff;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #2c2c2c;
    color: #fff;
}

.form-group textarea {
    resize: vertical;
}

.submit-button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
}

.submit-button:hover {
    background-color: #0056b3;
}

@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
    }
    .contact-details {
        grid-template-columns: 1fr;
    }
    .about-hero-content h1, .contact-hero-content h1 {
        font-size: 2rem;
    }
}

/* Thank You Page Styles */
.thanks-hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("RTX6000.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thanks-hero-content {
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
}

.thanks-hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.thanks-hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.thanks-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.thanks-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.thanks-button:hover {
    background-color: #0056b3;
}

.thanks-button.secondary {
    background-color: #6c757d;
}

.thanks-button.secondary:hover {
    background-color: #545b62;
}

.thanks-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.thanks-info h2, .thanks-support h2 {
    color: #fff;
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
}

.next-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background-color: #3a3a3a;
    padding: 20px;
    border-radius: 10px;
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    flex-shrink: 0;
}

.step-content h3 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 18px;
}

.step-content p {
    color: #ddd;
    line-height: 1.6;
    margin: 0;
}

.thanks-support {
    background-color: #3a3a3a;
    padding: 30px;
    border-radius: 18px;
    height: fit-content;
}

.thanks-support p {
    color: #ddd;
    line-height: 1.6;
    margin-bottom: 20px;
}

.support-info p {
    margin-bottom: 10px;
    color: #ddd;
}

.support-info strong {
    color: #fff;
}

.support-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.support-button:hover {
    background-color: #218838;
}

@media (max-width: 768px) {
    .thanks-hero-content h1 {
        font-size: 2rem;
    }
    .thanks-actions {
        flex-direction: column;
        align-items: center;
    }
    .thanks-content {
        grid-template-columns: 1fr;
    }
    .next-steps {
        grid-template-columns: 1fr;
    }
    .step {
        flex-direction: column;
        text-align: center;
    }
}
