body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fff;
    font-family: "Source Sans 3", sans-serif;
    font-optical-sizing: auto;
    font-weight: <weight>;
    font-style: normal;
}

header {
    text-align: center;
    padding: 90px;
    background-image: url('../assets/main1.jpg');
    background-size: cover;
    background-position: center;
}

h1 {
    font-family: "Rubik Wet Paint", system-ui;
    font-weight: 200;
    font-style: normal;
}

nav {
    background-color: #333;
    overflow: hidden;
    display: flex;
    justify-content: center;
    padding: 10px 0;
}

nav a {
    color: white;
    text-align: center;
    padding: 14px 20px;
    text-decoration: none;
}

nav a:hover {
    background-color: #ddd;
    color: black;
}

nav a.active {
    background-color: #555;
    color: white;
    border-bottom: 3px solid #ff4040;
    font-weight: bold;
}

.catalog-container {
    padding-top: -10px;
    text-align: center;
    color: black;
    position: relative;
}

.floating-medicines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: -1;
}

.medicine {
    position: absolute;
    animation: float 5s infinite ease-in-out alternate;
    opacity: 0.8;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(var(--rotation));
    }
    100% {
        transform: translateY(30px) rotate(var(--rotation)); 
    }
}

.cam-container {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 200px;
}
.search-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    gap: 10px;
}

#search-input {
    padding: 10px 15px;
    width: 300px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s;
}

#search-input:focus {
    border-color: #ff4040;
    box-shadow: 0 0 5px rgba(255, 64, 64, 0.3);
}

#search-button {
    background-color: #ff4040;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

#search-button:hover {
    background-color: #e63939;
    transform: scale(1.05);
}


.filters-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.filter-group h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.2em;
    border-bottom: 2px solid #ff4040;
    padding-bottom: 8px;
}

.filter {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: #555;
}

.filter-icon {
    transition: transform 0.3s;
}

.filter-options {
    margin-top: 10px;
    display: none;
    flex-direction: column;
    gap: 8px;
}

.filter.active .filter-options {
    display: flex;
}

.filter.active .filter-icon {
    transform: rotate(180deg);
}

.filter-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #555;
    transition: color 0.2s;
}

.filter-options label:hover {
    color: #333;
}

.price-range {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 10px 0;
}

.price-range input[type="range"] {
    width: 100%;
    height: 5px;
    -webkit-appearance: none;
    background: #ddd;
    border-radius: 5px;
    outline: none;
}

.price-range input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #ff4040;
    border-radius: 50%;
    cursor: pointer;
}

.price-values {
    text-align: center;
    font-size: 0.9em;
    color: #666;
}

.apply-filters, .reset-filters {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.apply-filters {
    background: #ff4040;
    color: white;
}

.apply-filters:hover {
    background: #e63939;
    transform: translateY(-2px);
}

.reset-filters {
    background: none;
    color: #666;
    border: 1px solid #ddd;
}

.reset-filters:hover {
    background: #f0f0f0;
}


.catalog {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.item {
    background-color: white;
    padding: 15px;
    border: 1px solid #ddd;
    width: 200px;
    text-align: center;
}

.item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
}

.item input[type="number"] {
    width: 60px;
    padding: 5px;
    margin: 10px 0;
}

.item button {
    background-color: #ff4040;
    color: white;
    padding: 8px 16px;
    border: none;
    cursor: pointer;
}

.item button:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.3);
}

footer {
    text-align: center;
    padding: 10px;
    background-color: #333;
    color: white;
    position: fixed;
    bottom: 0;
    width: 100%;
}
/* Основные стили остаются прежними */

@media (max-width: 768px) {
    body {
        padding-bottom: 60px;
    }
    
    header {
        padding: 40px 20px;
                 background-position: 20% 50%;

    }
    
    h1 {
        font-size: 24px;
    }
    
    nav {
        flex-wrap: wrap;
        padding: 5px 0;
    }
    
    nav a {
        padding: 8px 10px;
        font-size: 14px;
        flex: 1 0 33%;
        min-width: 0;
        box-sizing: border-box;
    }
    
    .catalog-container {
        padding: 10px;
    }
    
    .cam-container {
        max-width: 100%;
        padding-bottom: 100px;
    }
    
    .search-container {
        flex-direction: column;
        align-items: stretch;
        margin: 10px 0;
    }
    
    #search-input {
        width: auto;
        margin-bottom: 10px;
    }
    
    #search-button {
        width: 100%;
    }
    
    .filters-section {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .filter-group h3 {
        font-size: 1.1em;
    }
    
    .catalog {
        justify-content: center;
        gap: 15px;
    }
    
    .item {
        width: calc(50% - 10px);
        padding: 10px;
    }
    
    .item img {
        height: 120px;
    }
    
    .price-range {
        margin: 5px 0;
    }
    
    .apply-filters, 
    .reset-filters {
        padding: 8px;
        font-size: 14px;
    }
    
    #orders-widget {
        width: 90%;
        right: 5%;
        bottom: 70px;
    }
        footer {
        font-size: 12px;
        padding: 5px;
    }
}
}

