/* ============================================================
   responsive.css — toms.am
   Tablet : max-width 768px
   Mobile : max-width 480px
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; height: auto; }


/* ── TABLET  ≤ 768px ──────────────────────────────────────── */
@media screen and (max-width: 768px) {

    body {
        background-size: 100% auto;
        background-attachment: scroll;
    }

    .main_content {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    /* ── Top bar ── */
    .div_top {
        float: none;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 8px;
        padding: 8px 14px;
        background-color: rgba(0, 0, 0, 0.75);
    }
    .div_top_l,
    .div_top_r {
        float: none;
        width: auto;
        height: auto;
    }
    .div_lang {
        padding: 0;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .div_lang a,
    .div_lang a:visited,
    .div_lang a:hover {
        font-size: 13px;
        padding: 0;
    }
    .div_menu {
        float: none;
        padding: 0;
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 4px;
    }
    .div_menu a,
    .div_menu a:visited,
    .div_menu a:hover {
        font-size: 12px;
        padding: 5px 9px;
        border-radius: 3px;
        background-color: rgba(255, 255, 255, 0.08);
    }
    .div_menu a.cr_item {
        background-color: rgba(246, 197, 0, 0.15);
    }

    /* ── Middle: stack 3 columns ── */
    .div_mid {
        float: none;
        width: 100%;
        display: flex;
        flex-direction: column;
        background-image: none;
        background-color: #fff;
    }

    /* Left sidebar → compact category chip strip */
    .div_mid_l {
        float: none;
        width: 100%;
        background-color: #f5f5f5;
        border-bottom: 3px solid #9f0c26;
        padding: 12px 14px;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
    .div_w8menu_ttl,
    .div_w9menu_ttl,
    .div_w7menu_ttl {
        float: none;
        width: 100%;
        font-size: 11px;
        padding: 4px 0 2px 0;
        color: #555;
        font-weight: bold;
        text-transform: uppercase;
        letter-spacing: 0.6px;
    }
    .div_w8menu,
    .div_w9menu {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
    }

    /* ԻՆՉ / ՈՐՏԵՂ — collapsible on mobile */
    .div_mid_l .div_w8menu_ttl,
    .div_mid_l .div_w9menu_ttl {
        cursor: pointer;
        user-select: none;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-right: 6px;
    }
    .div_mid_l .div_w8menu_ttl::after,
    .div_mid_l .div_w9menu_ttl::after {
        content: '▼';
        font-size: 9px;
        transition: transform 0.2s;
    }
    .div_mid_l .div_w8menu_ttl.open::after,
    .div_mid_l .div_w9menu_ttl.open::after {
        transform: rotate(180deg);
    }
    .div_mid_l .div_w8menu,
    .div_mid_l .div_w9menu {
        display: none;
    }
    .div_mid_l .div_w8menu.open,
    .div_mid_l .div_w9menu.open {
        display: flex;
    }
    .div_w8menu a,
    .div_w8menu a:visited,
    .div_w8menu a:hover,
    .div_w9menu a,
    .div_w9menu a:visited,
    .div_w9menu a:hover {
        float: none;
        width: auto;
        display: inline-block;
        padding: 5px 12px;
        font-size: 12px;
        background-color: #fff;
        border: 1px solid #ddd;
        border-radius: 20px;
        margin: 0;
        color: #790016;
        transition: background-color 0.15s, color 0.15s, border-color 0.15s;
    }
    .div_w8menu a:hover,
    .div_w9menu a:hover {
        background-color: #9f0c26;
        color: #fff;
        border-color: #9f0c26;
    }
    #datepicker { display: none; }
    .fb-page  { display: none; }

    /* Center column */
    .div_mid_c {
        float: none;
        width: 100%;
        padding: 12px 14px;
    }
    .div_w8menu_ttl.center_ttl {
        font-size: 14px;
        padding: 6px 0;
    }
    .slide_show {
        float: none;
        width: 100%;
        height: auto;
        padding: 0;
        background-image: none;
        overflow: hidden;
        border-radius: 4px;
    }
    .slide_show img,
    #coin-slider,
    #coin-slider a img {
        max-width: 100%;
        width: 100% !important;
        height: auto !important;
    }
    .div_cont {
        float: none;
        width: 100%;
        padding: 12px 0;
    }
    .ticked_block { width: 100%; }
    .ticked_desc div {
        float: none;
        width: 100%;
    }
    .ticked_order a,
    .ticked_order a:visited,
    .ticked_order a:hover {
        float: none;
        display: inline-block;
        height: auto;
        margin: 5px 0;
    }

    /* Right sidebar */
    .div_mid_r {
        float: none;
        width: 100%;
        padding: 14px;
        border-top: 3px solid #9f0c26;
        background-color: #fafafa;
    }
    .div_w8menu_ttl.right_ttl {
        font-size: 13px;
        padding: 4px 0;
    }
    .div_mid_r_bg {
        float: none;
        width: 100%;
        padding: 10px 0 0 0;
        background-color: transparent;
    }
    .search_form {
        float: none;
        width: 100%;
    }
    .search_form select {
        float: none;
        display: block;
        width: 100%;
        height: 38px;
        font-size: 14px;
        margin-bottom: 8px;
        padding: 4px 8px;
        border: 1px solid #ccc;
        border-radius: 3px;
        background-color: #fff;
        color: #555;
        box-sizing: border-box;
    }
    /* Date input — same appearance as selects above */
    .search_form input.date-pick {
        float: none !important;
        display: block !important;
        width: 100% !important;
        height: 38px !important;
        font-size: 14px !important;
        font-family: Arian AMU, Sylfaen;
        color: #555 !important;
        padding: 4px 8px !important;
        border: 1px solid #ccc !important;
        border-radius: 3px !important;
        background-color: #fff !important;
        margin: 0 0 8px 0 !important;
        box-sizing: border-box !important;
    }
    .search_form .date_picker {
        display: block !important;
        float: none !important;
        width: 100% !important;
        margin: 0 0 8px 0 !important;
    }
    .search_form .date_picker input.date-pick {
        float: none !important;
        display: block !important;
        width: 100% !important;
        height: 38px !important;
        font-size: 14px !important;
        font-family: Arian AMU, Sylfaen;
        color: #555 !important;
        padding: 4px 8px !important;
        border: 1px solid #ccc !important;
        border-radius: 3px !important;
        background-color: #fff !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
    .search_form a.dp-choose-date {
        display: none !important;
    }
    .search_form a {
        display: inline-block;
        float: none;
        width: auto;
        background-color: #9f0c26;
        color: #fff !important;
        padding: 9px 24px;
        border-radius: 3px;
        font-size: 15px;
        font-weight: bold;
        text-decoration: none;
    }
    .div_rnews {
        display: none;
    }
    .news_title {
        float: none;
        width: 100%;
    }
    .news_block { width: 100%; }
    .div_mid_r_bg > br { display: none; }
    .div_mid_r_bg a img {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 8px 0;
        border-radius: 3px;
    }

    /* Footer */
    .div_bot {
        float: none;
        width: 100%;
    }
    .div_bot_t,
    .div_bot_b {
        float: none;
        width: 100%;
        height: auto;
        padding: 10px 14px;
        text-align: center;
    }
    .div_bmenu {
        padding: 0;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
    }
    .div_bmenu a,
    .div_bmenu a:visited,
    .div_bmenu a:hover {
        font-size: 12px;
        padding: 3px 6px;
    }
    .div_copy { padding: 0; }

    /* Order / contact form */
    .order_form { float: none; width: 100%; }
    .form_row    { float: none; width: 100%; }
    .form_row input { width: 100%; }
    .form_cal1,
    .form_cal2  { float: none; width: 100%; }
    .form_cal1 input  { width: 100%; }
    .form_cal2 textarea { width: 100%; }

    /* Gallery */
    .gallery_block {
        width: 45%;
        height: auto;
    }
}


/* ── MOBILE  ≤ 480px ──────────────────────────────────────── */
@media screen and (max-width: 480px) {

    .div_top {
        padding: 8px 10px;
        gap: 6px;
    }
    .div_top_l { width: 100%; }
    .div_top_r { width: 100%; }
    .div_menu {
        justify-content: flex-start;
    }
    .div_menu a,
    .div_menu a:visited,
    .div_menu a:hover {
        font-size: 11px;
        padding: 4px 7px;
    }

    .div_mid_l { padding: 8px 10px; }
    .div_w8menu a,
    .div_w8menu a:visited,
    .div_w8menu a:hover,
    .div_w9menu a,
    .div_w9menu a:visited,
    .div_w9menu a:hover {
        font-size: 11px;
        padding: 4px 10px;
    }

    .div_mid_c { padding: 10px; }

    /* Hide slideshow on small phones — saves space */
    .slide_show { display: none; }

    .ticked_title { font-size: 15px; }
    .ticked_links a,
    .ticked_links a:visited,
    .ticked_links a:hover { font-size: 13px; }

    .div_mid_r { padding: 10px; }
    .search_form select,
    .search_form .date_picker input.date-pick {
        height: 42px !important;
        font-size: 15px !important;
    }
    .search_form a {
        padding: 10px 28px;
        font-size: 15px;
    }

    .div_bot_t,
    .div_bot_b { padding: 8px 10px; }
    .div_bmenu a,
    .div_bmenu a:visited,
    .div_bmenu a:hover { font-size: 11px; }

    .gallery_block {
        width: calc(50% - 8px);
        height: auto;
    }
}
