:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --accent-color: #00ffff;
    --secondary-accent: #0055ff;
    --card-bg: #111111;
    --nav-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header & Logo */
header {
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 60px;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #222;
}

html {
    scroll-behavior: smooth;
}

.custom-logo {
    display: flex;
    align-items: center;
    font-family: 'Arial Black', sans-serif;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(45deg, var(--accent-color), var(--secondary-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.custom-logo img {
    height: 40px;
    width: auto;
    margin-right: 15px;
    filter: drop-shadow(0 0 5px rgba(0, 255, 255, 0.5));
    transition: filter 0.3s ease;
}

.custom-logo:hover {
    transform: scale(1.05);
}

.custom-logo:hover img {
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.8));
}

/* Scroll reveal animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.product-card:nth-child(1) {
    animation-delay: 0.1s;
}

.product-card:nth-child(2) {
    animation-delay: 0.15s;
}

.product-card:nth-child(3) {
    animation-delay: 0.2s;
}

.product-card:nth-child(4) {
    animation-delay: 0.25s;
}

.product-card:nth-child(5) {
    animation-delay: 0.3s;
}

.product-card:nth-child(6) {
    animation-delay: 0.35s;
}

.product-card:nth-child(7) {
    animation-delay: 0.4s;
}

.product-card:nth-child(8) {
    animation-delay: 0.45s;
}

.product-card:nth-child(9) {
    animation-delay: 0.5s;
}

.product-card:nth-child(10) {
    animation-delay: 0.55s;
}

.product-card:nth-child(11) {
    animation-delay: 0.6s;
}

.product-card:nth-child(12) {
    animation-delay: 0.65s;
}

.top-icons {
    display: flex;
    gap: 25px;
    align-items: center;
}

.top-icons a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.top-icons a:hover {
    opacity: 1;
}

/* Main Content */
main {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 40px;
}

.page-title {
    font-size: 32px;
    background: linear-gradient(45deg, var(--accent-color), var(--secondary-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
    text-align: center;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #222;
    padding-bottom: 20px;
}

.sort-select {
    background: #111;
    border: 1px solid #333;
    color: #fff;
    padding: 10px 15px;
    border-radius: 4px;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
}

.product-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #222;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent-color);
    box-shadow: 0 15px 40px rgba(0, 255, 255, 0.15);
}

.product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent,
            rgba(0, 255, 255, 0.1),
            transparent);
    transition: all 0.6s;
}

.product-card:hover::after {
    left: 100%;
}

.product-image {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 4px;
    background: #0a0a0a;
}

.badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #000;
    color: #fff;
    border: 1px solid var(--accent-color);
    padding: 4px 10px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
}

.product-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    min-height: 44px;
}

.product-price {
    font-size: 18px;
    color: #ddd;
    margin-bottom: 20px;
    font-weight: 300;
}

.btn-details {
    display: block;
    width: 100%;
    border: 1px solid var(--accent-color);
    background: transparent;
    color: var(--accent-color);
    padding: 12px;
    text-align: center;
    text-decoration: none;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-details::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--accent-color);
    transition: all 0.5s;
    z-index: -1;
    transform: translate(-50%, -50%) rotate(45deg);
}

.btn-details:hover {
    color: #000;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
}

.btn-details:hover::before {
    width: 150%;
    height: 500%;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        padding: 0 20px;
    }

    nav ul {
        display: none;
    }

    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* Modal Custom Styles */
.swal2-popup.premium-modal {
    border: 1px solid #222 !important;
    box-shadow: 0 0 50px rgba(0, 0, 0, 1) !important;
    padding: 2em !important;
}

.modal-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    text-align: left;
}

.modal-image-col img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #222;
    background: #0a0a0a;
}

.modal-info-col h4 {
    color: var(--accent-color);
    font-size: 24px;
    margin-bottom: 5px;
}

.modal-price {
    font-size: 20px;
    font-weight: 300;
    color: #fff;
    margin-bottom: 20px;
}

.modal-specs {
    font-size: 13px;
    color: #bbb;
    line-height: 1.8;
}

.modal-specs p {
    margin-bottom: 8px;
}

.modal-specs strong {
    color: #fff;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
}

.modal-footer-badges {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #222;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 10px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

@media (max-width: 650px) {
    .modal-content-wrapper {
        grid-template-columns: 1fr;
    }
}

.modern-swal-confirm {
    background: linear-gradient(45deg, var(--accent-color), var(--secondary-accent)) !important;
    border: none !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    padding: 15px 35px !important;
    border-radius: 50px !important;
    transition: all 0.3s !important;
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.3) !important;
    color: #000 !important;
}

.modern-swal-confirm:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(0, 255, 255, 0.5) !important;
}

/* Cart & Form Styles */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    color: #fff;
    font-size: 14px;
}

.cart-table th,
.cart-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #222;
}

.cart-table th {
    text-transform: uppercase;
    font-size: 11px;
    color: #666;
    letter-spacing: 1px;
}

.checkout-form-container {
    text-align: left;
    padding: 10px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 12px;
    color: #888;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 12px;
    color: #fff;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
}

.checkout-summary {
    background: #0a0a0a;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px dashed #333;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 14px;
}