/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;700&display=swap');

:root {
    /* Colors */
    --color-primary: #0a0a0a;
    --color-secondary: #ffffff;
    --color-accent: #8a2be2;
    --color-accent-hover: #7a26c9;
    --color-text-main: #e5e5e5;
    --color-text-muted: #a3a3a3;
    --color-border: #333333;
    --color-bg-card: #171717;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Layout */
    --container-width: 1200px;
    --header-height: 80px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-primary);
    color: var(--color-text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-secondary);
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    font-family: var(--font-heading);
}

/* Utility Classes */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--color-accent);
    color: var(--color-secondary);
    font-weight: 600;
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

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

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

.btn-outline:hover {
    background-color: var(--color-secondary);
    color: var(--color-primary);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

/* Navbar */
.navbar {
    height: var(--header-height);
    background-color: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
}

.navbar .container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--color-secondary);
    position: relative;
    transition: all 0.3s ease;
}

.logo:hover {
    letter-spacing: 1px;
    color: var(--color-accent);
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
}

.nav-links li {
    animation: slideDown 0.5s ease-out backwards;
}

.nav-links li:nth-child(1) { animation-delay: 0.1s; }
.nav-links li:nth-child(2) { animation-delay: 0.2s; }
.nav-links li:nth-child(3) { animation-delay: 0.3s; }
.nav-links li:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-link {
    font-weight: 500;
    color: var(--color-text-muted);
    position: relative;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent), #ff00ff);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--color-secondary);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--color-secondary);
}

.nav-link.active::after {
    width: 100%;
    background: var(--color-accent);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(23, 23, 23, 0.98);
    backdrop-filter: blur(10px);
    min-width: 200px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 12px;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: var(--color-text-main);
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.dropdown-item:first-child {
    border-radius: 8px 8px 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 8px 8px;
}

.dropdown-item:hover {
    background-color: rgba(138, 43, 226, 0.1);
    color: var(--color-accent);
    border-left-color: var(--color-accent);
    padding-left: 24px;
}

.nav-icons {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.cart-icon-wrapper {
    position: relative;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.cart-icon-wrapper:hover {
    transform: scale(1.1);
}

.cart-icon-wrapper:hover .cart-count {
    animation: bounce 0.5s ease;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--color-accent);
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
}

/* Footer */
footer {
    background-color: var(--color-primary);
    padding: var(--spacing-lg) 0;
    margin-top: 0;
    border-top: 1px solid var(--color-border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.footer-col h4 {
    margin-bottom: var(--spacing-sm);
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--color-secondary);
    margin-bottom: var(--spacing-sm);
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: var(--color-text-muted);
}

.footer-col a:hover {
    color: var(--color-accent);
}

.copyright {
    text-align: center;
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Home Page Specifics */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1535295972055-1c762f4483e5?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-height);
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: var(--spacing-sm);
    animation: fadeIn 1s ease-out;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-text-main);
    animation: fadeIn 1s ease-out 0.3s backwards;
}

.hero-content .btn {
    animation: fadeIn 1s ease-out 0.6s backwards;
}

.featured-products {
    padding: var(--spacing-xl) 0;
}

.featured-products:nth-of-type(odd) {
    background-color: var(--color-primary);
}

.featured-products:nth-of-type(even) {
    background-color: var(--color-bg-card);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.product-card {
    background-color: var(--color-bg-card);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid transparent;
}

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

.product-image {
    position: relative;
    height: 300px;
    width: 100%;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.02);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.add-to-cart-btn {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--color-accent);
    color: var(--color-secondary);
    padding: 12px;
    border: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
    cursor: pointer;
}

.add-to-cart-btn:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(138, 43, 226, 0.4);
}

.product-info {
    padding: var(--spacing-sm);
}

.product-category {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-title {
    font-size: 1.2rem;
    margin: 0.5rem 0;
    color: var(--color-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.product-price .price {
    font-weight: 600;
    color: var(--color-accent);
    font-size: 1.1rem;
}

.product-price .old-price {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    text-decoration: line-through;
}

.product-price .discount {
    font-size: 0.75rem;
    background-color: rgba(138, 43, 226, 0.2);
    color: var(--color-accent);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.product-actions {
    margin-top: var(--spacing-sm);
}

/* FAQ Section */
.faq-section {
    padding: var(--spacing-lg) 0;
    background-color: var(--color-bg-card);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: var(--spacing-sm);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--color-accent);
}

.faq-question {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    background: transparent;
    border: none;
    color: var(--color-secondary);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: var(--color-accent);
}

.faq-icon {
    transition: transform 0.3s ease;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 var(--spacing-md);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 var(--spacing-md) var(--spacing-md);
}

.faq-answer p {
    color: var(--color-text-main);
    line-height: 1.6;
    margin: 0;
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-accent);
    border-radius: 8px;
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transform: translateY(150%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10000;
    max-width: 400px;
}

.toast-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--color-accent);
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: 4px;
}

.toast-message {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.toast-close {
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.toast-close:hover {
    color: var(--color-secondary);
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
        /* Todo: Mobile menu */
    }

    .toast-notification {
        bottom: 20px;
        right: 20px;
        left: 20px;
        max-width: none;
    }
}

/* Products Page Specifics */
.products-header {
    background-color: var(--color-bg-card);
    padding: var(--spacing-lg) 0;
    margin-bottom: var(--spacing-md);
    text-align: center;
    padding-top: calc(var(--header-height) + var(--spacing-lg));
}

.products-section {
    padding: var(--spacing-md) 0 var(--spacing-xl);
}

.products-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: var(--spacing-lg);
}

.sidebar {
    background-color: var(--color-bg-card);
    padding: var(--spacing-sm);
    border-radius: 8px;
    height: fit-content;
    position: sticky;
    top: calc(var(--header-height) + var(--spacing-md));
}

.sidebar h3 {
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--color-border);
}

.filter-group {
    margin-bottom: var(--spacing-md);
}

.sidebar h4 {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 1px;
    order: -1;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-link {
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--color-text);
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 500;
    text-align: center;
}

.category-link:hover {
    background-color: rgba(138, 43, 226, 0.15);
    color: var(--color-accent);
    border-color: rgba(138, 43, 226, 0.3);
    transform: translateX(4px);
}

.category-link.active {
    background-color: var(--color-accent);
    color: var(--color-secondary);
    border-color: var(--color-accent);
    box-shadow: 0 4px 12px rgba(138, 43, 226, 0.4);
}

.products-main {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.sort-filter {
    background-color: var(--color-bg-card);
    padding: var(--spacing-sm);
    border-radius: 8px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: var(--spacing-sm);
}

.sort-filter label {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.filters-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-sm);
    background-color: var(--color-bg-card);
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

.filter-group {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

select {
    padding: 8px 16px;
    background-color: var(--color-primary);
    color: var(--color-text-main);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-family: var(--font-body);
    cursor: pointer;
}

select:focus {
    outline: none;
    border-color: var(--color-accent);
}

@media (max-width: 768px) {
    .products-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .filters-bar {
        flex-direction: column;
        gap: var(--spacing-sm);
        align-items: stretch;
    }
}

/* Cart Page Specifics */
.cart-section {
    padding: calc(var(--header-height) + var(--spacing-lg)) 0 var(--spacing-xl);
    min-height: 80vh;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--spacing-lg);
    background-color: var(--color-bg-card);
    border-radius: 8px;
    overflow: hidden;
}

.cart-table th,
.cart-table td {
    padding: var(--spacing-sm);
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.cart-table th {
    background-color: rgba(255, 255, 255, 0.05);
    font-weight: 600;
    color: var(--color-secondary);
}

.cart-item-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.cart-item-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    background-color: var(--color-border);
    color: var(--color-secondary);
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.qty-input {
    width: 40px;
    text-align: center;
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-secondary);
    border-radius: 4px;
    padding: 2px;
}

.remove-btn {
    color: #ff4444;
    cursor: pointer;
    background: none;
    padding: 4px;
}

.cart-summary {
    background-color: var(--color-bg-card);
    padding: var(--spacing-md);
    border-radius: 8px;
    max-width: 400px;
    margin-left: auto;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-muted);
}

.summary-total {
    border-top: 1px solid var(--color-border);
    padding-top: var(--spacing-sm);
    margin-top: var(--spacing-sm);
    font-size: 1.2rem;
    color: var(--color-secondary);
    font-weight: 700;
}

@media (max-width: 768px) {
    .cart-table thead {
        display: none;
    }

    .cart-table tr {
        display: block;
        margin-bottom: var(--spacing-sm);
        border: 1px solid var(--color-border);
        border-radius: 8px;
        padding: var(--spacing-sm);
    }

    .cart-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border: none;
        padding: 4px 0;
    }

    .cart-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--color-text-muted);
    }
}

/* Checkout Page Specifics */
.checkout-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--spacing-lg);
    padding: calc(var(--header-height) + var(--spacing-lg)) 0 var(--spacing-xl);
}

.checkout-form-section h2 {
    margin-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: var(--spacing-sm);
}

.form-group {
    margin-bottom: var(--spacing-sm);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-text-muted);
}

.form-control {
    width: 100%;
    padding: 12px;
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    color: var(--color-secondary);
    border-radius: 4px;
    font-family: var(--font-body);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
}

.order-summary-card {
    background-color: var(--color-bg-card);
    padding: var(--spacing-md);
    border-radius: 8px;
    height: fit-content;
    position: sticky;
    top: calc(var(--header-height) + var(--spacing-md));
}

.order-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-sm);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--color-border);
}

.order-item-name {
    font-weight: 500;
}

.order-item-price {
    color: var(--color-text-muted);
}

@media (max-width: 768px) {
    .checkout-container {
        grid-template-columns: 1fr;
    }

    .order-summary-card {
        order: -1;
        position: static;
    }
}

/* Static Pages Specifics */
.static-header {
    background-color: var(--color-bg-card);
    padding: var(--spacing-lg) 0;
    text-align: center;
    padding-top: calc(var(--header-height) + var(--spacing-lg));
}

.static-content {
    padding: var(--spacing-xl) 0;
    max-width: 800px;
    margin: 0 auto;
}

.static-content h2 {
    margin-top: var(--spacing-md);
    color: var(--color-accent);
}

.static-content p {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-main);
}

.static-content ul,
.static-content ol {
    margin-bottom: var(--spacing-sm);
    margin-left: var(--spacing-md);
}

.static-content ul li,
.static-content ol li {
    color: var(--color-text-main);
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: var(--spacing-sm);
}

.static-content ul li::before {
    content: "▸";
    color: var(--color-accent);
    font-weight: bold;
    position: absolute;
    left: -1rem;
}

.static-content ol li {
    list-style: decimal;
    color: var(--color-text-main);
}

.static-content ol li::marker {
    color: var(--color-accent);
    font-weight: 600;
}

.static-content strong {
    color: var(--color-accent);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    padding: var(--spacing-xl) 0;
}

.contact-info-item {
    margin-bottom: var(--spacing-md);
}

.contact-info-item h3 {
    color: var(--color-secondary);
    margin-bottom: var(--spacing-xs);
}

.contact-info-item p {
    color: var(--color-text-muted);
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}