/* ========================================
   ELEGANT DARK GRAY & WHITE THEME
   ======================================== */

/* CSS Variables for consistent theming */
:root {
    --primary-dark: #2c3e50;
    --secondary-dark: #34495e;
    --accent-gray: #7f8c8d;
    --light-gray: #ecf0f1;
    --white: #ffffff;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --border-color: #bdc3c7;
    --shadow-light: 0 2px 10px rgba(44, 62, 80, 0.1);
    --shadow-medium: 0 4px 20px rgba(44, 62, 80, 0.15);
    --shadow-heavy: 0 8px 30px rgba(44, 62, 80, 0.2);
    --gradient-primary: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    --gradient-light: linear-gradient(135deg, #ecf0f1 0%, #ffffff 100%);
}

/* ========================================
   GLOBAL STYLES
   ======================================== */

body {
    background-color: var(--white);
    color: var(--text-dark);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* ========================================
   HEADER STYLES
   ======================================== */

.site-header {
    background: var(--gradient-primary);
    box-shadow: var(--shadow-medium);
    position: relative;
    z-index: 1000;
}

/* Top Header */
.top-header {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-header .logo img {
    filter: brightness(1.1);
    transition: all 0.3s ease;
}

.top-header .logo img:hover {
    filter: brightness(1.3);
    transform: scale(1.02);
}

.top-header .contact {
    color: var(--white);
}

.top-header .contact a {
    color: var(--light-gray);
    transition: color 0.3s ease;
}

.top-header .contact a:hover {
    color: var(--white);
    text-decoration: none;
}

.top-header .contact i {
    color: var(--accent-gray);
    margin-right: 8px;
}

/* Mobile Topbar */
.mobile-topbar {
    background: var(--secondary-dark) !important;
    color: var(--white);
}

.mobile-topbar a {
    color: var(--light-gray) !important;
    transition: color 0.3s ease;
}

.mobile-topbar a:hover {
    color: var(--white) !important;
}

.mobile-topbar i {
    color: var(--accent-gray);
}

/* Navigation */
.main-nav {
    background: var(--secondary-dark);
    box-shadow: var(--shadow-light);
}

.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.main-nav li {
    margin: 0;
}

.main-nav a {
    display: block;
    padding: 18px 25px;
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    border-bottom: 3px solid transparent;
}

.main-nav a:hover,
.main-nav a:focus {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-bottom-color: var(--accent-gray);
    text-decoration: none;
}

.main-nav a:active {
    background: rgba(255, 255, 255, 0.15);
}

/* ========================================
   FOOTER STYLES
   ======================================== */

.footer {
    background: var(--gradient-primary) !important;
    color: var(--white);
    margin-top: 60px;
}

.footer h5 {
    color: var(--white);
    font-weight: 700;
    border-bottom-color: var(--accent-gray) !important;
}

.footer a {
    color: var(--light-gray);
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--white);
    text-decoration: none;
}

.footer .list-unstyled li {
    color: var(--light-gray);
}

/* ========================================
   BUTTONS & INTERACTIVE ELEMENTS
   ======================================== */

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: var(--white);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

.btn-primary:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    color: var(--white);
}

.btn-secondary {
    background: var(--light-gray);
    border: 2px solid var(--accent-gray);
    color: var(--text-dark);
    font-weight: 600;
    padding: 10px 28px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--accent-gray);
    border-color: var(--secondary-dark);
    color: var(--white);
    transform: translateY(-2px);
}

/* ========================================
   CARDS & PRODUCTS
   ======================================== */

.card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--accent-gray);
}

.card-header {
    background: var(--gradient-light);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    color: var(--text-dark);
}

.card-body {
    padding: 20px;
}

/* Product Cards */
.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--accent-gray);
}

.product-card img {
    transition: transform 0.3s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-card .card-body {
    padding: 20px;
    background: var(--white);
}

.product-card h5 {
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 10px;
}

.product-card p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.5;
}

/* ========================================
   FORMS
   ======================================== */

.form-control {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: var(--white);
    color: var(--text-dark);
}

.form-control:focus {
    border-color: var(--accent-gray);
    box-shadow: 0 0 0 3px rgba(127, 140, 141, 0.1);
    background: var(--white);
    color: var(--text-dark);
}

.form-label {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 8px;
}

.form-select {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    background: var(--white);
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.form-select:focus {
    border-color: var(--accent-gray);
    box-shadow: 0 0 0 3px rgba(127, 140, 141, 0.1);
}

/* ========================================
   CATEGORY SIDEBAR
   ======================================== */

.category-sidebar {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.category-sidebar .sidebar-header {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 20px;
    font-weight: 700;
    font-size: 18px;
    text-align: center;
}

.category-sidebar .category-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.category-sidebar .category-item {
    border-bottom: 1px solid var(--border-color);
}

.category-sidebar .category-item:last-child {
    border-bottom: none;
}

.category-sidebar .category-link {
    display: block;
    padding: 15px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.category-sidebar .category-link:hover {
    background: var(--light-gray);
    color: var(--text-dark);
    text-decoration: none;
    padding-left: 30px;
}

.category-sidebar .category-link.active {
    background: var(--accent-gray);
    color: var(--white);
    font-weight: 600;
}

.category-sidebar .subcategory-list {
    background: var(--light-gray);
    padding: 0;
    margin: 0;
    list-style: none;
}

.category-sidebar .subcategory-item {
    border-bottom: 1px solid rgba(189, 195, 199, 0.5);
}

.category-sidebar .subcategory-item:last-child {
    border-bottom: none;
}

.category-sidebar .subcategory-link {
    display: block;
    padding: 12px 20px 12px 40px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.category-sidebar .subcategory-link:hover {
    background: rgba(127, 140, 141, 0.1);
    color: var(--text-dark);
    text-decoration: none;
    padding-left: 50px;
}

.category-sidebar .subcategory-link.active {
    background: var(--accent-gray);
    color: var(--white);
    font-weight: 500;
}

/* ========================================
   PAGINATION
   ======================================== */

.pagination {
    justify-content: center;
    margin-top: 40px;
}

.page-link {
    color: var(--text-dark);
    background: var(--white);
    border: 2px solid var(--border-color);
    padding: 12px 16px;
    margin: 0 4px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.page-link:hover {
    color: var(--white);
    background: var(--accent-gray);
    border-color: var(--accent-gray);
    transform: translateY(-2px);
}

.page-item.active .page-link {
    background: var(--gradient-primary);
    border-color: var(--primary-dark);
    color: var(--white);
}

.page-item.disabled .page-link {
    color: var(--text-light);
    background: var(--light-gray);
    border-color: var(--border-color);
}

/* ========================================
   FLOATING CONTACT BUTTONS
   ======================================== */

.floating-contact .contact-icon {
    background: var(--gradient-primary);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.floating-contact .contact-icon:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-medium);
}

.floating-contact .contact-icon.phone {
    background: var(--gradient-primary);
}

.floating-contact .contact-icon.whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.floating-contact .contact-icon.email {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .main-nav ul {
        flex-direction: column;
    }
    
    .main-nav a {
        padding: 15px 20px;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .main-nav a:hover {
        border-bottom-color: var(--accent-gray);
    }
    
    .floating-contact {
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: row;
        gap: 10px;
    }
    
    .floating-contact .contact-icon {
        border-radius: 50%;
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 576px) {
    .top-header {
        padding: 10px 0;
    }
    
    .main-nav a {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .card-body {
        padding: 15px;
    }
    
    .product-card .card-body {
        padding: 15px;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.text-elegant-dark {
    color: var(--text-dark) !important;
}

.text-elegant-light {
    color: var(--text-light) !important;
}

.bg-elegant-primary {
    background: var(--gradient-primary) !important;
}

.bg-elegant-light {
    background: var(--gradient-light) !important;
}

.border-elegant {
    border-color: var(--border-color) !important;
}

.shadow-elegant {
    box-shadow: var(--shadow-light) !important;
}

.shadow-elegant-medium {
    box-shadow: var(--shadow-medium) !important;
}

.shadow-elegant-heavy {
    box-shadow: var(--shadow-heavy) !important;
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.5s ease-out;
}

/* ========================================
   LOADING STATES
   ======================================== */

.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* ========================================
   ADDITIONAL COMPONENT STYLES
   ======================================== */

/* Contact Form Enhancements */
.contact-form .form-control:focus {
    border-color: var(--accent-gray);
    box-shadow: 0 0 0 3px rgba(127, 140, 141, 0.1);
}

.contact-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Map Container */
.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

/* Error Page Styles */
.error-icon i {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Feature Box Hover Effects */
.feature-box {
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--accent-gray);
}

/* Blog/Product Card Enhancements */
.blog-image img {
    transition: transform 0.3s ease;
}

.blog-image:hover img {
    transform: scale(1.02);
}

/* Login Form Enhancements */
.login-area .card {
    border: none;
    box-shadow: var(--shadow-heavy);
}

.login-area .form-control:focus {
    border-color: var(--accent-gray);
    box-shadow: 0 0 0 3px rgba(127, 140, 141, 0.1);
}

/* Badge Styles */
.badge {
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Text Color Utilities */
.text-white-75 {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* Button Enhancements */
.btn-lg {
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: var(--light-gray);
    border: 2px solid var(--accent-gray);
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--accent-gray);
    border-color: var(--secondary-dark);
    color: var(--white);
    transform: translateY(-2px);
}

/* Card Enhancements */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Form Enhancements */
.form-label {
    font-weight: 600;
    margin-bottom: 8px;
}

.form-control {
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--accent-gray);
    box-shadow: 0 0 0 3px rgba(127, 140, 141, 0.1);
}

/* Alert Enhancements */
.alert {
    border: none;
    border-radius: 8px;
    font-weight: 500;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border-left: 4px solid #dc3545;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .btn-lg {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .display-1 {
        font-size: 4rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .btn-lg {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .display-1 {
        font-size: 3rem;
    }
    
    .card-body {
        padding: 1rem;
    }
}
