/* assets/css/style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #000000;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #333333;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #888888;
    --accent: #6a0dad;
    --border: #2a2a2a;
    --sidebar-width: 280px;
    --link-hover: #9b59b6;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.app-container {
    display: flex;
    min-height: 100vh;
}

/* Mobile Header */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: none;
    z-index: 1000;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.mobile-nav-toggle {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    width: 24px;
    height: 18px;
    justify-content: space-between;
}

.mobile-nav-toggle span {
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

.mobile-nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-logo img {
    height: 50px;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    padding: 30px 0;
    overflow-y: auto;
    z-index: 999;
    transition: transform 0.3s ease;
}

.sidebar-header {
    text-align: center;
    padding: 0 30px 40px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 30px;
}

.sidebar-header .logo {
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
}

.sidebar-header h1 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
}

.nav-menu {
    list-style: none;
    padding: 0 20px;
}

.nav-menu li {
    margin-bottom: 5px;
}

.nav-section {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 30px 0 15px;
    padding: 0 10px;
    letter-spacing: 1px;
}

.nav-link {
    display: block;
    padding: 12px 15px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 400;
}

.nav-link:hover,
.nav-link.active {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.social-link {
    font-size: 14px;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    min-height: 100vh;
}

/* Horizontal Scrolling - ONLY for homepage */
body.homepage .main-content {
    overflow-x: auto;
    overflow-y: hidden;
}

body.homepage .horizontal-scroll {
    display: flex;
    height: 100vh;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body.homepage .horizontal-scroll::-webkit-scrollbar {
    display: none;
}

body.homepage .content-section {
    min-width: 100vw;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    flex-shrink: 0;
}

/* Vertical scroll pages */
body.vertical-scroll .main-content,
body.category-page .main-content,
body.product-page .main-content {
    overflow-x: hidden;
    overflow-y: auto;
    padding-top: 60px;
}

body.vertical-scroll .horizontal-scroll,
body.category-page .horizontal-scroll,
body.product-page .horizontal-scroll {
    display: block;
    height: auto;
    overflow: visible;
}

body.vertical-scroll .content-section,
body.category-page .content-section,
body.product-page .content-section {
    width: 100%;
    min-height: auto;
    display: block;
    padding: 80px 20px;
}

body.vertical-scroll .content-section p a:link,
body.category-page .content-section p a:link,
body.product-page .content-section p a:link {
    color: #9b59b6;
    position: relative;
    text-decoration: none;
    transition: color 0.3s ease;
}

body.vertical-scroll .content-section p a:link::after,
body.category-page .content-section p a:link::after,
body.product-page .content-section p a:link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #6a0dad;
    transition: width 0.4s ease;
    border-radius: 1px;
}

body.vertical-scroll .content-section p a:link::before,
body.category-page .content-section p a:link::before,
body.product-page .content-section p a:link::before {
    content: ' ';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: rgba(106, 13, 173, 0.4);
    transition: width 0.4s ease 0.1s;
    border-radius: 0.5px;
}

body.vertical-scroll .content-section p a:hover,
body.category-page .content-section p a:hover,
body.product-page .content-section p a:hover {
    color: #6a0dad;
}

body.vertical-scroll .content-section p a:hover::after,
body.category-page .content-section p a:hover::after,
body.product-page .content-section p a:hover::after {
    width: 100%;
}

body.vertical-scroll .content-section p a:hover::before,
body.category-page .content-section p a:hover::before,
body.product-page .content-section p a:hover::before {
    width: 100%;
}


/* Section Headers */
.section-header {
    margin-bottom: 40px;
    text-align: center;
    padding: 20px;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
}

/* Homepage Product Cards */
.homepage-product-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.homepage-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(106, 13, 173, 0.3);
    border-color: var(--accent);
}

/* Regular Product Cards */
.product-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.product-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    background: var(--bg-tertiary);
    flex-shrink: 0;
}

.product-info {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.product-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
    line-height: 1.3;
}

.product-description {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.product-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.product-cta {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

/* Buy Now Button for Homepage */
.product-buy-button {
    display: inline-block;
    padding: 12px 24px;
    background: var(--accent);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-buy-button:hover {
    background: var(--link-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(106, 13, 173, 0.4);
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.news-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.news-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: var(--bg-tertiary);
    flex-shrink: 0;
}

.news-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
    line-height: 1.3;
}

.news-excerpt {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.news-date {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.btn:hover {
    background: var(--accent);
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background: var(--link-hover);
    color: var(--text-primary);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background: var(--link-hover);
    border-color: var(--link-hover);
}

/* Contact Form */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 10px;
}

.contact-item {
    padding: 5px;
}
.contact-form {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Messages */
.success-message {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid #22c55e;
    color: #22c55e;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: #ef4444;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-header {
        display: flex;
    }

    .sidebar {
        transform: translateX(-100%);
        width: 100%;
        background: rgba(26, 26, 26, 0.98);
        backdrop-filter: blur(10px);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        width: 100%;
        padding-top: 60px;
    }

    body.homepage .content-section {
        min-width: 100%;
        width: 100%;
        padding: 40px 20px; /* Increased padding for better spacing */
        display: block; /* Changed from flex to block */
        align-items: unset; /* Remove centering */
        justify-content: unset; /* Remove centering */
        min-height: auto; /* Remove fixed height */
    }

    body.homepage .horizontal-scroll {
        flex-direction: column;
        height: auto;
        overflow-x: hidden;
        overflow-y: auto;
    }

    /* Make sure section headers look good on mobile */
    .section-header {
        margin-bottom: 30px;
        padding: 10px;
    }

    .section-title {
        font-size: 32px;
    }

    .section-subtitle {
        font-size: 16px;
    }

    .product-grid,
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 0; /* Remove any top margin */
    }

    .product-card,
    .homepage-product-card,
    .news-card {
        height: auto;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}


/* Utility Classes */
.text-center {
    text-align: center;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}
