/* ===== RESPONSIVE DESIGN WITH GAMING THEME ===== */

/* ===== TABLET - 768px and below ===== */
@media (max-width: 768px) {
    /* Navbar */
    .nav-container {
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px 15px;
    }

    .nav-logo {
        font-size: 18px;
        flex: 0 0 auto;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, rgba(10, 14, 39, 0.98) 0%, rgba(5, 8, 18, 0.98) 100%);
        flex-direction: column;
        padding: 0;
        gap: 0;
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
        z-index: 1000;
        border-bottom: 2px solid var(--primary-color);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        padding: 0;
        border-bottom: 1px solid rgba(0, 212, 255, 0.1);
        width: 100%;
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-link {
        display: block;
        padding: 15px 20px;
        border-radius: 0;
        border-bottom: none !important;
        color: var(--text-light);
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(0, 212, 255, 0.1);
        color: var(--primary-color);
    }

    .nav-link::after {
        display: none;
    }

    .search-container {
        flex: 1;
        order: -1;
        margin-bottom: 10px;
        width: 100%;
    }

    .search-input {
        font-size: 14px;
    }

    .hamburger {
        display: flex;
    }

    .hamburger span {
        background: var(--primary-color);
    }

    .cart-icon {
        order: 1;
    }

    /* Hero Carousel */
    .hero-carousel {
        height: 350px;
    }

    .carousel-content h2 {
        font-size: 32px;
        margin-bottom: 12px;
    }

    .carousel-content p {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .carousel-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .carousel-btn.prev {
        left: 15px;
    }

    .carousel-btn.next {
        right: 15px;
    }

    /* Categories Grid */
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .category-card {
        border-radius: 8px;
    }

    .category-card img {
        height: 150px;
    }

    .category-card h3 {
        padding: 12px;
        font-size: 13px;
    }

    /* Products Grid */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .product-card {
        border-radius: 8px;
    }

    .product-image {
        height: 180px;
    }

    .product-info {
        padding: 12px;
    }

    .product-name {
        font-size: 14px;
    }

    .product-brand {
        font-size: 11px;
    }

    .product-price {
        font-size: 16px;
    }

    .product-btn-group {
        gap: 8px;
    }

    .product-btn {
        padding: 10px !important;
        font-size: 12px !important;
    }

    /* Products Filter Section */
    .products-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .filter-section {
        padding: 15px;
        order: 2;
    }

    .filter-group {
        padding: 12px;
        margin-bottom: 15px;
    }

    .filter-group h4 {
        font-size: 13px;
    }

    /* Forms */
    .form-group {
        margin-bottom: 15px;
    }

    .form-group label {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 10px 12px;
        font-size: 14px;
        border-radius: 6px;
    }

    /* Footer */
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .footer-column {
        text-align: left;
    }

    .social-links {
        justify-content: flex-start;
        gap: 10px;
    }

    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 8px;
    }

    .newsletter-form input {
        padding: 8px 12px;
    }

    .newsletter-form button {
        padding: 8px 12px;
    }

    /* Section Title */
    .section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stat-card {
        padding: 20px;
    }

    .stat-number {
        font-size: 36px;
    }

    .stat-card p {
        font-size: 14px;
    }

    /* Checkout */
    .checkout-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .order-summary {
        position: static;
        top: auto;
    }

    .cart-item {
        padding: 15px;
        gap: 12px;
    }

    .cart-item-image {
        width: 100px;
        height: 100px;
    }

    /* PC Builder */
    .builder-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .build-summary {
        position: static;
        top: auto;
    }

    .component-category {
        padding: 20px;
    }

    .component-category h3 {
        font-size: 16px;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .contact-form {
        padding: 20px;
    }

    .info-box {
        padding: 20px;
    }

    /* FAQ */
    .faq-tabs {
        gap: 8px;
        margin-bottom: 30px;
    }

    .faq-tab-btn {
        padding: 10px 15px;
        font-size: 12px;
    }

    .faq-question {
        padding: 15px;
        font-size: 14px;
    }

    .faq-answer-text {
        font-size: 13px;
    }
}

/* ===== MOBILE - 480px and below ===== */
@media (max-width: 480px) {
    /* Navbar */
    .nav-container {
        flex-wrap: wrap;
        gap: 8px;
        padding: 8px 10px;
    }

    .nav-logo {
        font-size: 14px;
        flex: 1;
    }

    .cart-icon {
        flex: 0 0 auto;
        font-size: 14px;
    }

    .cart-icon a {
        font-size: 18px;
    }

    .cart-icon span {
        width: 18px;
        height: 18px;
        font-size: 10px;
    }

    .hamburger {
        display: flex;
        gap: 4px;
    }

    .hamburger span {
        width: 18px;
        height: 2px;
    }

    .search-container {
        order: -1;
        width: 100%;
        margin-bottom: 8px;
        padding: 0 5px;
    }

    .search-input {
        font-size: 12px;
        padding: 8px 12px;
    }

    /* Container */
    .container {
        padding: 0 12px;
    }

    /* Headings */
    h1 {
        font-size: 22px;
        margin-bottom: 15px;
    }

    h2 {
        font-size: 18px;
        margin-bottom: 12px;
    }

    h3 {
        font-size: 14px;
    }

    /* Hero Carousel */
    .hero-carousel {
        height: 280px;
    }

    .carousel-content h2 {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .carousel-content p {
        font-size: 12px;
        margin-bottom: 15px;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .carousel-btn.prev {
        left: 10px;
    }

    .carousel-btn.next {
        right: 10px;
    }

    /* Categories */
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .category-card {
        border-radius: 6px;
    }

    .category-card img {
        height: 130px;
    }

    .category-card h3 {
        padding: 10px;
        font-size: 11px;
    }

    /* Products Grid */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .product-image {
        height: 150px;
    }

    .product-info {
        padding: 10px;
    }

    .product-name {
        font-size: 12px;
        line-height: 1.3;
    }

    .product-brand {
        font-size: 10px;
        margin-bottom: 6px;
    }

    .product-price {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .product-btn-group {
        gap: 6px;
    }

    .product-btn {
        padding: 8px !important;
        font-size: 11px !important;
    }

    /* Section Title */
    .section-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    /* Forms */
    .form-group label {
        font-size: 11px;
        margin-bottom: 6px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 8px 10px;
        font-size: 12px;
        margin-bottom: 12px;
        border-radius: 4px;
    }

    .form-group textarea {
        min-height: 100px;
    }

    button {
        padding: 10px 12px !important;
        font-size: 12px !important;
    }

    /* Checkout */
    .checkout-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .cart-item {
        padding: 12px;
        gap: 10px;
        flex-direction: column;
    }

    .cart-item-image {
        width: 100%;
        max-width: 120px;
        height: 120px;
        margin: 0 auto;
    }

    .cart-item-name {
        font-size: 13px;
    }

    .cart-item-price {
        font-size: 14px;
    }

    .order-summary {
        padding: 20px;
    }

    .summary-line {
        padding: 10px 0;
        font-size: 12px;
    }

    .total-amount {
        font-size: 18px;
    }

    .qty-btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .qty-input {
        width: 40px;
        font-size: 12px;
    }

    /* Footer */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .footer-column {
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
        margin-bottom: 10px;
    }

    .footer-logo img {
        width: 30px;
        height: 30px;
    }

    .footer-column h3,
    .footer-column h4 {
        font-size: 13px;
    }

    .footer-column p,
    .footer-column a {
        font-size: 11px;
    }

    .social-links {
        justify-content: center;
        gap: 8px;
        margin-top: 10px;
    }

    .social-links a {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 6px;
    }

    .newsletter-form input {
        padding: 8px;
        font-size: 11px;
    }

    .newsletter-form button {
        padding: 8px;
        font-size: 11px;
    }

    /* Stats */
    .stat-card {
        padding: 15px;
    }

    .stat-number {
        font-size: 28px;
    }

    .stat-card p {
        font-size: 12px;
    }

    /* PC Builder */
    .builder-title h1 {
        font-size: 20px;
    }

    .component-category {
        padding: 15px;
        margin-bottom: 12px;
    }

    .component-category h3 {
        font-size: 13px;
        gap: 8px;
    }

    .component-icon {
        font-size: 16px;
    }

    .component-select {
        padding: 10px;
        font-size: 12px;
    }

    .selected-component {
        padding: 8px;
        font-size: 11px;
    }

    .build-list {
        max-height: 250px;
    }

    .build-item {
        padding: 8px;
        font-size: 11px;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-form {
        padding: 15px;
    }

    .contact-form h2 {
        font-size: 16px;
    }

    .info-box {
        padding: 15px;
        margin-bottom: 12px;
    }

    .info-icon {
        font-size: 20px;
    }

    .info-box h3 {
        font-size: 13px;
    }

    .info-box p,
    .info-box a {
        font-size: 12px;
    }

    /* FAQ */
    .faq-title h1 {
        font-size: 20px;
    }

    .faq-tabs {
        flex-direction: column;
        gap: 5px;
        margin-bottom: 20px;
    }

    .faq-tab-btn {
        width: 100%;
        padding: 10px 12px;
        font-size: 11px;
        text-align: left;
    }

    .faq-question {
        padding: 12px;
        font-size: 12px;
    }

    .faq-question-text {
        gap: 8px;
    }

    .faq-icon {
        font-size: 14px;
        min-width: 14px;
    }

    .faq-toggle {
        font-size: 14px;
    }

    .faq-answer-text {
        padding-left: 12px;
        font-size: 11px;
        line-height: 1.5;
    }

    .terms-section {
        padding: 15px;
        margin-top: 15px;
    }

    .terms-content {
        font-size: 11px;
    }

    .terms-content h3 {
        margin-top: 12px;
        margin-bottom: 8px;
        font-size: 12px;
    }

    .terms-content li {
        padding: 5px 0 5px 20px;
    }

    /* Loader */
    .loader {
        width: 30px;
        height: 30px;
        border-width: 3px;
    }

    /* Alert */
    .alert {
        padding: 10px 12px;
        font-size: 11px;
    }

    /* Section Padding */
    section {
        padding: 40px 0;
    }
}

/* ===== EXTRA SMALL - 375px and below ===== */
@media (max-width: 375px) {
    .nav-logo {
        font-size: 12px;
    }

    h1 {
        font-size: 18px;
    }

    .carousel-content h2 {
        font-size: 16px;
    }

    .carousel-content p {
        font-size: 10px;
    }

    .product-btn {
        padding: 6px !important;
        font-size: 9px !important;
    }

    .form-group input,
    .form-group textarea {
        font-size: 11px;
    }

    .total-amount {
        font-size: 16px;
    }

    .section-title {
        font-size: 18px;
    }

    .stat-number {
        font-size: 24px;
    }
}

/* ===== LANDSCAPE MODE ===== */
@media (max-width: 768px) and (orientation: landscape) {
    section {
        padding: 30px 0;
    }

    .hero-carousel {
        height: 250px;
    }

    .carousel-content h2 {
        font-size: 18px;
    }

    .carousel-content p {
        font-size: 12px;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}
