/* Himax Living - Main Stylesheet */

:root {
    --primary-blue: #0066cc;
    --primary-magenta: #ff0066;
    --black: #000000;
    --white: #ffffff;
    --gray-light: #f8f9fa;
    --gray-medium: #6c757d;
    --gray-dark: #343a40;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

[data-theme="dark"] {
    --black: #ffffff;
    --white: #1a1a1a;
    --gray-light: #2d2d2d;
    --gray-medium: #b0b0b0;
    --gray-dark: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.4);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--gray-light);
    color: var(--black);
    transition: var(--transition);
    min-height: 100vh;
}

/* Navbar Styles */
.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow);
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-blue) !important;
}

.navbar-brand i {
    color: var(--primary-magenta);
    margin-right: 0.5rem;
}

.nav-link {
    color: var(--black) !important;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-blue) !important;
}

.nav-link.active {
    color: var(--primary-blue) !important;
    border-bottom: 2px solid var(--primary-magenta);
}

/* Mobile Bottom Navigation */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    z-index: 1000;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--gray-medium);
    font-size: 0.75rem;
    transition: var(--transition);
}

.bottom-nav-item i {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.bottom-nav-item.active {
    color: var(--primary-blue);
}

.bottom-nav-item:hover {
    color: var(--primary-magenta);
}

/* Hero Section */
.hero-section {
    padding: 0;
    color: var(--white);
}

.hero-section .carousel {
    min-height: 100vh;
    max-height: 700px;
}

.hero-section .carousel-item {
    height: 100vh;
    max-height: 700px;
    background-color: #000;
    position: relative;
}

.hero-section .carousel-item img {
    height: 100vh;
    max-height: 700px;
    width: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.7;
}

.hero-section .carousel-caption {
    bottom: 25%;
    background: transparent;
    padding: 2.5rem;
    border-radius: 0;
    backdrop-filter: none;
    max-width: 900px;
    margin: 0 auto;
}

.hero-section .carousel-caption h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--primary-magenta);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.hero-section .carousel-caption p {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

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

.animated-text {
    animation: fadeInUp 1s ease-out;
}

.animated-text-delay {
    animation: fadeInUp 1s ease-out 0.3s both;
}

.animated-btn {
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-section .carousel-item.active .animated-text,
.hero-section .carousel-item.active .animated-text-delay,
.hero-section .carousel-item.active .animated-btn {
    animation-play-state: running;
}

.hero-section .carousel-item:not(.active) .animated-text,
.hero-section .carousel-item:not(.active) .animated-text-delay,
.hero-section .carousel-item:not(.active) .animated-btn {
    opacity: 0;
    animation: none;
}

/* Floating Call Button */
.floating-call-btn {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary-magenta), var(--primary-blue));
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.floating-call-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 102, 0.7);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(255, 0, 102, 0);
    }
}

@media (max-width: 768px) {
    .floating-call-btn {
        bottom: 70px;
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--primary-magenta);
    border-color: var(--primary-magenta);
}

.btn-magenta {
    background-color: var(--primary-magenta);
    border-color: var(--primary-magenta);
    color: var(--white);
    transition: var(--transition);
}

.btn-magenta:hover {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

/* Cards */
.card {
    background-color: var(--white);
    border: none;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-weight: bold;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.card-text {
    color: var(--gray-medium);
    font-size: 0.9rem;
}

.price {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary-blue);
}

.discount-price {
    font-size: 1rem;
    color: var(--primary-magenta);
    text-decoration: line-through;
    margin-right: 0.5rem;
}

/* Forms */
.form-control {
    background-color: var(--gray-light);
    border-color: var(--gray-medium);
    color: var(--black);
    transition: var(--transition);
}

.form-control:focus {
    background-color: var(--white);
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

.form-label {
    color: var(--black);
    font-weight: 500;
}

/* Auth Pages */
.auth-page {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-magenta));
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.auth-container {
    width: 100%;
    max-width: 450px;
}

.auth-card {
    background-color: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-hover);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-blue);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 1rem;
}

.auth-header h2 {
    color: var(--black);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--gray-medium);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-light);
}

.auth-footer a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    color: var(--primary-magenta);
}

/* Product Cards */
.product-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.product-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

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

.product-card .card-body {
    padding: 1rem;
}

.product-card .badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary-magenta);
    color: var(--white);
}

/* Stats Section */
.stats-section {
    background-color: var(--white);
    padding: 3rem 0;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
}

.stat-item i {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.stat-item h3 {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-magenta);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--gray-medium);
    font-size: 1.1rem;
}

/* Features Section */
.features-section {
    padding: 4rem 0;
    background-color: var(--gray-light);
}

.feature-item {
    text-align: center;
    padding: 2rem;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.feature-item h4 {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: var(--gray-medium);
}

/* Footer */
.footer {
    background-color: var(--black);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer h5 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

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

.footer a:hover {
    color: var(--primary-magenta);
}

.footer .social-links a {
    font-size: 1.5rem;
    margin-right: 1rem;
}

.footer-bottom {
    background-color: var(--gray-dark);
    padding: 1rem 0;
    margin-top: 2rem;
    text-align: center;
}

/* Theme Toggle */
.theme-toggle {
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    background-color: var(--gray-light);
    transition: var(--transition);
}

.theme-toggle:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

/* Cart Badge */
.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--primary-magenta);
    color: var(--white);
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 50%;
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 1.8rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .navbar {
        padding: 0.5rem 0;
    }

    .bottom-nav {
        display: flex;
        justify-content: space-around;
    }

    .product-card img {
        height: 150px;
    }

    .stat-item {
        padding: 1rem;
    }

    .stat-item i {
        font-size: 2rem;
    }

    .stat-item h3 {
        font-size: 1.5rem;
    }

    .footer {
        padding-bottom: 5rem;
    }
}

@media (min-width: 769px) {
    .bottom-nav {
        display: none;
    }
}

/* Table Styles */
.table {
    background-color: var(--white);
}

.table thead {
    background-color: var(--primary-blue);
    color: var(--white);
}

.table tbody tr:hover {
    background-color: var(--gray-light);
}

/* Alert Styles */
.alert {
    border-radius: 8px;
    border: none;
}

/* Modal Styles */
.modal-content {
    background-color: var(--white);
    border-radius: 15px;
}

.modal-header {
    background-color: var(--primary-blue);
    color: var(--white);
    border-radius: 15px 15px 0 0;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

/* Pagination */
.page-link {
    color: var(--primary-blue);
    background-color: var(--white);
    border-color: var(--gray-medium);
}

.page-link:hover {
    color: var(--white);
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.page-item.active .page-link {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

/* Breadcrumb */
.breadcrumb {
    background-color: var(--gray-light);
    border-radius: 8px;
}

.breadcrumb-item a {
    color: var(--primary-blue);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--gray-medium);
}

/* Search Bar */
.search-bar {
    background-color: var(--white);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    border: 1px solid var(--gray-medium);
}

.search-bar input {
    border: none;
    background: transparent;
    outline: none;
    width: 150px;
    color: var(--black);
}

.search-bar input::placeholder {
    color: var(--gray-medium);
}

.search-bar button {
    background: none;
    border: none;
    color: var(--primary-blue);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    margin-left: 0.5rem;
}

.search-bar button:hover {
    color: var(--primary-magenta);
}

/* Logo Image */
.logo-img {
    height: 70px;
    width: auto;
    object-fit: contain;
}

/* Category Card */
.category-card {
    border: none;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
    cursor: pointer;
}

.category-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.category-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.category-card:hover .card-img-top {
    transform: scale(1.05);
}

.category-card .card-body {
    padding: 1.5rem;
}

.category-card .card-title {
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--black);
}

/* Filter Section */
.filter-section {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.filter-section h5 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

/* Rating Stars */
.rating-stars {
    color: #ffc107;
}

/* Testimonial Card */
.testimonial-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
}

.testimonial-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.testimonial-card .quote {
    font-style: italic;
    color: var(--gray-medium);
    margin-bottom: 1rem;
}

/* About Section */
.about-section {
    padding: 3rem 0;
}

.about-section h2 {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.about-section img {
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.about-section p {
    margin-bottom: 1rem;
}

/* Career Section */
.career-section {
    padding: 4rem 0;
    background-color: var(--gray-light);
}

.job-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.job-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.job-card h4 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.job-card .badge {
    background-color: var(--primary-magenta);
}

/* Contact Section */
.contact-section {
    padding: 4rem 0;
}

.contact-info {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-info i {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-right: 1rem;
}

/* FAQ Section */
.faq-section {
    padding: 4rem 0;
}

.faq-item {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-item .faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
}

.faq-item .faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--gray-medium);
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item .faq-toggle {
    transition: var(--transition);
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
}

/* ── Products Mega Menu ──────────────────────────────── */
.mega-group-title {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #0d6efd;
    border-bottom: 2px solid rgba(13,110,253,0.2);
    padding-bottom: 7px;
    margin-bottom: 10px;
}
.mega-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 7px;
    font-size: 0.875rem;
    color: #333 !important;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}
.mega-item i {
    font-size: 0.9rem;
    color: #0d6efd;
    width: 16px;
    flex-shrink: 0;
}
.mega-item:hover {
    background: rgba(13,110,253,0.09);
    color: #0d6efd !important;
}

/* ── Dark mode: careers & shared components ──────────── */
[data-theme="dark"] .job-card                       { background-color: var(--white); color: var(--black); }
[data-theme="dark"] .job-card h4                    { color: #5ba4f5 !important; }
[data-theme="dark"] .feature-item                   { background-color: var(--white); color: var(--black); }
[data-theme="dark"] .feature-item p                 { color: var(--gray-medium); }
[data-theme="dark"] .card                           { background-color: var(--white); color: var(--black); }
[data-theme="dark"] .card-header                    { background-color: #2d2d2d; border-color: #444; }
[data-theme="dark"] .modal-content                  { background-color: var(--white); color: var(--black); }
[data-theme="dark"] .modal-body                     { background-color: var(--white); color: var(--black); }
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select                    { background-color: #2d2d2d; color: var(--black); border-color: #555; }
[data-theme="dark"] .form-control::placeholder      { color: #888; }
[data-theme="dark"] .btn-outline-secondary          { color: var(--black); border-color: var(--gray-medium); }
[data-theme="dark"] .btn-outline-secondary:hover    { background-color: #444; color: #fff; border-color: #666; }
[data-theme="dark"] .table                          { color: var(--black); }
[data-theme="dark"] .table-light th                 { background-color: #2d2d2d; color: var(--black); }
[data-theme="dark"] .table-hover tbody tr:hover     { background-color: rgba(255,255,255,.05); }
[data-theme="dark"] .contact-info                   { background-color: var(--white); color: var(--black); }
[data-theme="dark"] .testimonial-card               { background-color: var(--white); color: var(--black); }
[data-theme="dark"] .faq-item                       { background-color: var(--white); }
[data-theme="dark"] .faq-question                   { color: var(--black); }
[data-theme="dark"] .faq-answer                     { color: var(--gray-medium); }
[data-theme="dark"] .mega-item                      { color: var(--black) !important; }
[data-theme="dark"] .mega-item:hover                { background: rgba(91,164,245,0.12); color: #5ba4f5 !important; }
[data-theme="dark"] hr                              { border-color: #444; }
