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

body {
    font-family: 'Open Sans', 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #444;
    background-color: #f9f9f9;
}

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

ul {
    list-style: none;
}

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

/* Top Bar */
.top-bar {
    background: #f5f5f5;
    border-bottom: 1px solid #e1e1e1;
    font-size: 0.85rem;
    padding: 8px 0;
    color: #666;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-contact span {
    margin-right: 20px;
}

.top-contact i {
    color: #ff6600; /* Orange accent */
    margin-right: 5px;
}

.top-links a {
    margin-left: 15px;
    transition: color 0.2s;
}

.top-links a:hover {
    color: #ff6600;
}

/* Main Header */
.main-header {
    background: #fff;
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    max-width: 250px;
}

.logo img {
    width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
}

.search-bar {
    flex: 1;
    max-width: 500px;
    display: flex;
}

.search-bar input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 4px 0 0 4px;
    outline: none;
}

.search-bar button {
    background: #ff6600; /* Orange */
    color: #fff;
    border: none;
    padding: 0 20px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 1rem;
}

.header-icons {
    display: flex;
    align-items: center;
}

.icon-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.icon-item i {
    font-size: 1.5rem;
    color: #2b2d42;
}

.badge {
    background: #ff6600; /* Orange */
    color: #fff;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.7rem;
    position: absolute;
    margin-left: 15px;
    margin-top: -15px;
}

/* Navigation */
.main-nav {
    background: #2b2d42;
    color: #fff;
}

.main-nav .container {
    display: flex;
    align-items: center;
    height: 50px;
    position: relative;
}

.cat-menu {
    background: #ff6600; /* Orange */
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 20px;
    margin-right: 30px;
    cursor: pointer;
    position: relative; /* Pentru dropdown */
    min-width: 200px;
}

.cat-btn {
    background: none;
    border: none;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

.cat-btn i {
    margin-right: 10px;
}

/* Dropdown Menu Styles */
body.homepage .dropdown-content {
    display: block;
}

.dropdown-content {
    display: none; /* Ascuns implicit */
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    width: 280px; /* Increased width slightly */
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    z-index: 2000; /* Increased Z-index to be sure */
    border-top: 3px solid #cc5200;
    border-right: 1px solid #eee;
    border-left: 1px solid #eee;
    border-bottom: 1px solid #eee;
    min-height: 100%;
}

/* Afișează dropdown-ul la hover sau dacă are clasa 'show' */
.cat-menu:hover .dropdown-content,
.dropdown-content.show {
    display: block;
}

.dropdown-content li {
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-content li:last-child {
    border-bottom: none;
}

.dropdown-content a {
    color: #333;
    padding: 10px 20px; /* Adjusted padding for alignment */
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.2s;
    font-size: 0.95rem; /* Restored font size */
}

.dropdown-content a i {
    width: 25px;
    color: #ff6600;
    margin-right: 10px;
}

.dropdown-content a:hover {
    background-color: #f9f9f9;
    color: #ff6600;
    padding-left: 25px; /* Slight movement effect */
}

.nav-links {
    display: flex;
    height: 100%;
}

.nav-links li {
    height: 100%;
}

.nav-links a {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 15px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background 0.3s;
}

.nav-links a:hover {
    background: rgba(255,255,255,0.1);
}

.burger {
    display: none;
    cursor: pointer;
    margin-left: auto;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px;
    transition: all 0.3s ease;
}

/* Hero Grid & Layout */
.hero-grid {
    padding: 0 0 30px 0;
    overflow: visible; /* Ensure dropdown can overflow */
}

.promo-grid {
    display: block;
    position: relative;
    height: 415px; /* Adjusted height to match menu */
}

/* Carousel */
.promo-main {
    position: relative;
    border-radius: 0 0 4px 0;
    overflow: hidden;
    height: 100%; 
    z-index: 1;
    margin-left: 280px; /* Adjusted to match dropdown width */
    width: calc(100% - 280px); /* Adjusted width calculation */
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain; /* Changed from cover to contain */
    background-repeat: no-repeat; /* Ensure no repeat */
    background-position: right center; /* Focus on the right side where the image content is */
    background-color: #2b2d42; /* Fallback color matching brand */
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Align text to the left */
    text-align: left;
    color: #fff;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.promo-content {
    background: transparent; /* Removed white background */
    padding: 0; /* Removed padding */
    border-radius: 0; /* Removed border radius */
    box-shadow: none; /* Removed shadow */
    max-width: 650px;
    text-align: left;
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    animation: slideUp 0.8s ease-out;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    font-size: 1.5rem;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: #ff6600;
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: #ff6600;
    transform: scale(1.2);
}

.promo-content h2 {
    font-size: 2.5rem; /* Decreased from 3.5rem to 2.5rem */
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2; /* Slightly adjusted line-height */
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    font-weight: 800;
}

.promo-content p {
    font-size: 1.4rem; /* Increased font size */
    color: #f0f0f0; /* Lighter text for description */
    margin-bottom: 30px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.8);
    font-weight: 500;
}

.btn {
    display: inline-block;
    background: #ff6600; /* Orange */
    color: #fff;
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s;
}

.btn:hover {
    background: #cc5200; /* Darker Orange */
}

/* Features/Benefits Section */
.features-section {
    padding: 30px 0;
    background: #fff; /* Changed from #f9f9f9 to #fff */
    border-bottom: 1px solid #eee;
}

.features-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 15px;
    text-align: center;
}

.feature-item {
    flex: 1;
    min-width: 200px;
    padding: 10px;
    transition: transform 0.3s;
}

.feature-item:hover {
    transform: translateY(-3px);
}

.feature-item i {
    font-size: 1.8rem;
    color: #ff6600;
    margin-bottom: 10px;
}

.feature-item h3 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: #2b2d42;
}

.feature-item p {
    color: #777;
    font-size: 0.9rem;
}

/* About Section */
.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.about-image img {
    max-width: 480px;
    width: 100%;
    border-radius: 8px;
    mix-blend-mode: multiply;
    transform: translateY(30px);
    margin-bottom: -60px;
}

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

#about.section {
    padding-top: 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2rem;
    color: #2b2d42;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.title-underline {
    width: 60px;
    height: 3px;
    background: #ff6600; /* Orange */
    margin: 0 auto;
}

.bg-light {
    background: #fff;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.product-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 25px;
    text-align: center;
    transition: box-shadow 0.3s;
}

.product-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.icon-wrapper i {
    font-size: 1.8rem;
    color: #2b2d42;
}

.product-card h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #333;
}

.details-btn {
    color: #ff6600; /* Orange */
    font-weight: 600;
    font-size: 0.9rem;
}

.details-btn:hover {
    text-decoration: underline;
}

/* Offer Button Styles */
.btn-offer {
    display: inline-block;
    background-color: #ff6600;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    font-size: 0.95rem;
}

.btn-offer:hover {
    background-color: #cc5200;
    transform: translateY(-2px);
}

/* Contact Strip */
.contact-strip {
    padding: 60px 0;
    background: #fff;
}

.contact-strip .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.contact-box {
    text-align: center;
    min-width: 200px;
}

.contact-box i {
    font-size: 2.5rem;
    color: #ff6600; /* Orange */
    margin-bottom: 15px;
}

.contact-box h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #2b2d42;
}

.contact-box p {
    color: #777;
    font-size: 0.9rem;
}

/* Contact Section & Form Styles */
.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 30px;
}

.contact-info-box {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background-color: #fff5eb;
    color: #ff6600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.contact-item h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #2b2d42;
}

.contact-item p {
    color: #666;
}

.contact-form-box {
    flex: 1.5;
    min-width: 300px;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #ff6600;
    outline: none;
}

.btn-submit {
    width: 100%;
    background-color: #ff6600;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 12px;
    transition: background 0.3s;
}

.btn-submit:hover {
    background-color: #cc5200;
}

/* About Section Grid Layout */
.about-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    justify-content: space-between;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #555;
}

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

.about-image img {
    max-width: 350px;
    height: auto;
    /* mix-blend-mode: multiply helps hide white backgrounds on non-white containers, 
       but if the container is white, it just looks normal. 
       Removing box-shadow and border-radius makes it look less like a card. */
    mix-blend-mode: multiply; 
    transition: transform 0.3s;
}

.about-image img:hover {
    transform: scale(1.02);
}

/* Footer */
footer {
    background: #2b2d42;
    color: #edf2f4;
    padding-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #fff;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 4px;
}

.newsletter-form button {
    padding: 10px 20px;
    background: #ff6600; /* Orange */
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    margin-right: 10px;
    transition: background 0.3s;
}

.social-links a:hover {
    background: #ff6600; /* Orange */
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
    color: #8d99ae;
}

/* Page Layout with Sidebar (NEW) */
.page-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Filters Sidebar (NEW) */
.filters-sidebar {
    flex: 0 0 250px;
    background: #fff;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 4px;
}

.filter-group {
    margin-bottom: 25px;
}

.filter-group h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #2b2d42;
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
}

.filter-group label {
    display: block;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #555;
}

.filter-group input[type="checkbox"] {
    margin-right: 10px;
}

.btn-apply-filters {
    width: 100%;
    background-color: #2b2d42;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-apply-filters:hover {
    background-color: #ff6600;
}

/* Products Grid View (Main Content) (NEW) */
.products-grid-view {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.price-tag {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ff6600;
    margin: 10px 0;
}

/* Product Detail Page Styles */
.product-hero {
    padding: 40px 0;
    background-color: #fff;
}

.product-detail-wrapper {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.product-gallery {
    flex: 1;
    display: flex;
    justify-content: center;
    background: #f9f9f9;
    padding: 40px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.icon-wrapper-large {
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2b2d42;
}

.icon-wrapper-large i {
    font-size: 8rem;
}

.product-info-main {
    flex: 1.2;
}

.product-info-main h1 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #2b2d42;
}

.product-meta {
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: #666;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.product-meta span {
    margin-right: 20px;
}

.short-desc {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
}

/* Tabs Section */
.product-tabs-section {
    background-color: #f9f9f9;
    padding: 40px 0;
}

.tabs-header {
    display: flex;
    border-bottom: 2px solid #ddd;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 15px 25px;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    margin-bottom: -2px;
}

.tab-btn:hover {
    color: #ff6600;
}

.tab-btn.active {
    color: #ff6600;
    border-bottom-color: #ff6600;
}

.tab-pane {
    display: none;
    background: #fff;
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.5s;
}

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

.tab-pane h3 {
    margin-bottom: 20px;
    color: #2b2d42;
}

/* Specs Table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table th, .specs-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.specs-table th {
    width: 40%;
    color: #444;
    font-weight: 600;
    background: #f8f9fa;
}

/* Download Items */
.download-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.download-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 4px;
    transition: background 0.2s;
}

.download-item:hover {
    background: #f5f5f5;
}

.download-item i {
    font-size: 2rem;
    color: #ff6600;
    margin-right: 20px;
}

.file-info {
    flex: 1;
}

.file-info h4 {
    font-size: 1rem;
    margin-bottom: 3px;
    color: #333;
}

.file-info p {
    font-size: 0.85rem;
    color: #777;
}

.btn-download {
    padding: 8px 15px;
    background: #2b2d42;
    color: #fff;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.btn-download:hover {
    background: #ff6600;
}

/* Responsive Product Page */
@media screen and (max-width: 768px) {
    .top-bar, .header-icons, .search-bar {
        display: none !important;
    }

    .main-header {
        padding: 15px 0;
        position: sticky;
        top: 0;
        z-index: 1000;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    
    .header-content {
        justify-content: center;
    }

    .main-nav {
        background: #fff;
        border-bottom: 1px solid #eee;
    }
    
    .main-nav .container {
        justify-content: flex-end;
    }

    .nav-links {
        position: absolute;
        right: 0px;
        top: 50px;
        background-color: #fff;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        height: calc(100vh - 50px);
        transform: translateX(100%);
        transition: transform 0.3s ease-in;
        z-index: 999;
        padding-top: 30px;
    }

    .nav-links li {
        height: auto;
        margin: 15px 0;
    }
    
    .nav-links a {
        color: #333;
        font-size: 1.1rem;
    }

    .burger {
        display: block;
        margin-right: 0;
    }
    
    .burger div {
        background-color: #333;
    }

    .nav-active {
        transform: translateX(0%);
    }

    .promo-grid {
        height: auto;
    }

    /* Pe mobil, ascundem meniul lateral fix */
    .cat-menu {
        display: none;
    }
    
    /* Resetăm bannerul pentru a ocupa tot ecranul */
    .promo-main {
        margin-left: 0;
        width: 100%;
        height: 350px; /* Increased height for better visibility */
    }

    .carousel-slide {
        background-size: cover; /* Back to cover for mobile to ensure image fills the space */
        background-position: center; /* Center image on mobile */
    }

    .promo-content {
        left: 0;
        width: 100%;
        padding: 0 30px; /* Reduced padding */
        text-align: center;
        top: 50%;
        transform: translateY(-50%);
    }

    .promo-content h2 {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 10px;
        text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    }

    .promo-content p {
        font-size: 1rem;
        line-height: 1.4;
        margin-bottom: 15px;
    }

    .promo-content .btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }

    /* Adjust nav buttons for mobile */
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .prev-btn { left: 5px; }
    .next-btn { right: 5px; }

    .about-wrapper {
        flex-direction: column;
        text-align: center;
    }
    
    .about-image {
        width: 100%;
        margin-top: 20px;
    }
    
    .contact-wrapper {
        flex-direction: column;
    }
    
    .contact-info-box {
        order: 2; /* Put info below form on mobile if desired, or keep default */
    }

    /* New Filters Responsive */
    .page-layout {
        flex-direction: column;
    }
    
    .filters-sidebar {
        width: 100%;
        flex: none;
    }

    /* Product Detail Page Responsive */
    .product-detail-wrapper {
        flex-direction: column;
    }
    
    .product-gallery, .product-info-main {
        width: 100%;
    }
    
    .tabs-header {
        flex-direction: column;
        border-bottom: none;
    }
    
    .tab-btn {
        width: 100%;
        text-align: left;
        border-bottom: 1px solid #ddd;
        padding: 15px;
    }
    
    .tab-btn.active {
        border-bottom: 1px solid #ff6600;
        background: #fff;
    }
}
