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

body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f8f8f8;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
    padding: 0;
}

h2 {
    font-size: 2.2em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: #007bff;
    text-transform: uppercase;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.9em;
    border: none;
}

.primary-btn {
    background-color: #007bff;
    color: white;
}

.primary-btn:hover {
    background-color: #0056b3;
}

.secondary-btn {
    background-color: #ffc107;
    color: #333;
}

.secondary-btn:hover {
    background-color: #e0a800;
}

.large-btn {
    font-size: 1.2em;
    padding: 15px 35px;
}

header {
    background-color: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

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

.logo h1 {
    font-size: 1.5em;
    font-weight: 700;
    color: #007bff;
}

nav ul {
    display: flex;
    gap: 25px;
}

nav ul li a {
    color: #333;
    font-weight: 500;
}

nav ul li a.active, nav ul li a:hover {
    color: #ffc107;
    font-weight: 700;
}

.search-cart a {
    font-size: 1.2em;
    color: #007bff;
    font-weight: 500;
}

.hero {
    background: #e6f2ff;
    padding: 100px 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5em;
    margin-bottom: 15px;
    color: #007bff;
    font-weight: 700;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #666;
}

.collections {
    padding: 80px 0;
    text-align: center;
}

.collection-list {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.collection-item {
    text-align: center;
    padding: 20px;
    flex-basis: 25%;
    cursor: pointer;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.collection-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.collection-item .icon {
    font-size: 3em;
    display: block;
    margin-bottom: 15px;
}

.personalize {
    background-color: #007bff;
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.personalize h2 {
    color: #fff;
    margin-bottom: 15px;
}

.personalize p {
    font-size: 1.1em;
    margin-bottom: 30px;
}

.info {
    padding: 60px 0;
    display: flex;
    justify-content: space-around;
    text-align: center;
    gap: 20px;
    border-top: 1px solid #eee;
}

.info-block {
    flex-basis: 30%;
}

.info-block h3 {
    font-size: 1.1em;
    color: #007bff;
    margin-bottom: 10px;
    font-weight: 500;
}

footer {
    background-color: #333;
    color: white;
    padding: 20px 0;
    font-size: 0.9em;
}

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

.footer-links a {
    color: white;
    font-size: 0.9em;
    margin: 0 5px;
}

/* Стили Каталога */
.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.catalog-header h2 {
    margin: 0;
    font-size: 1.8em;
    text-align: left;
}

.sort-filter-bar select {
    padding: 8px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-right: 10px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    text-align: center;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    background-color: #fff;
    transition: box-shadow 0.3s;
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 77, 153, 0.1);
}

.product-card a {
    color: #333;
    display: block;
}

.product-image-placeholder {
    height: 200px;
    background-color: #f5f5f5;
    margin-bottom: 15px;
    border-radius: 50px;
    overflow: hidden;
}

.product-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-card h3 {
    font-size: 1.1em;
    font-weight: 500;
    margin-bottom: 5px;
}

.product-card .price {
    font-size: 1.4em;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 15px;
}

.pagination {
    text-align: center;
    padding: 40px 0;
}

.pagination a {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    border: 1px solid #eee;
    border-radius: 5px;
    color: #007bff;
    background-color: #fff;
    transition: background-color 0.3s;
}

.pagination a.active,
.pagination a:hover {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #333;
}

/* Стили Товара */
.breadcrumbs {
    padding: 20px 0;
    font-size: 0.9em;
    color: #777;
}

.breadcrumbs a {
    color: #777;
}

.product-details {
    padding-bottom: 50px;
}

.product-content {
    display: flex;
    gap: 50px;
}

.image-section {
    flex-basis: 50%;
}

.info-section {
    flex-basis: 50%;
}

.main-image-placeholder {
    background-color: #f5f5f5;
    height: 450px;
    border-radius: 50px;
    margin-bottom: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image-placeholder img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.thumbnails {
    display: flex;
    gap: 10px;
}

.thumb-placeholder {
    width: 80px;
    height: 80px;
    background-color: #eee;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
}

.thumb-placeholder.active {
    border-color: #007bff;
}

.product-info h1 {
    font-size: 2.5em;
    color: #007bff;
    margin-bottom: 5px;
}

.sku {
    color: #999;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.rating {
    color: #ffc107;
    margin-bottom: 20px;
}

.rating .stars {
    margin-right: 5px;
    font-size: 1.2em;
}

.product-info .price {
    font-size: 2.5em;
    font-weight: 700;
    color: #333;
    margin: 20px 0;
}

.option-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
}

.option-group select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 200px;
    margin-bottom: 20px;
}

.purchase-area {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}

.quantity-input {
    width: 60px;
    padding: 10px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.purchase-area .large-btn {
    flex-grow: 1;
}

.description h3 {
    font-size: 1.2em;
    color: #007bff;
    margin-top: 20px;
    margin-bottom: 10px;
}

.description ul {
    list-style: disc;
    padding-left: 20px;
}

.description ul li {
    margin-bottom: 5px;
    color: #555;
    font-size: 0.95em;
    list-style: disc;
}

/* Стили для общих страниц */

.page-content {
    padding: 60px 0;
}

.page-content h2 {
    margin-bottom: 40px;
    text-align: center;
    color: #007bff;
    font-size: 2em;
}

.intro-text {
    font-size: 1.2em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    color: #555;
    line-height: 1.5;
}

/* Стили для страницы "О нас" */

.about-blocks {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
}

.about-block {
    flex: 1;
    padding: 20px;
    border-left: 3px solid #ffc107;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.about-block h3 {
    color: #007bff;
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.team-photo-placeholder {
    height: 300px;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    color: #6c757d;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Стили для страницы "Контакты" */

.contact-layout {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.contact-info, .contact-form {
    flex: 1;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.contact-info h3, .contact-form h3 {
    color: #007bff;
    border-bottom: 2px solid #ffc107;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.contact-info p {
    margin: 15px 0;
    line-height: 1.6;
}

.contact-info a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; 
    font-size: 1em;
}

.form-group textarea {
    resize: vertical;
}

@media (max-width: 992px) {
    .product-content {
        flex-direction: column;
        gap: 30px;
    }
    .image-section, .info-section {
        flex-basis: 100%;
    }
    .main-image-placeholder {
        height: 350px;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    nav ul {
        padding: 10px 0;
        flex-wrap: wrap;
        justify-content: center;
    }
    .collection-list, .info, .about-blocks, .contact-layout {
        flex-direction: column;
        gap: 40px;
    }
    .catalog-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .catalog-header h2 {
        margin-bottom: 15px;
    }
    .sort-filter-bar {
        width: 100%;
        display: flex;
        justify-content: space-between;
    }
    .sort-filter-bar select {
        flex-grow: 1;
    }

}

.text-block {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.text-block h3 {
    color: #007bff;
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.text-block ul {
    list-style: disc;
    padding-left: 20px;
}

.text-block ul li {
    list-style: disc;
    margin-bottom: 8px;
    line-height: 1.5;
}

/* --- Стили для Корзины (cart.html) --- */

.cart-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.cart-items-list {
    flex: 2;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.cart-summary {
    flex: 1;
    padding: 25px;
    background-color: #e6f2ff; /* Светло-синий фон */
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Заголовки таблицы корзины */
.cart-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    font-weight: 700;
    color: #007bff;
    border-bottom: 2px solid #ffc107;
}

/* Строка товара в корзине */
.cart-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

/* Определение колонок */
.cart-col {
    padding: 0 10px;
}
.product-col { flex: 4; display: flex; align-items: center; }
.price-col { flex: 1.5; text-align: right; font-weight: 500;}
.qty-col { flex: 1; text-align: center; }
.total-col { flex: 1.5; text-align: right; font-weight: 700; color: #333; }
.remove-col { flex: 0.5; text-align: center; }

/* Детали товара */
.item-img-placeholder {
    width: 70px;
    height: 70px;
    margin-right: 15px;
    border-radius: 10px;
    overflow: hidden;
    background-color: #f5f5f5;
}
.item-img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-details h4 {
    font-size: 1em;
    margin: 0;
    font-weight: 500;
}
.item-details .sku {
    font-size: 0.8em;
    color: #777;
}

/* Поле ввода количества */
.qty-input {
    width: 50px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-align: center;
}

/* Кнопка удаления */
.remove-btn {
    background: none;
    border: none;
    color: #aaa;
    font-size: 1.2em;
    cursor: pointer;
    transition: color 0.2s;
}
.remove-btn:hover {
    color: #ff4d4d;
}

/* Секция итогов */
.cart-summary h3 {
    color: #007bff;
    border-bottom: 2px solid #ffc107;
    padding-bottom: 10px;
    margin-top: 0;
    margin-bottom: 20px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 1em;
}

.total-line {
    font-size: 1.2em;
    font-weight: 700;
    border-top: 1px dashed #ccc;
    padding-top: 15px;
    margin-top: 10px;
}

.shipping-info {
    font-size: 0.8em;
    color: #777;
    margin: 20px 0;
    text-align: center;
}

.checkout-btn {
    margin-top: 15px;
}

.cart-actions {
    padding: 20px;
    text-align: right;
}

/* Адаптивность для корзины */
@media (max-width: 992px) {
    .cart-layout {
        flex-direction: column;
    }
    .cart-summary {
        width: 100%;
        order: -1; /* Поместить итого сверху на мобильных */
        margin-bottom: 20px;
    }
}
@media (max-width: 600px) {
    .cart-header, .cart-item {
        flex-wrap: wrap;
        padding: 15px 10px;
    }
    .cart-header {
        display: none; /* Скрыть заголовки на узких экранах */
    }
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .product-col { flex: auto; width: 100%; margin-bottom: 10px; }
    .price-col, .total-col { order: 3; width: 50%; padding-right: 0;}
    .qty-col { order: 2; width: 50%; text-align: left; padding-left: 0;}
    .remove-col { order: 1; position: absolute; top: 10px; right: 10px; }
    
    .item-img-placeholder { margin-right: 10px; width: 50px; height: 50px; }
    .price-col:before { content: "Цена: "; color: #777; font-weight: 400; }
    .total-col:before { content: "Сумма: "; color: #777; font-weight: 400; }
    .qty-input { margin: 0 10px; }
}
