@import url('https://fonts.googleapis.com/css2?family=Metal+Mania&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Metal Mania", system-ui;
    background: linear-gradient(135deg, #000000 0%, #1a0033 50%, #000000 100%);
    color: #fff0fa;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('sources/background2.png') repeat;
    opacity: 0.5;
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    padding: 1rem;
    z-index: 100;
    border-bottom: 2px solid #c800ff;
    box-shadow: 0 4px 20px rgba(255, 20, 147, 0.3);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    /* Cambio de wrap a nowrap */
    padding: 1rem 0;
    gap: 1rem;
    width: 100%;
}

.logo {
    font-family: "Metal Mania", system-ui;
    font-size: 2rem;
    color: #ff1fae;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    min-width: max-content;
    /* Asegura que el logo mantenga su tamaño mínimo */
}

.logo img {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(255, 31, 174, 0.3);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.nav-links {
    display: flex;
    flex-wrap: nowrap;
    /* Cambio de wrap a nowrap */
    gap: 1.5rem;
    list-style: none;
    justify-content: center;
    flex: 1;
    align-items: center;
    /* Añadido para alineación vertical */
    min-width: 0;
    /* Permite que se encoja cuando sea necesario */
}

.nav-links a,
.nav-links .dropdown-toggle {
    color: #fff0fa;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    /* Padding más consistente */
    border-radius: 20px;
    font-family: "Metal Mania", system-ui;
    white-space: nowrap;
    display: flex;
    align-items: center;
    cursor: pointer;
    /* Añadido para dropdown-toggle */
}


.nav-links a:hover,
.nav-links .dropdown-toggle:hover {
    color: #ff1fae;
    background: rgba(255, 31, 174, 0.1);
    transform: scale(1.05);
}

/* Estilos para el menú desplegable */
.dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-links .dropdown {
    display: flex;
    align-items: center;
}

.dropdown-toggle {
    background: none;
    border: none;
    /* Los estilos se heredan de .nav-links a, .nav-links .dropdown-toggle */
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid #c800ff;
    border-radius: 10px;
    padding: 0.5rem 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(255, 31, 174, 0.2);
    list-style: none;
    margin: 0;
}


.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.8rem 1.2rem !important;
    color: #fff0fa !important;
    text-decoration: none;
    font-size: 1rem !important;
    font-weight: normal !important;
    transition: all 0.3s ease;
    border-radius: 0 !important;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background: rgba(255, 31, 174, 0.2) !important;
    color: #ff1fae !important;
    transform: none !important;
    padding-left: 1.5rem !important;
}

/* Ajuste para el scroll suave y compensar header fijo */
.category-section {
    scroll-margin-top: 120px;
    /* Ajusta según la altura de tu header */
}

.product-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.view-details-btn {
    flex: 1;
    padding: 0.8rem;
    background: linear-gradient(45deg, #4c1d95, #7c3aed);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.view-details-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 29, 149, 0.4);
}

.add-to-cart-btn {
    flex: 1;
}

.cart-icon {
    position: relative;
    background: #c800ff;
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 20, 147, 0.4);
    font-family: "Metal Mania", system-ui;
    flex-shrink: 0;
}

.cart-icon:hover {
    background: #ff1fae;
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ffe600;
    color: #000;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    font-family: "Metal Mania", system-ui;
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: #fff0fa;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Animación del botón hamburguesa cuando está activo */
.hamburger-active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
    background-color: #ff1fae;
}

.hamburger-active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
    background-color: #ff1fae;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 0;
}

.hero h1 {
    font-family: "Metal Mania", system-ui;
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    color: #fff0fa;
    text-transform: uppercase;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7), 0 0 10px #ff1fae;
    }

    to {
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7), 0 0 20px #ff1fae, 0 0 30px #ff1fae;
    }
}

.hero p {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    margin-bottom: 2rem;
    color: #fff0fa;
    font-family: "Metal Mania", system-ui;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: #ffe600;
    text-align: center;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Estilos para las categorías */
.category-section {
    margin-bottom: 4rem;
}

.category-title {
    font-family: "Metal Mania", system-ui;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: #fff0fa;
    text-align: center;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    border-bottom: 2px solid #c800ff;
    padding-bottom: 0.5rem;
}

/* Flexbox Grid para productos de categorías */
.category-products-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Para categorías con pocos productos, mantén el centrado */
.category-products-grid.center-few-products {
    justify-content: center;
}

.product-card {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #c800ff;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    font-family: "Metal Mania", system-ui;
    /* Flexbox para el tamaño de la tarjeta */
    flex: 1 1 280px;
    /* Crece, se encoge, base de 280px */
    max-width: 320px;
    /* Máximo ancho */
    min-width: 260px;
    /* Mínimo ancho */
    display: flex;
    flex-direction: column;
}

.product-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 31, 174, 0.12), transparent);
    transition: all 0.5s;
    transform: rotate(45deg);
    opacity: 0;
}

.product-card:hover::before {
    opacity: 1;
    animation: shimmer 1.5s ease-in-out;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: #ff1fae;
    box-shadow: 0 10px 30px rgba(255, 31, 174, 0.3);
}

.product-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #c800ff, #ff1fae);
    border-radius: 10px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    font-family: "Metal Mania", system-ui;
    flex-shrink: 0;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
    background: none;
    font-size: initial;
    font-family: "Metal Mania", system-ui;
}

.product-card .product-image.has-image {
    background: none;
    font-size: 0;
}

.product-image.emoji {
    background: none;
    font-size: 4rem;
}

.product-image img,
.product-image.emoji {
    animation: twinkle 2s infinite;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Contenido de la tarjeta con flex para empujar el botón hacia abajo */
.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-name {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: #ff1fae;
    margin-bottom: 0.5rem;
    font-weight: bold;
    font-family: "Metal Mania", system-ui;
}

.product-description {
    color: #fff;
    margin-bottom: 1rem;
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    line-height: 1.4;
    font-family: "Metal Mania", system-ui;
    flex: 1;
}

.product-price {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    color: #ffe600;
    font-weight: bold;
    margin-bottom: 1rem;
    font-family: "Metal Mania", system-ui;
}

.product-price .original-price {
    text-decoration: line-through;
    color: #c800ff;
    font-size: 1rem;
    margin-right: 0.5rem;
    font-family: "Metal Mania", system-ui;
}

.product-price .discount-badge {
    background-color: #ffe600;
    color: #c800ff;
    padding: 0.2em 0.5em;
    border-radius: 5px;
    font-size: 0.7em;
    vertical-align: super;
    font-family: "Metal Mania", system-ui;
}

/* Productos */
.product-card .offer-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, #ffe600, #ff1fae);
    color: #c800ff;
    padding: 0.3em 0.8em;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: bold;
    font-family: "Metal Mania", system-ui;
    box-shadow: 0 2px 8px rgba(255, 31, 174, 0.2);
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.add-to-cart {
    background: linear-gradient(135deg, #ff1fae, #c800ff);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    position: relative;
    overflow: hidden;
    font-family: "Metal Mania", system-ui;
    flex-shrink: 0;
    margin-top: auto;
}

.add-to-cart::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 31, 174, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
}

.add-to-cart:hover::before {
    width: 100%;
    height: 100%;
}

.add-to-cart:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 31, 174, 0.4);
}

/* Cart Modal */
.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.cart-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #000000, #1a0033);
    border: 2px solid #c800ff;
    border-radius: 20px;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    font-family: "Metal Mania", system-ui;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    gap: 1rem;
}

.cart-title {
    font-family: "Metal Mania", system-ui;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: #ff1fae;
    flex: 1;
}

.close-cart {
    background: none;
    border: none;
    color: #fff0fa;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Metal Mania", system-ui;
    flex-shrink: 0;
}

.close-cart:hover {
    color: #ff1fae;
    transform: scale(1.2);
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 1rem;
    border-bottom: 1px solid #c800ff;
    margin-bottom: 1rem;
    font-family: "Metal Mania", system-ui;
    gap: 1rem;
}

.cart-item-info {
    flex: 1;
    min-width: 150px;
}

.cart-item-name {
    color: #fff0fa;
    font-weight: bold;
    margin-bottom: 0.5rem;
    font-family: "Metal Mania", system-ui;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.cart-item-price {
    color: #ffe600;
    font-weight: bold;
    font-family: "Metal Mania", system-ui;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.quantity-btn {
    background: #c800ff;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    font-family: "Metal Mania", system-ui;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: #ff1fae;
    transform: scale(1.1);
}

.quantity {
    font-weight: bold;
    color: #fff0fa;
    min-width: 20px;
    text-align: center;
    font-family: "Metal Mania", system-ui;
}

.cart-total {
    text-align: center;
    margin: 2rem 0;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: #ffe600;
    font-weight: bold;
    font-family: "Metal Mania", system-ui;
}

.checkout-btn {
    width: 100%;
    background: linear-gradient(135deg, #ffe600, #ff1fae);
    color: #000;
    border: none;
    padding: 1rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    transition: all 0.3s ease;
    font-family: "Metal Mania", system-ui;
}

.checkout-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(255, 230, 0, 0.4);
}

.empty-cart {
    text-align: center;
    color: #c800ff;
    padding: 2rem;
    font-family: "Metal Mania", system-ui;
    font-size: clamp(1rem, 2vw, 1.1rem);
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.95);
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 2px solid #c800ff;
    font-family: "Metal Mania", system-ui;
}

.footer-content {
    color: #c800ff;
    font-family: "Metal Mania", system-ui;
    padding: 0 1rem;
}

.footer-content h3 {
    color: #ff1fae;
    margin-bottom: 1rem;
    font-family: "Metal Mania", system-ui;
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
}

.footer-content p {
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    line-height: 1.4;
}

@media (max-width: 985px) {
    .container {
        padding: 0 15px;
    }

    nav {
        gap: 0.8rem;
    }

    .logo {
        font-size: 1.4rem;
        padding: 1rem 0rem;
    }

    .logo img {
        width: 3.5rem;
        height: 3.5rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a,
    .nav-links .dropdown-toggle {
        font-size: 1.1rem;
        padding: 0.4rem 0.8rem;
    }

    .cart-icon {
        padding: 0.7rem;
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0.8rem 1rem;
    }

    nav {
        position: relative;
        padding: 0.5rem 0;
    }

    .logo {
        font-size: 1.6rem;
        padding: 0.5rem 0;
    }

    /* Estilos mejorados para el menú hamburguesa */
    .hamburger-menu {
        display: flex;
        order: 2;
        margin-left: auto;
        margin-right: 1rem;
    }

    /* Ocultar navegación desktop y mostrar hamburguesa */
    .nav-links {
        display: none;
    }

    .cart-icon {
        order: 3;
        /* Posicionar al final */
    }

    /* Menú móvil mejorado */
    .mobile-menu-container {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(15px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: left 0.4s ease;
        z-index: 999;
        padding: 2rem;
        overflow-y: auto;
    }

    .mobile-menu-active {
        left: 0;
    }

    /* Estilos para elementos del menú móvil */
    .mobile-menu-container .nav-links {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 400px;
        gap: 1rem;
        align-items: center;
    }

    .mobile-menu-container .nav-links li {
        width: 100%;
        text-align: center;
    }

    .mobile-menu-container .nav-links a,
    .mobile-menu-container .dropdown-toggle {
        font-size: 1.4rem;
        padding: 1rem 2rem;
        text-align: center;
        width: 100%;
        border-radius: 10px;
        border: 2px solid rgba(200, 0, 255, 0.3);
        background: rgba(0, 0, 0, 0.5);
        display: block;
    }

    .mobile-menu-container .nav-links a:hover,
    .mobile-menu-container .dropdown-toggle:hover {
        border-color: #c800ff;
        background: rgba(255, 31, 174, 0.2);
        transform: none;
    }

    /* Dropdown específico para móvil */
    .mobile-menu-container .dropdown {
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    .mobile-menu-container .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin-top: 1rem;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        background: rgba(20, 0, 40, 0.9);
        border: 1px solid rgba(200, 0, 255, 0.5);
    }

    .mobile-menu-container .dropdown.active .dropdown-menu,
    .mobile-menu-container .dropdown:hover .dropdown-menu {
        max-height: 400px;
    }

    .mobile-menu-container .dropdown-menu a {
        font-size: 1.2rem !important;
        padding: 0.8rem 1.5rem !important;
        border: none !important;
        border-top: 1px solid rgba(200, 0, 255, 0.3) !important;
        background: transparent !important;
    }

    .mobile-menu-container .dropdown-menu a:hover {
        background: rgba(255, 31, 174, 0.2) !important;
        border-color: rgba(200, 0, 255, 0.3) !important;
    }

    .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .dropdown-menu a {
        display: block;
        padding: 0.8rem 1.2rem !important;
        color: #fff0fa !important;
        text-decoration: none;
        font-size: 1rem !important;
        font-weight: normal !important;
        transition: all 0.3s ease;
        border-radius: 0 !important;
        white-space: nowrap;
        background: none !important;
    }

    .dropdown-menu a:hover {
        background: rgba(255, 31, 174, 0.2) !important;
        color: #ff1fae !important;
        transform: none !important;
        padding-left: 1.5rem !important;
        scale: none !important;
    }
}


@media (max-width: 480px) {
    .dropdown-menu {
        min-width: 150px;
    }

    .dropdown-menu a {
        font-size: 0.8rem !important;
        padding: 0.5rem 0.8rem !important;
    }

    .dropdown-menu a:hover {
        padding-left: 1rem !important;
    }
}


@media (max-width: 548px) {
    header {
        padding: 0.5rem;
    }

    nav {
        gap: 0.5rem;
    }

    .logo {
        font-size: 1.5rem;
        gap: 5px;
    }

    .logo img {
        width: 2.8rem;
        height: 2.8rem;
    }

    .hamburger-menu {
        width: 28px;
        height: 28px;
    }

    .cart-icon {
        padding: 0.6rem;
        font-size: 1rem;
    }
}

@media (max-width: 420px) {
    .logo {
        font-size: 1rem;
    }

    .logo img {
        width: 2.5rem;
        height: 2.5rem;
    }

    .nav-links a,
    .nav-links .dropdown-toggle {
        font-size: 1rem;
        padding: 0.4rem 0.6rem;
    }

    .cart-icon {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .hamburger-menu {
        width: 26px;
        height: 26px;
    }
}

@media (max-width: 335px) {
    .logo {
        font-size: 0.9rem;
    }

    .logo img {
        width: 2.2rem;
        height: 2.2rem;
    }

    .nav-links a,
    .nav-links .dropdown-toggle {
        font-size: 0.9rem;
        padding: 0.3rem 0.5rem;
    }

    .cart-icon {
        padding: 0.4rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 280px) {
    .logo {
        font-size: 1rem;
    }

    .logo img {
        width: 2rem;
        height: 2rem;
    }

    .nav-links a,
    .nav-links .dropdown-toggle {
        font-size: 0.8rem;
        padding: 0.2rem 0.4rem;
    }

    .cart-icon {
        padding: 0.3rem;
        font-size: 0.7rem;
    }
}