/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Bar */
.top-bar {
    background: #1a2332;
    color: white;
    padding: 10px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links a {
    color: white;
    margin-left: 15px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #ffc107;
}

/* Header */
header {
    background: black;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 80px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: #e1e0e0;
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #0066cc;
}

.submit-query-btn {
    background: #1a2332;
    color: white;
    border: none;
    padding: 12px 25px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.submit-query-btn:hover {
    background: #0066cc;
}

.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Contact Info Bar */
.contact-info-bar {
    background: #1a2332;
    color: white;
    padding: 20px 0;
}

.contact-info-bar .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-item i {
    font-size: 24px;
    color: #ffc107;
}

.info-item strong {
    display: block;
    margin-bottom: 5px;
}

.info-item p {
    font-size: 14px;
    opacity: 0.9;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.slider-container {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-slide {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
}

.placeholder-slide h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.slide-content {
    position: absolute;
    bottom: 50px;
    left: 50px;
    color: white;
    background: rgba(0, 0, 0, 0.6);
    padding: 30px;
    max-width: 600px;
    border-radius: 10px;
}

.slide-content h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-size: 20px;
    transition: background 0.3s;
    z-index: 10;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    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;
    transition: background 0.3s;
}

.dot.active {
    background: white;
}

/* Latest Products Section */
.latest-products {
    padding: 60px 0;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: #1a2332;
}

.products-slider {
    position: relative;
}

.products-wrapper {
    overflow: hidden;
    padding: 20px 0;
}

.products-container {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease;
}

.product-card {
    flex: 0 0 calc(33.333% - 20px);
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.product-image {
    height: 350px;
    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.1);
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #1a2332;
}

.product-date {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.product-price {
    font-size: 18px;
    color: #0066cc;
    font-weight: 600;
    margin-bottom: 15px;
}

.read-more-btn {
    display: inline-block;
    background: #e0e0e0;
    color: #333;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.read-more-btn:hover {
    background: #d0d0d0;
}

.products-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 2px solid #ddd;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
    z-index: 5;
}

.products-slider-btn:hover {
    background: #1a2332;
    color: white;
    border-color: #1a2332;
}

.products-slider-btn.prev {
    left: -20px;
}

.products-slider-btn.next {
    right: -20px;
}

/* Sidebar */
.sidebar {
    position: fixed;
    right: 20px;
    top: 450px;
    width: 300px;
    z-index: 100;
}

.widget {
    background: white;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.widget-image {
    width: 100%;
    display: block;
}

.widget-caption {
    padding: 15px;
    text-align: center;
    font-weight: 600;
}

/* Footer */
footer {
    background: #1a2332;
    color: white;
    padding: 30px 0;
    margin-top: 60px;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    font-weight: 600;
    font-size: 18px;
}

.back-to-top {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.back-to-top:hover {
    color: #ffc107;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .sidebar {
        display: none;
    }
}

@media (max-width: 968px) {
    .contact-info-bar .container {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-card {
        flex: 0 0 calc(50% - 15px);
    }

    .mobile-menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
    }
}

@media (max-width: 768px) {
    .top-bar .container {
        flex-direction: column;
        text-align: center;
    }

    .social-links {
        margin-top: 10px;
    }

    .contact-info-bar .container {
        grid-template-columns: 1fr;
    }

    .slide-content {
        left: 20px;
        right: 20px;
        bottom: 20px;
        padding: 20px;
    }

    .product-card {
        flex: 0 0 100%;
    }

    footer .container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

/* Admin Styles */
.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.admin-header {
    background: #1a2332;
    color: white;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-nav {
    display: flex;
    gap: 20px;
}

.admin-nav a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    transition: background 0.3s;
}

.admin-nav a:hover,
.admin-nav a.active {
    background: rgba(255, 255, 255, 0.2);
}

.logout-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
}

.admin-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary {
    background: #0066cc;
    color: white;
}

.btn-primary:hover {
    background: #0052a3;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.data-table th {
    background: #f8f9fa;
    font-weight: 600;
}

.data-table img {
    max-width: 100px;
    height: auto;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}