* {padding: 0;margin: 0;font-family: Tahoma;font-size: 12px;}
img {border: none;}
html, body {width: 100%;height: 100%;background-color: #000;}
#page {width: 100%;height: 100%;background-color: #FFF;margin: 0;padding: 0;border: none;}
#page td {margin: 0;padding: 0;}
.clear {clear: both;}
.nav * {
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    color: #000;
}
h1, h1 a {
    font-size: 13px;
    font-weight: bold;
    font-family: Tahoma;
    text-transform: uppercase;
    text-decoration: none;
    color: #000;
}
.slist a {
    font-size: 12px;
    color: #000;
    text-decoration: none;
}
#content_conteiner { padding: 10px; padding-top: 0; }
#content_conteiner * { line-height: 1.6; font-size: 13px; }
#content_conteiner ul, #content_conteiner ol {
    margin-left: 20px;
}
#content_conteiner a { color: #000; }
#page .head0, 
#page .header, 
#page .menu, 
#page .contenta, 
#page .footer {
    width: 100%;
}
#page .header {
    margin: 0;
    padding: 0;    
}
#page .head0_, 
#page .header_, 
#page .menu_,
#page .content_, 
#page .footer_ {
    width: 5%;
}
#page .head0, #page .head0_ {
    background: url(/themes/default/images/head0.png) repeat-x left;
    height: 22px;
    color: #FFF;
}
#page .header, #page .header_ {
    background: url(/themes/default/images/header.png) repeat-x bottom;
    height: 122px;
}
#page .header .hspl {
    float: left;
    height: 100px;
    width: 10px;
}
#page .header .h1, 
#page .header .h2, 
#page .header .h3, 
#page .header .h4 {
    float: left;
    color: #F7F7F7;
}
#page .header .h1 {
    width: 290px;
    padding: 10px;
    padding-left: 0;
    padding-top: 10px;
}
#page .header .h1 p {
    color: #C0C0C0;
    font-family: Arial;
    
}
#page .header .h2 {
    width: 220px;
    padding-top: 10px;
    *margin-left: -10px;
}
#page .header .h2 a {
    line-height: 1.5;
    color: #F7F7F7;
}
#page .header .h2 .delivery {
    width: 225px;
    height: 59px;
    float: left;
    background: url(/themes/default/images/bdelivery.png) no-repeat center;
}
#page .header .h3 { padding-top: 10px; }
#page .header .h3, #page .header .h3 a {
    color: #C0C0C0;
    line-height: 1.5;
}
#page .header .h4 { padding-top: 10px; }
#page .header .h4 .basket {
    width: 222px;
    height: 78px;
    float: left;
    background: url(/themes/default/images/basket.png) no-repeat center;
}
#page .header .h4 .basket .cart {
    padding-left: 10px;
    *padding-left: 0;
    padding-top: 25px;
}
#page .header .h4 .basket .cart a div {
    width: 25px;
    height: 25px;
    cursor: pointer;
}
#page .header .h4 .basket .info {
    float: left;
    padding-top: 10px;
    color: #F7F7F7;
    line-height: 1.4;
    font-size: 13px;
}
#page .header .h4 .basket .info div a {
    text-transform: uppercase;
    font-size: 14px;
    font-family: Tahoma;
    color: #F7F7F7;
    text-decoration: none;
}
#page .header .h4 .basket div span {
    color: #F15100;
    font-size: 13px;
}


#page .menu, #page .menu_ {
    background: url(/themes/default/images/menu.png) repeat-x center;
    height: 42px;
}
#page .content, #page .content_ {
    background-color: #FFF;
    height: 100%;
}
#page .footer, #page .footer_ {
    height: 103px;
    background: url(/themes/default/images/footer.png) repeat-x left;
}
#page .footer table td.right, #page .footer table td.left{
    padding: 20px;
    color: #FFF;
}
#page .footer table td.right {
    font-weight: bold;
    font-size: 12px;
}
#blok_left {
    width: 260px;
    background: url(/themes/default/images/blok_left.png) no-repeat top left;
}
#page .content_ {
    background: url(/themes/default/images/blok_left.png) no-repeat top left;
}
#blok_right {
    width: 224px;
    background: url(/themes/default/images/blok_right.png) no-repeat top left;
}

#blok_right .discounts {
    width: 216px;
    height: 129px;
    background: url(/themes/default/images/blok_discounts.png) no-repeat center;
}
#search {
    width: 180px;
    height: 21px;
    background: url(/themes/default/images/searchbg.png) no-repeat center;
    color: #000;
    font-weight: bold;
    padding-left: 3px;
    *padding-top: 3px;
}
#search_btn {
    width: 29px;
    height: 22px;
    background: url(/themes/default/images/search.png) no-repeat center;
    border: none;
    cursor: pointer;
}
#_error, #_message {
    padding: 20px;
}
#_error .head, #_message .head {
    font-size: 16px;
    font-weight: bold;
    color: #FF6600;
}
#_error a, #_message a {
    font-size: 11px;
    color: #000080;
}
#blok_1 {
    width: 212px;
    height: 160px;
    margin-top: 8px;
    *margin-top: 8px;
    background: url(/themes/default/images/blok_1.png) no-repeat center;
}
.blok {
    position: relative;
    margin-bottom: 20px;
    float: left;
    background-color: #FFF;
    width: 240px;
    border: solid #D6D6D6 1px;
    text-align: left;
}
.blok_title, .blok_title a {
    font-size: 14px;
    color: #D94C00;
    text-transform: uppercase;
    width: 160px;
    margin-bottom: 10px;
    margin-top: 15px;
    margin-left: 15px;
}
.blok_title a {
    margin: 0;
    padding: 0;
    text-decoration: none;
}
.blok_content {
    float: left;
    text-align: left;
}
#category_list {
    
}

.item_s { padding: 15px; margin-top: 5px; }
.item_sl { padding-left: 10px; padding-right: 10px; }
.item_sr { padding-left: 10px; }
.item_s td { padding: 3px; }
.item_s a { font-size: 11px; color: #000; }

#category_list .item {
    float: left;
    width: 183px;
    height: 154px;
    background: url(/themes/default/images/catalog_item.png) center no-repeat;
    margin: 5px;
}
#category_list .item a {
    *width: 183px;
    *height: 154px;
}#category_list .item a div {
    cursor: pointer;
}
#category_list .item .head {
    width: 180px;
    height: 36px;
    text-align: center;
}
#category_list .item .head * {
    font-size: 12px;
    color: #000;
    /*font-weight: bold;*/
    text-transform: uppercase;
    text-decoration: none;
}
#category_list .item .logo {
    width: 183px;
    height: 114px;
    padding: 0;
    margin: 0;
	overflow: hidden;
}
#category_list .item .logo * {
    padding: 0;
    margin: 0;
}
#catalog_nav *, #nav * {
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    color: #000;
}
.spl {
    width: 98%;
    height: 1px;
    margin-left: auto;
    margin-right: auto;
    border-top: dotted 2px #C0C0C0;
}
#categoris {width: 100%;}
#categoris a {
    font-size: 12px;
    font-family: Tahoma;
    text-decoration: none;
    line-height: 1.4;
    color: #000;
}
#categoris a:hover {
    text-decoration: underline;
}
#categoris a {
    float: left;
    height: 15px;
    margin-right: 3px;
}
#categoris .elem {
    float: left;
    height: 15px;
    width: 15px;
    background: url(/themes/default/images/li.png) no-repeat center;
    background-position: 5px 3px;
    margin-right: 3px;
}
#categoris table {

}
#categoris table td { margin: 0; padding: 0; }
#categoris .top {
    height: 3px;
    background: url(/themes/default/images/c_top.png) repeat-x center;
    *background: none;
}
#categoris .tophl {
    height: 3px;
    width: 5px;
    max-height: 3px;
    background: url(/themes/default/images/c_hleft.png) no-repeat;
    background-position: 1px 0px;
}
#categoris .tophr {
    height: 3px;
    width: 8px;
    max-height: 3px;
    background: url(/themes/default/images/c_hright.png) no-repeat;
    background-position: 0px 0px;
    *background: none;
}
#categoris .left {
    width: 5px;
    background: url(/themes/default/images/c_left.png) repeat-y right;
    *background: none;
}
#categoris .center {
    background-color: #F6F6F6;
    padding: 10px;
    *border: solid 1px #C0C0C0;
}
#categoris .right {
    width: 8px;
    background: url(/themes/default/images/c_right.png) repeat-y center;
    *background: none;
}
#categoris .bottom {
    height: 3px;
    background: url(/themes/default/images/c_bottom.png) repeat-x center;
    *background: none;
}
#categoris .bottoml {
    height: 3px;
    width: 5px;
    background: url(/themes/default/images/c_bottoml.png) repeat-x center;
    background-position: 0 -2px;
    *background: none;
}#categoris .bottomr {
    height: 3px;
    width: 8px;
    background: url(/themes/default/images/c_bottomr.png) repeat-x center;
    background-position: 0 -2px;
    *background: none;
}


#product_title {
    margin-left: 10px;
    font-size: 15px;
    text-transform: uppercase;
    color: #D25800;
}
#product_info {
    margin-top: 15px;
}

#cart_btn {
    width: 117px;
    height: 37px;
    background: url(/themes/default/images/cart_btn.png) no-repeat center;
}
#addToCart {
    width: 117px;
    height: 37px;
    background: url(/themes/default/images/cart_btn.png) no-repeat center;
    cursor: pointer;
    color: transparent; /* Скрываем белый текст, оставляя только картинку */
    border: none; /* Убираем стандартную рамку кнопки, если есть */
    font-size: 0; /* Дополнительно скрываем текст */
}
#Pquantity {
    width: 40px; 
    padding: 2px; 
    border: solid #969696 1px; 
    text-align: right;
}

#reli_list, #dprod_list {
    
}
#reli_list .reli, #dprod_list .reli {
    width: 133px;
    height: 166px;
    background: url(/themes/default/images/reli.png) no-repeat center;
    float: left;
    margin-left: 10px;
}

#product_items {
    margin-left: 20px;
}
#product_items td {
    padding-left: 20px;
    background: url(/themes/default/images/li.png) no-repeat center;
    background-position: 5px 3px;
}
#product_items a {
    font-size: 12px;
    font-family: Tahoma;
    color: #000;
    text-decoration: none;
}
#product_params {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-left: 20px;
}
#product_params li {
    padding-left: 20px;
    background: url(/themes/default/images/li.png) no-repeat center;
    background-position: 5px 3px;
    height: 25px;
}

.page_nav {
    width: 100%;
}
.page_nav div {
    text-align: center;
    margin: 10px;
}

#blok_news {
    width: 218px;
}
#blok_news a {
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
    color: #353535;
    font-family: Tahoma;
}
#blok_news .spl {
    width: 200px;
    height: 0.1px;
    margin-left: 0;
    background-color: #C0C0C0;
    margin-top: 10px;
    margin-bottom: 10px;
}

#blok_articles {
    width: 200px;
}
#blok_articles a {
    font-size: 12px;
    font-family: Tahoma;
    color: #000;
    line-height: 1.6;
}
table .list {
    margin-top: 10px;
}
table .list * {
    font-size: 11px;
    text-decoration: none;
    color: #000;
}
#summa {
    font-size: 14px;
    font-weight: bold;
    color: #FF6600;
}
#carto {
    cursor: pointer;
    border: solid 1px #C0C0C0;
    padding: 4px;
    font-size: 12px;
    color: #000;
    font-weight: bold;
}
#orders td {
    padding: 3px;
    border: solid 1px #969696;
}
#orders a {
    font-family: Tahoma;
    color: #000;
    text-decoration: none;
}
.order_a {
    font-size: 13px;
    color: #FF6600;
    text-transform: uppercase;
}
.obtn, #logoutClient {
    cursor: pointer;
    border: solid 1px #C0C0C0;
    padding: 4px;
    font-size: 12px;
    color: #000;
    font-weight: bold;
}
.form_type_p, 
.form_type_l, 
#form_type_p ,
#form_type_l {
    cursor: pointer;
}
.orr {
    color: #F00;
    font-family: Georgia;
    font-weight: bold;
}
#iform textarea, #oform textarea {
    width: 200px;
    height: 40px;
}
#oform {
    display: none;
}
#iform input, #oform input {
    width: 200px;
}
#update {
    width: 30px;
    height: 26px;
    background: url(/images/update.png) center no-repeat;
}
#code {
    width: 150px;
    color: #000080;
    text-align: center;
}
#delivery, #payment, .order {
    width: 100%;
}
#delivery td, #payment td, .order td {
    padding: 3px;
    border: solid 1px #C0C0C0;
    padding-left: 10px;
    padding-right: 10px;
}
#hit {
    width: 214px;
    height: 160px;
    margin-top: 20px;
    background: url(/themes/default/images/hit2.png) no-repeat center;
}
#hit * {
    font-family: Arial;
    font-size: 11px;
    font-weight: bold;
}
.commi { border: solid 1px #C0C0C0; border-radius: 10px; padding: 10px; padding-top: 5px; margin-bottom: 10px; }
.commi .cminfo { border: solid 1px #C0C0C0; padding: 4px; }
#emts { width: 100%; }
#product_list { width: 100%; }
#product_list .pitem { width: 383px; height: 250px; overflow: hidden; margin-bottom: 10px; margin-right: 10px; float: left; background: url(/themes/default/images/prod_prv.png) no-repeat center; }
#product_list .pitem .title { padding-left: 10px; padding-top: 3px; height: 32px; overflow: hidden; text-decoration: none; text-transform: uppercase; }
#product_list .pitem .title a { text-decoration: none; }
#product_list .logo { width: 183px; height: 114px; padding: 0; margin: 0; }
#product_list .vs { text-decoration: line-through; text-align: center; border-top: solid 1px #000; }
#product_list .param, #product_list .param table, #product_list .param table td { width: 183px; }
#product_list .param td { text-align: center; border-top: solid 0px #000; padding: 1px; }
#product_list .info { width: 180px; }
#content_conteiner .product_title {
    margin-left: 10px;
    font-size: 15px;
    text-transform: uppercase;
    color: #D25800;
    font-weight: normal;
}
/* ============================================
   Мобильная адаптация рыбного сайта
   ============================================ */
@media screen and (max-width: 768px) {

    /* 1. Убираем горизонтальную прокрутку */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
    }
    
    /* 2. Перестраиваем таблицу макета в блоки */
    #page, #page > tbody, #page > tbody > tr {
        display: block !important;
        width: 100% !important;
    }
    #page > tbody > tr > td {
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
    }

    /* 3. Скрываем боковые пустые колонки (5%) */
    .head0_, .header_, .menu_, .content_, .footer_ {
        display: none !important;
    }

    /* 4. Шапка (Header) — делаем темной и аккуратной */
    #page .header, #page .header_ {
        height: auto !important;
        background: #222 !important;
        padding-bottom: 15px !important;
    }
    #page .header .h1, 
    #page .header .h2, 
    #page .header .h3, 
    #page .header .h4 {
        float: none !important;
        width: 100% !important;
        text-align: center !important;
        padding: 5px 0 !important;
    }
    #page .header .h1 img {
        max-width: 100px !important;
        margin: 0 auto !important;
    }
    #page .header .h1 p, 
    #page .header .h3 p, 
    #page .header .h3 span, 
    #page .header .h3 a {
        color: #FFF !important;
        margin-left: 0 !important;
    }
    /* Прячем корзину в шапке на мобильных (она перегружает вид) */
    #page .header .h4 {
        display: none !important;
    }

    /* 5. Левая колонка (Каталог и Услуги) — на всю ширину */
    #blok_left {
        display: block !important;
        width: 100% !important;
        float: none !important;
        background: none !important;
    }
    #blok_left > div {
        max-width: 100% !important;
        text-align: left !important;
    }
    /* Выстраиваем списки каталога в 1 колонку */
    #catalog, #services {
        width: 100% !important;
        float: none !important;
    }
    #catalog li, #services li {
        width: auto !important;
        float: none !important;
        border-left: none !important;
        border-right: none !important;
    }

    /* 6. Правая колонка (Корзина, Время работы) — скрываем, чтобы не мешала */
    #blok_right {
        display: none !important;
    }

    /* 7. Контент */
    #content_conteiner {
        width: 100% !important;
        padding: 10px !important;
        box-sizing: border-box !important;
    }
    
    /* Чтобы таблицы с ценами не ломали экран */
    #content_conteiner table {
        width: 100% !important;
        display: block !important;
        overflow-x: auto !important;
    }
}
/* ============================================
   Кнопка "В корзину" в каталоге
   ============================================ */

/* 1. Базовый вид (для ПК): тонкая, аккуратная кнопка */
.btn-add-cart {
    width: 120px;
    padding: 3px 0;
    background-color: #E56B00;
    color: #FFF;
    border: none;
    border-radius: 3px;
    font-weight: bold;
    font-size: 12px;
    cursor: pointer;
    display: block;
    margin: 8px auto 0 auto;
    box-sizing: border-box;
}

/* 2. Вид для мобильных устройств (шире и удобнее для пальца) */
@media screen and (max-width: 768px) {
    .btn-add-cart {
        width: 100%;            /* Растягиваем на мобильном */
        padding: 10px 0;        /* Делаем удобной для нажатия */
        font-size: 14px;
        margin: 5px 0 0 0;
        border-radius: 4px;
    }
}
/* ============================================
   Карточка товара (адаптивная)
   ============================================ */
.product-card {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    align-items: flex-start;
}

.product-card__left {
    width: 250px; /* Фиксированная ширина левой колонки на ПК */
    flex-shrink: 0;
}

.product-card__image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    margin-bottom: 15px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Добавляем рамку вокруг картинки */
    border: 1px solid #E0E0E0; /* Такая же рамка, как у основной карточки */
    border-radius: 6px;        /* Скругленные углы */
    background-color: #F9F9F9; /* Легкий серый фон (как у фототоваров) */
    padding: 10px;             /* Внутренние отступы, чтобы картинка не прилипала к краям */
    box-sizing: border-box;    /* Чтобы padding не увеличивал общую ширину */
}

.product-card__image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Картинка вписывается, сохраняя пропорции */
}

.product-card__price {
    margin-bottom: 10px;
}

.product-card__form {
    margin-top: 10px;
}

/* Стили для мобильных устройств */
@media screen and (max-width: 768px) {
    .product-card {
        flex-direction: column; /* Элементы встают в столбик */
        gap: 15px;
        padding: 10px;
    }

    .product-card__left {
        width: 100%; /* На мобильном левая колонка на всю ширину */
    }

    .product-card__image {
        height: auto;
        max-height: 250px;
    }

    /* Выравниваем цену и кнопку по центру на мобильном */
    .product-card__price, 
    .product-card__form {
        text-align: center;
    }
    
    .product-card__form div {
        justify-content: center;
    }

    .product-card__form .btn-add-cart {
        width: 100% !important; /* Кнопка на всю ширину */
        padding: 10px !important;
    }
    
    .product-card__right {
        width: 100%;
        margin-top: 10px;
    }
}
/* ============================================
   Обертка для карточки товара (рамка)
   ============================================ */
.product-card-wrapper {
    background-color: #FFF;
    border: 1px solid #E0E0E0; /* Тонкая серая рамка */
    border-radius: 8px; /* Скругленные углы */
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); /* Легкая тень */
    padding: 20px; /* Внутренние отступы */
    margin-bottom: 20px; /* Отступ снизу */
    overflow: hidden; /* Чтобы содержимое не вылезало */
}

/* На мобильных убираем большие отступы и делаем на всю ширину */
@media screen and (max-width: 768px) {
    .product-card-wrapper {
        border-radius: 0;
        border-left: none;
        border-right: none;
        box-shadow: none;
        padding: 10px;
        margin-bottom: 10px;
    }
/* ============================================
   Стили для карточек каталога на мобильных
   ============================================ */
@media screen and (max-width: 768px) {
    /* 1. Карточка на всю ширину */
    #product_list .pitem {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        margin: 0 0 15px 0 !important;
        padding: 0 !important;
        background: #FFF !important;
        border: 1px solid #E0E0E0 !important;
        border-radius: 8px !important;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05) !important;
        overflow: hidden !important;
    }

    /* 2. Убираем таблицу внутри карточки (делаем блоком) */
    #product_list .pitem table {
        display: block !important;
        width: 100% !important;
        border: none !important;
    }
    
    #product_list .pitem tbody,
    #product_list .pitem tr {
        display: block !important;
        width: 100% !important;
    }

    /* 3. Ячейки таблицы — блоки на всю ширину */
    #product_list .pitem td {
        display: block !important;
        width: 100% !important;
        padding: 10px !important;
        border: none !important;
        box-sizing: border-box !important;
    }

    /* 4. Картинка в рамке */
    #product_list .pitem td.param .logo {
        width: 100% !important;
        height: 180px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin-bottom: 10px !important;
        border: 1px solid #EEE !important;
        border-radius: 6px !important;
        background: #F9F9F9 !important;
    }

    #product_list .pitem td.param .logo img {
        max-width: 90% !important;
        max-height: 90% !important;
        object-fit: contain !important;
    }

    /* 5. Кнопка на всю ширину */
    #product_list .pitem .btn-add-cart {
        width: 100% !important;
        padding: 12px !important;
        font-size: 14px !important;
        display: block !important;
        margin-top: 10px !important;
    }

}