@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@200;300;400;500;700;900&family=Rubik:wght@300;400;500;700;900&display=swap');


* {
    color: #E4E4E4;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
    margin: 0;
}

body {
    background-color: #18181B;
}

body::-webkit-scrollbar {
    width: 15px; 
}
  
body::-webkit-scrollbar-track {
    background: #18181B; 
}
  
body::-webkit-scrollbar-thumb {
    background-color: #212124; 
    border-radius: 20px; 
    border: 3px solid #333338; 
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 45px;
}
 /* ебаное лого похуй потом пофиксим */ 
.site-logo {
  width: 100px;  
  height: auto;  
  max-width: 100%; 
}


.wrapper {
    display: flex;
}

.wrapper-1 {
    display: flex;
    margin: 0 auto;
}

@media (max-width:1600px) {
   .wrapper-1 {
    margin: 0px 50px;
   }
}

@media (max-width:450px) {
    .wrapper-1 {
     margin: 0px;
    }
}

aside {
    max-width: 206px;
    margin-top: 100px;
}

.void-3 {
    width: 200px;
    margin-top: 100px;
    display: flex;
}

.cart {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    position: sticky;
    top: 10%;
    height: 60px;
}

.cart-img, .cart-goods {
    margin: 0 auto;
}

.cart-img:hover + .cart-goods{
    display: block;
}

/* .cart-goods {
    display: none;
} */

.cart-img img {
    height: 60px;
}

.cart-img {
    display: flex;
}

.cart-img p {
    margin-left: -20px;
    padding: 10px;
    max-height: 10px;
    border-radius: 500px;
}



.cart-goods {
    margin-top: 10px;
}

.cart li {
    list-style-type: none;
}

.goods-card {
    width: 320px;
    height: 120px;
    background-color: #212124;
    padding: 10px;
    display: flex;
    margin-bottom: 10px;
}

.goods-img {
    margin: auto 0;
    height: 100px;
    width: 100px;
    border-radius: 5px;
    background-color: white;
}

.goods-img img {
    max-height: 100px;
    max-width: 100px;
    border-radius: 5px;
}

.goods-text {
    margin: auto 5px;
    display: flex;
    flex-direction: column;
}

.goods-card h2 {
    font-size: 16px;
}

.goods-card h3 {
    font-size: 14px;
}

.amount {
    margin: auto 0 0 auto;
    display: flex;
    flex-direction: column;
}

.amount span {
    margin: auto;
}

.amount button {
    height: 30px;
    width: 30px;
    border-radius: 5px;
    color: black;
}


.move-container {
    display: flex;
    flex-direction: column;
    position: sticky;
    max-width: 206px;
    margin-top: 100px;
    top: 10%;
}

@media (max-width: 1600px) {
    .move-container {
        max-width: 150px;
    }
}

@media (max-width: 600px) {
    .move-container {
        max-width: 50px;
    }
    .move-container a{
        font-size: 12px;
    }
}

aside a{
    text-decoration: none;
    padding: 3px 8px;
    margin-bottom: 7px;
    color: #E4E4E4;
    transition: .5s;
    border-radius: 5px;
    font-size: 16px;
}

aside a:hover{
    background-color: #212124;
    transition: .5s;
}

/* Main */

/* main padding must be 50, but it work not well for some reason */

main {
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    padding: 0 45px;
    margin-top: 100px;
}

@media (max-width: 450px) {
    main {
        margin: 0 10px;
        padding: 0 10px;
    }
}

.warning {
    background-color: #212124;
    border: solid 1px #333338;
    padding: 10px;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    text-align: center;
}

.warning span {
    margin: auto;
    font-size: 26px;
    color: yellow;
}

.category-container:not(:last-child) {
    margin-bottom: 80px;
}

.category-container h2 {
    font-size: 32px;
    margin-bottom: 26px;
}

.cards-container {
    display: flex;
    gap: 50px;

    flex-wrap: wrap;
    box-sizing: content-box;
}

.card {
    background-color: #212124;
    flex-grow: 1;
    border-radius: 15px;
    padding: 34px 35px;
    display: flex;
    flex-direction: column;
    border: solid 1px #212124;
    transition: .5s;
    margin-bottom: 20px;
    
}

.card:hover {
    border: solid 1px #333338;
    transition: .5s;
}

.card-img {
    /* width: 230px; */
    width: 100%;
    height: 230px;
    margin-bottom: 18px;
    display: flex;
}

.card-img img {
    margin: auto;
    max-width: 230px;
    max-height: 230px;
    object-fit: contain;
}

.card h3 {
    font-size: 24px;
    margin-bottom: 18px;
    display: flex;
    max-width: 230px;
}

.card p {
    font-size: 20px;
    margin-bottom: 18px;
    display: flex;
}

.card button {
    background-color: #73C398;
    cursor: pointer;
    width: 100%;
    padding: 12px 49px;
    border-radius: 8px;
    border: 0;
    font-size: 20px;
    transition: .5s;
    color: #333333;
    margin-top: auto;
}

@media (max-width:500px) {
    .card button {
        padding: 6px 25px;
    }
}

.card button img {
    margin-right: 11px;
}

.card button:hover{
    background-color: #8CEDB9;
    transition: .5s;
}



@media (max-width: 1016px) {
    .card {
        width: 100%;
        max-width: 100%;
    }
    .card h3, .card p{
        margin: 0 auto 18px auto;
    }
    .card-img {
        margin: 0 auto;
        max-width: 188px;
    }
    .card-img img {
        max-width: 188px;
    }
    .void-1, .void-2, .void-3, aside {
        display: none;
    }

    
}

/* CSS корзины */ 

.cart-sidebar {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 320px;
    background: #333333;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-sidebar.active {
    opacity: 1;
    visibility: visible;
}

.cart-header {
    background:#333338;
    padding: 15px 20px;
    border-radius: 15px 15px 0 0;
    border-bottom: 1px solid #333333;
}

.cart-header h3 {
    margin: 0;
    color: #ecf0f1;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-count-badge {
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: bold;
}

.cart-items-sidebar {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    max-height: 400px;
}

.cart-item-sidebar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.cart-item-sidebar:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-5px);
}

.cart-item-image {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    color: #ecf0f1;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 5px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price {
    color: #bdc3c7;
    font-size: 12px;
    margin: 0;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quantity-btn {
    background: rgba(52, 152, 219, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ecf0f1;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    background: rgba(52, 152, 219, 0.6);
    transform: scale(1.1);
}

.cart-item-quantity {
    color: #ecf0f1;
    font-size: 14px;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}

.remove-item-sidebar {
    background: rgba(231, 76, 60, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ecf0f1;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s ease;
}

.remove-item-sidebar:hover {
    background: rgba(231, 76, 60, 0.6);
    transform: scale(1.1);
}

.cart-footer {
    padding: 15px 20px;
    background: #333338;
    border-radius: 0 0 15px 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-total-sidebar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.total-label {
    color: #bdc3c7;
    font-size: 14px;
}

.total-amount {
    color: #2ecc71;
    font-size: 18px;
    font-weight: bold;
}

.checkout-btn-sidebar {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.checkout-btn-sidebar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

.checkout-btn-sidebar:disabled {
    background: #7f8c8d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}


.cart-items-sidebar::-webkit-scrollbar {
    width: 6px;
}

.cart-items-sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.cart-items-sidebar::-webkit-scrollbar-thumb {
    background: #333333;
    border-radius: 3px;
}

.cart-items-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(52, 152, 219, 0.8);
}

.discord-input-section {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.discord-label {
    display: block;
    color: #ecf0f1;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 600;
}

.discord-input {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: #ffffff; 
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.discord-input::placeholder {
    color: #a0aec0; 
    font-weight: 400;
}

.discord-input:focus {
    outline: none;
    border-color: #3498db;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3);
}

.discord-input:invalid {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.discord-hint {
    font-size: 12px;
    color: #cbd5e0;
    margin-top: 6px;
    line-height: 1.4;
}


.checkout-btn-sidebar:disabled {
    background: linear-gradient(135deg, #7f8c8d 0%, #95a5a6 100%) !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
    opacity: 0.7;
}

.checkout-btn-sidebar.cooldown {
    background: linear-gradient(135deg, #e67e22 0%, #f39c12 100%) !important;
}


.checkout-btn-sidebar {
    position: relative;
}

.checkout-btn-sidebar:hover::before {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #2c3e50;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1001;
    margin-bottom: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.checkout-btn-sidebar:hover::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #2c3e50;
    margin-bottom: 2px;
}

/* анимации */ 
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


.glow-btn {
    transition: all 0.3s ease;
}

.glow-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.5);
}


.lift-up {
    transition: transform 0.3s ease;
}

.lift-up:hover {
    transform: translateY(-3px);
}


.pulse-slow {
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.limit-reached {
    background-color: #e74c3c !important; 
    border-color: #e74c3c !important;
    color: white !important;
    animation: flash-red 0.5s ease-in-out;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
    cursor: not-allowed;
}

@keyframes flash-red {
    0% { transform: scale(1); background-color: #e74c3c; }
    50% { transform: scale(1.1); background-color: #c0392b; }
    100% { transform: scale(1); background-color: #e74c3c; }
}
