* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

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

.header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.header h1 {
    font-size: 3em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.header p {
    font-size: 1.2em;
    opacity: 0.9;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

.carousel-container {
    position: relative;
    margin-bottom: 20px;
    border-radius: 15px;
    overflow: hidden;
    background: #f8f9fa;
}

.carousel {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.carousel-slide img:hover {
    transform: scale(1.05);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel-nav:hover {
    background: rgba(0,0,0,0.9);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

.product-info h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
}

.product-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Filters Container */
.filters-container {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.form-label {
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
}

/* Categories Section */
.categories-section {
    margin: 15px 0;
    min-height: 35px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.category-tag {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    border: 2px solid rgba(255,255,255,0.3);
}

.no-category {
    color: #888;
    font-style: italic;
    font-size: 0.9em;
    padding: 6px 12px;
    background: rgba(0,0,0,0.1);
    border-radius: 15px;
}

/* Order Section */
.order-section {
    margin-top: 20px;
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.order-now-btn {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9em;
}

.order-now-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
    background: linear-gradient(45deg, #218838, #1dd1a1);
}

.order-now-btn:active {
    transform: translateY(0);
}

.no-products {
    text-align: center;
    color: white;
    font-size: 1.2em;
    margin-top: 50px;
    padding: 40px;
}

.loading {
    text-align: center;
    color: white;
    font-size: 1.2em;
    margin-top: 50px;
    padding: 40px;
}

.loading-spinner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.loading-spinner-large {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading p {
    margin: 0;
    font-size: 1.2em;
    font-weight: 500;
}

.loading small {
    opacity: 0.8;
    font-size: 0.9em;
}

.product-id {
    font-size: 0.9em;
    color: #888;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    /* Fix navbar overlap on mobile */
    .cyber-main {
        margin-top: 300px !important;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .header h1 {
        font-size: 2em;
    }
    
    .carousel {
        height: 200px;
    }

    .filters-container .row {
        gap: 15px;
    }

    .categories-section {
        justify-content: center;
    }

    .category-tag {
        font-size: 0.8em;
        padding: 4px 10px;
    }

    .order-now-btn {
        width: 100%;
        margin-top: 10px;
    }

    /* Mobile pagination adjustments */
    .pagination .page-link {
        padding: 0.5rem 0.7rem;
        font-size: 0.9rem;
        margin: 0 1px;
    }

    .products-info {
        padding: 10px;
        font-size: 0.9rem;
    }

    .products-info .d-flex {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .quick-jump .d-inline-flex {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .quick-jump .form-control-sm {
        width: 100px !important;
    }
}

/* Modal Styles */
.modal-dialog {
    max-width: 90vw;
    margin: 1.75rem auto;
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: none;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

.modal-header {
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding: 1.5rem;
}

.modal-title {
    font-weight: 600;
    color: #333;
}

.btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    opacity: 0.7;
    color: #000;
    width: 1em;
    height: 1em;
    z-index: 1000;
    position: relative;
}

.btn-close:hover {
    opacity: 1;
    color: #000;
}

.btn-close:focus {
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.modal-carousel {
    position: relative;
    width: 100%;
    height: 70vh;
    overflow: hidden;
    border-radius: 0px;
}

.modal-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.modal-carousel-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.modal-carousel-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0px;
}

.modal-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    z-index: 10;
    transition: all 0.3s ease;
}

.modal-carousel-nav:hover {
    background: rgba(0,0,0,0.9);
    transform: translateY(-50%) scale(1.1);
    color: white;
}

.modal-carousel-prev {
    left: 20px;
}

.modal-carousel-next {
    right: 20px;
}

.modal-carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.modal-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0,0,0,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.modal-indicator.active {
    background: #667eea;
    transform: scale(1.2);
}

.modal-image-counter {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    z-index: 10;
}

/* Order Modal Styles */
.order-modal .modal-dialog {
    max-width: 600px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Variant Selection Styling */
.selected-variant-info {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1rem;
    border-left: 4px solid #667eea;
}

.variant-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.variant-title {
    font-weight: 600;
    color: #333;
}

.variant-price {
    font-weight: 700;
    color: #28a745;
    font-size: 1.1em;
}

.form-select {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    background-color: #fff;
}

.form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-select:disabled {
    background-color: #f8f9fa;
    opacity: 0.7;
    cursor: not-allowed;
}

.order-summary {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.place-order-btn {
    width: 100%;
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1em;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.place-order-btn:hover {
    background: linear-gradient(45deg, #218838, #1dd1a1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}

.place-order-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Products Info Styling */
.products-info {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    padding: 15px;
    backdrop-filter: blur(10px);
    margin-bottom: 20px;
}

/* Pagination Styling */
.pagination {
    margin: 0;
}

.pagination .page-link {
    color: #667eea;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(102, 126, 234, 0.3);
    padding: 0.75rem 1rem;
    margin: 0 2px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.pagination .page-link:hover {
    color: #fff;
    background-color: #667eea;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.pagination .page-item.active .page-link {
    background-color: #667eea;
    border-color: #667eea;
    color: #fff;
    font-weight: 600;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    background-color: rgba(255, 255, 255, 0.5);
    border-color: rgba(108, 117, 125, 0.3);
}

/* Quick Jump Styling */
.quick-jump {
    margin-top: 1rem;
}

.quick-jump .form-control-sm {
    border-radius: 6px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.quick-jump .form-control-sm:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.quick-jump .btn-outline-primary {
    border-color: #667eea;
    color: #667eea;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.quick-jump .btn-outline-primary:hover {
    background-color: #667eea;
    border-color: #667eea;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(102, 126, 234, 0.3);
}

/* Bootstrap-style button additions */
.btn {
    display: inline-block;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    border-radius: 0.375rem;
    transition: all 0.15s ease-in-out;
}

.btn-info {
    background-color: #0dcaf0;
    border-color: #0dcaf0;
    color: #000;
}

.btn-info:hover {
    background-color: #31d2f2;
    border-color: #25cff2;
    color: #000;
}

.btn-info:disabled {
    background-color: #0dcaf0;
    border-color: #0dcaf0;
    opacity: 0.65;
}

.loading-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1rem;
    display: none;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1rem;
    display: none;
}

/* ===== ADDITIONAL MOBILE RESPONSIVENESS FOR NAVBAR ===== */

/* Tablet breakpoint */
@media (max-width: 992px) {
    .cyber-main {
        margin-top: 200px !important;
    }
}

/* Small mobile breakpoint */
@media (max-width: 480px) {
    .cyber-main {
        margin-top: 280px !important;
    }
}