/* style.css - Premium B2B Salon Hardware Stylesheet */

:root {
    --primary-color: #111827;     /* High-end charcoal */
    --accent-color: #e27d34;      /* Professional Alibaba orange */
    --accent-hover: #cf661c;
    --light-bg: #f5f5f7;          /* Premium soft grey */
    --card-bg: #ffffff;
    --border-color: #e5e7eb;
    --text-main: #333333;
    --text-muted: #666666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-main);
    background-color: var(--light-bg);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Header & Navigation Bar (Alibaba-Style) */
header {
    background: #ffffff;
    border-bottom: 2px solid var(--accent-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background: #333333;
    color: #ffffff;
    padding: 6px 5%;
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar .languages a {
    margin-left: 10px;
    color: #cccccc;
}

.top-bar .languages a:hover {
    color: #ffffff;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -1.5px;
    color: #000000;
}

.brand-logo span {
    color: var(--accent-color);
}

nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links > li {
    position: relative;
    margin: 0 15px;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 0;
    display: block;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Products Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-top: 2px solid var(--accent-color);
    list-style: none;
    min-width: 220px;
    display: none;
    padding: 10px 0;
    z-index: 999;
}

.dropdown-menu li a {
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.dropdown-menu li a:hover {
    background-color: #f8f8f8;
}

.nav-links > li:hover .dropdown-menu {
    display: block;
}

/* Search Box */
.search-box {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-left: 20px;
}

.search-box input {
    border: none;
    padding: 8px 12px;
    outline: none;
    font-size: 0.85rem;
    width: 180px;
}

.search-box button {
    background-color: var(--accent-color);
    color: #ffffff;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}

.search-box button:hover {
    background-color: var(--accent-hover);
}

/* Slider / Carousel (Homepage) */
.slider-container {
    max-width: 1200px;
    margin: 20px auto;
    position: relative;
    height: 420px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.slider-wrapper {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide {
    width: 33.333%;
    height: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: #ffffff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.slider-btn.prev {
    left: 20px;
}

.slider-btn.next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.dot.active {
    background: var(--accent-color);
}

/* Category Grid Section */
.categories-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.category-card {
    background: var(--card-bg);
    border-radius: 6px;
    border: 1px solid var(--border-color);
    padding: 20px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.05);
    border-color: var(--accent-color);
}

.category-card img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 15px;
}

.category-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
}

/* Flags / Languages Bar */
.flags-bar {
    max-width: 1200px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 6px;
    padding: 20px;
    border: 1px solid var(--border-color);
}

.flags-title {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--text-muted);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.flags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.flag-item {
    font-size: 0.85rem;
    font-weight: 500;
    background: var(--light-bg);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

/* Products Grid Section */
.products-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: var(--accent-color);
}

.product-image {
    width: 100%;
    height: 250px;
    background: #fdfdfd;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-model {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
}

.product-title {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 5px 0 12px 0;
    color: #111111;
}

.product-meta-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.product-meta-table td {
    padding: 6px 0;
    border-bottom: 1px solid #f3f4f6;
}

.product-meta-table td:first-child {
    color: var(--text-muted);
}

.product-meta-table td:last-child {
    font-weight: bold;
    text-align: right;
}

.product-card .btn {
    margin-top: auto;
    text-align: center;
    display: block;
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 12px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.product-card .btn:hover {
    background-color: var(--accent-color);
}

/* Giant Inquiry Banner */
.inquiry-banner {
    max-width: 1200px;
    margin: 50px auto;
    background: linear-gradient(135deg, #2c3e50 0%, #0f172a 100%);
    color: #ffffff;
    padding: 60px 40px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.banner-content h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.banner-content p {
    color: #cbd5e1;
    font-size: 1.1rem;
}

.banner-btn {
    background-color: var(--accent-color);
    color: #ffffff;
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 800;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(226, 125, 52, 0.4);
    transition: background 0.2s, transform 0.2s;
}

.banner-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

/* About Us Layout (Page Specific) */
.about-hero {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 60px 20px;
    text-align: center;
}

.about-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
    align-items: center;
}

.video-container {
    width: 100%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.video-container iframe, .video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.intro-text h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.intro-text p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.intro-text p strong {
    color: #000;
}

/* Certifications Layout */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.cert-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.cert-card .cert-badge {
    background-color: var(--primary-color);
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 auto 15px auto;
}

.cert-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.cert-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* FAQ Layout (About Us Page) */
.faq-section {
    max-width: 900px;
    margin: 60px auto;
}

.faq-item {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    font-size: 1.05rem;
    font-weight: 700;
    background: #ffffff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.faq-question:hover {
    background: #fafafa;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--accent-color);
    transition: transform 0.2s;
}

.faq-item.active .faq-question::after {
    content: '-';
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    color: var(--text-muted);
    font-size: 0.95rem;
    border-top: 1px solid transparent;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 500px;
    border-top: 1px solid var(--border-color);
    background: #fcfcfc;
}

/* WhatsApp Floating Button (Global) */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 0.95rem;
    z-index: 10000;
    transition: transform 0.2s, background-color 0.2s;
}

.whatsapp-float:hover {
    transform: scale(1.05);
    background-color: #20ba5a;
}

.whatsapp-float svg {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    fill: currentColor;
}

/* Footer layout */
footer {
    background: #1e293b;
    color: #94a3b8;
    padding: 60px 20px 30px 20px;
    border-top: 5px solid var(--accent-color);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid #334155;
    text-align: center;
    font-size: 0.85rem;
}

/* Responsive adjustment */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    nav {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }
    .nav-links {
        justify-content: center;
        width: 100%;
    }
    .search-box {
        margin-left: 0;
        width: 100%;
    }
    .slider-container {
        height: 250px;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .inquiry-banner {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 40px 20px;
    }
    .banner-content h2 {
        font-size: 1.8rem;
    }
}
