/*-==============================-global-style-for-ol-browsers-==================================*/

html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
    display: block;
}

ol, ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

* {
    outline: none!important;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

input {
    box-shadow: none;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    -o-box-shadow: none;
    -ms-box-shadow: none;
}

button, a {
    cursor: pointer;
    text-decoration: none!important;
    border: 0;
    display: inline-block;
    padding: 0;
}

/* img {
    max-width: 100%;
    max-height: 100%;
} */

body {
    margin: 0;
    padding: 0;
    background-color: #f4f7f6;
    font-family: 'Arial', sans-serif;
}

body.no-scroll {
    overflow: hidden;
}

.d-flex {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
}

.flex-row {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
}

.flex-column {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
}

.justify-content-start {
    -webkit-box-pack: start;
    -webkit-justify-content: flex-start;
    -ms-flex-pack: start;
    justify-content: flex-start;
}

.justify-content-end {
    -webkit-box-pack: end;
    -webkit-justify-content: flex-end;
    -ms-flex-pack: end;
    justify-content: flex-end;
}

.justify-content-center {
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.justify-content-between {
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

.align-items-start {
    -webkit-box-align: start;
    -webkit-align-items: flex-start;
    -ms-flex-align: start;
    align-items: flex-start;
}

.align-items-end {
    -webkit-box-align: end;
    -webkit-align-items: flex-end;
    -ms-flex-align: end;
    align-items: flex-end;
}

.align-items-center {
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
}

.flex-wrap {
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.flex-no-wrap {
    -webkit-flex-wrap: nowrap;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
}

.container {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}
/*-========================================-global-style-for-ol-browsers-end-========================================*/

.header_nav_bar_button {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 30px;
    height: 100%;
    justify-content: center;
    z-index: 1001;
    position: relative;
    cursor: pointer;
}

.header_nav_bar_button span {
    width: 100%;
    height: 3px;
    background: #d1d1d1;
    display: block;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.header_nav_bar_button.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}
.header_nav_bar_button.active span:nth-child(2) {
    opacity: 0;
}
.header_nav_bar_button.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}


.header {
    padding: 15px 0;
    background: #FFFFFF;
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.25);
}

.header_logo {
    height: 40px;
}

.header_logo a img {
    height: 100%;
}

.header_logo a {
    display: block;
    height: 100%;
}

.header_actions {
    gap: 20px;
}

.header_profile_link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    font-weight: bold;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
}
.header_profile_link:hover {
    color: #3498db;
}
.header_profile_link svg path {
    stroke: currentColor;
}

.header_lang_switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    background: #f3f7fb;
    border: 1px solid #dbe6f1;
}

.header_lang_item {
    min-width: 36px;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #4f6174;
    transition: all 0.2s ease;
}

.header_lang_item:hover {
    background: #e6eef8;
    color: #30455d;
}

.header_lang_item.is-active {
    background: linear-gradient(135deg, #ff8d59 0%, #ef7a4d 100%);
    color: #fff;
    box-shadow: 0 4px 10px rgba(239, 122, 77, 0.35);
}

/* Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 108px;
    right: max(18px, calc((100vw - 1100px) / 2 + 15px));
    left: auto;
    width: min(420px, calc(100vw - 24px));
    max-height: calc(100vh - 116px);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96)),
        radial-gradient(circle at top right, rgba(251, 146, 60, 0.12), transparent 28%);
    z-index: 1000;
    padding: 18px;
    transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
    overflow-y: auto;
    border-radius: 28px;
    border: 1px solid rgba(226, 232, 240, 0.96);
    box-shadow: 0 30px 54px rgba(15, 23, 42, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px) scale(0.98);
    transform-origin: top right;
}
.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.mobile-menu-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}
.mobile-menu-nav li {
    margin-bottom: 0;
}
.mobile-menu-nav a {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
    padding: 13px 14px;
    display: block;
    border-radius: 16px;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(226, 232, 240, 0.9);
}
.mobile-menu-nav a:hover {
    background: #ffffff;
    color: #ea580c;
    transform: translateY(-1px);
    border-color: rgba(251, 146, 60, 0.28);
}
.mobile-menu-title {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin-top: 14px;
    margin-bottom: 4px;
    padding: 6px 10px 0;
    border-bottom: 0;
}
.menu-category-link {
    display: flex !important;
    align-items: center;
    gap: 12px;
}
.menu-category-icon {
    width: 15px;
    height: 15px;
    object-fit: contain;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .mobile-menu {
        top: 92px;
        right: 10px;
        max-height: calc(100vh - 100px);
        border-radius: 22px;
        padding: 14px;
    }

    .mobile-menu-nav a {
        font-size: 14px;
        padding: 12px 13px;
        border-radius: 14px;
    }
}


.search_main .search_body {
    position: relative;
    width: 100%;
    max-width: 720px;
    margin: 38px auto 0;
    padding: 6px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.94));
    border: 0;
    box-shadow:
        0 18px 34px rgba(15, 23, 42, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.search_main .search_body input {
    min-height: 56px;
    padding: 16px 72px 16px 18px;
    box-shadow: none;
    border: 0;
    border-radius: 16px;
    width: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    color: #0f172a;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: box-shadow 0.2s ease, background 0.2s ease;
}

.search_main .search_body input::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

.search_main .search_body input:focus {
    box-shadow: inset 0 0 0 2px rgba(251, 146, 60, 0.32);
    background: #ffffff;
}

.search_main .search_body button {
    height: 40px;
    width: 40px;
    padding: 10px;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translate(0px, -50%);
    border-radius: 12px;
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
    box-shadow: 0 12px 22px rgba(249, 115, 22, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.search_main .search_body button:hover {
    transform: translate(0px, -50%) scale(1.03);
    box-shadow: 0 16px 26px rgba(249, 115, 22, 0.28);
}

.search_main .search_body button img {
    width: 100%;
    height: 100%;
    filter: brightness(0) invert(1);
}

@media (max-width: 640px) {
    .search_main .search_body {
        max-width: 100%;
        margin-top: 28px;
        padding: 5px;
        border-radius: 18px;
    }

    .search_main .search_body input {
        min-height: 50px;
        padding: 14px 62px 14px 16px;
        border-radius: 14px;
        font-size: 14px;
    }

    .search_main .search_body button {
        right: 10px;
        width: 36px;
        height: 36px;
        padding: 9px;
        border-radius: 11px;
    }
}

/* ======== User Management Styles ======== */
.users-page-container {
    padding: 20px 0;
}

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

.users-title {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
}

.users-btn {
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
}

.users-btn-primary {
    background-color: #3498db;
    color: white;
}
.users-btn-primary:hover {
    background-color: #2980b9;
}

.users-btn-secondary {
    background-color: #ecf0f1;
    color: #34495e;
}
.users-btn-secondary:hover {
    background-color: #dadedf;
}

.users-table-wrapper {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow-x: auto;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}

.users-table th,
.users-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #ecf0f1;
}

.users-table thead {
    background-color: #f8f9fa;
}

.users-table th {
    font-size: 12px;
    font-weight: bold;
    color: #7f8c8d;
    text-transform: uppercase;
}

.users-table tbody tr:last-child td {
    border-bottom: none;
}

.users-table tbody tr:hover {
    background-color: #f8f9fa;
}

.users-role-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    text-transform: capitalize;
}

.users-role-admin {
    background-color: #e8dff5;
    color: #8e44ad;
}

.users-role-user {
    background-color: #d5f5e3;
    color: #27ae60;
}

.users-action-links {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.users-action-links a,
.users-action-links button {
    padding: 10px 15px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    text-transform: capitalize;
}

.users-action-links a:hover,
.users-action-links button:hover {
    text-decoration: underline;
}
.users-link-edit {
    color: #2980b9;
    background: #f8f9fa;
}

.users-link-reset {
    color: #f39c12;
    background: #f8f9fa;
}

.users-link-delete {
    color: #c0392b;
    background: #f8f9fa;
}

.users-form-wrapper {
    background-color: #ffffff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
}

.users-form-group {
    margin-bottom: 25px;
}

.users-form-label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #34495e;
    font-size: 14px;
}

.users-form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #bdc3c7;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}
.users-form-control:focus {
    border-color: #3498db;
}

.users-form-note {
    background-color: #eaf2f8;
    border-left: 4px solid #3498db;
    padding: 15px;
    margin-top: 20px;
    border-radius: 4px;
    font-size: 14px;
    color: #2c3e50;
}

.users-form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 30px;
}

.users-alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid transparent;
}
.users-alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}
.users-alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}
.users-alert-password {
    background-color: #fff3cd;
    border-color: #ffeeba;
    color: #856404;
    margin-top: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.users-alert-password strong {
    display: block;
    margin-bottom: 5px;
}
.users-alert-password span {
    background-color: #ffffff;
    padding: 5px 10px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 1.2em;
    user-select: all;
}
.users-text-danger {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
}
.users-pagination {
    margin-top: 20px;
}
.users-pagination nav {
    display: flex;
    justify-content: center;
}
.users-pagination .pagination {
    display: flex;
    list-style: none;
    padding: 0;
}
.users-pagination .page-item {
    margin: 0 2px;
}
.users-pagination .page-link {
    padding: 8px 12px;
    color: #3498db;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}
.users-pagination .page-item.active .page-link {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}
.users-pagination .page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    background-color: #fff;
    border-color: #dee2e6;
}

.products-index-table {
    table-layout: fixed;
    white-space: normal;
}

.products-index-table th,
.products-index-table td {
    vertical-align: middle;
}

.products-index-table th:nth-child(1),
.products-index-table td:nth-child(1) {
    width: 86px;
}

.products-index-table th:nth-child(2),
.products-index-table td:nth-child(2) {
    width: 21%;
}

.products-index-table th:nth-child(3),
.products-index-table td:nth-child(3) {
    width: 14%;
}

.products-index-table th:nth-child(4),
.products-index-table td:nth-child(4) {
    width: 16%;
}

.products-index-table th:nth-child(5),
.products-index-table td:nth-child(5) {
    width: 10%;
}

.products-index-table th:nth-child(6),
.products-index-table td:nth-child(6) {
    width: 11%;
}

.products-index-table th:nth-child(7),
.products-index-table td:nth-child(7) {
    width: 12%;
}

.products-index-table .product-title-cell,
.products-index-table .product-user-cell,
.products-index-table .product-moderation-message {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.products-index-table .product-code-cell {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    overflow-wrap: anywhere;
}

.products-index-table .users-action-links {
    gap: 8px;
}

.products-index-table .users-action-links a,
.products-index-table .users-action-links button {
    white-space: nowrap;
}

/* ======== Public Product Page Styles ======== */
.public-products-container {
    padding: 15px 0;
}

.public-products-title {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
}

.public-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.public-product-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
}
.public-product-card-img {
    width: 100%;
}
.public-product-card-no-img {
    width: 100%;
    height: 200px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
}
.public-product-card-content {
    padding: 15px;
}
.public-product-card-title {
    font-weight: bold;
    font-size: 18px;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.public-product-card-code {
    color: #777;
    font-size: 14px;
    margin-top: 5px;
}
.public-product-card-link {
    display: inline-block;
    margin-top: 15px;
    color: #3498db;
    font-weight: bold;
}
.public-products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.public-products-view-all {
    color: #3498db;
    font-weight: bold;
}

/* ======== Product Show Page Styles ======== */
.product-show-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
@media (min-width: 768px) {
    .product-show-grid {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
        padding: 40px;
    }
}

.product-gallery .main-image img,
.product-gallery .main-image-placeholder {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #ecf0f1;
}
.main-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: #bdc3c7;
    font-size: 24px;
    min-height: 300px;
}

.thumbnail-images {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}
.thumbnail-images .thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}
.thumbnail-images .thumbnail:hover {
    border-color: #3498db;
}

.product-info .product-title {
    font-size: 32px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
}
.product-info .product-code {
    font-size: 16px;
    color: #7f8c8d;
    margin-bottom: 20px;
}
.product-info .section-title {
    font-size: 20px;
    font-weight: bold;
    color: #34495e;
    margin-top: 30px;
    margin-bottom: 10px;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 5px;
}
.product-info .product-description p {
    line-height: 1.6;
    color: #34495e;
}
.product-info .product-actions {
    margin-top: 40px;
}

/* Admin-specific styles */
.admin-product-thumbnail {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
}
.admin-product-no-img {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: #eee;
    border-radius: 5px;
    text-align: center;
    line-height: 50px;
    font-size: 12px;
    color: #aaa;
}
.badge-yes {
    background-color: #d5f5e3;
    color: #27ae60;
}
.badge-no {
    background-color: #f5e3e3;
    color: #c0392b;
}
.text-center {
    text-align: center;
}
.p-5 {
    padding: 20px;
}
.form-checkbox-label {
    display: flex;
    align-items: center;
}
.form-checkbox {
    margin-right: 10px;
}
.current-images-container {
    margin-top: 15px;
}
.current-images-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}
.current-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
}
.form-actions-secondary-btn {
    margin-right: 10px;
}

.public-products-view-main-all {
    margin-top: 20px;
}

.users-header_analytic {
    justify-content: flex-start;
    align-items: flex-start;
    gap: 10px;
}

/* 404 Page */
.error-page-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100vh;
}
.error-code {
    font-size: 120px;
    font-weight: bold;
    color: #3498db;
    line-height: 1;
}
.error-message {
    font-size: 24px;
    color: #34495e;
    margin-top: 10px;
    margin-bottom: 30px;
}

/* Footer Styles */
.footer {
    background-color: #fff;
    padding: 40px 0 20px;
    margin-top: 60px;
    border-top: 1px solid #eee;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}
.footer-title {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 15px;
    text-transform: uppercase;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    color: #7f8c8d;
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-links a:hover {
    color: #3498db;
}

.footer-brand-section {
    padding: 0;
}

.footer-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #1d3550;
}

.footer-logo-image {
    max-width: 150px;
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.footer-brand-title {
    font-size: 20px;
    line-height: 1.2;
    font-weight: 800;
    color: #1d3550;
}

.footer-brand-section .footer-links {
    margin-top: 10px;
}

.footer-brand-section .footer-links a {
    font-size: 14px;
    font-weight: 500;
    color: #5f6f7a;
}
.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #f4f7f6;
    text-align: center;
    color: #bdc3c7;
    font-size: 14px;
}

/* Dashboard Admin Panel */
.admin-panel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.admin-panel-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 150px;
    position: relative;
}

.admin-panel-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 15px;
}
.admin-panel-icon path {
    stroke: currentColor;
}
.admin-panel-title {
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
}

.admin-panel-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 11px;
    background: #e74c3c;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

@media (max-width: 768px) {
    .products-table-wrapper {
        overflow: visible;
        box-shadow: none;
        background: transparent;
    }

    .products-table-wrapper .users-table tr {
        background: #ffffff;
        border: 1px solid #e9edf2;
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
        margin-bottom: 12px;
    }

    .products-table-wrapper .users-table td {
        padding: 12px 14px 12px 46%;
    }

    .products-table-wrapper .users-table td::before {
        font-size: 11px;
        color: #7f8c8d;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }

    .products-table-wrapper .users-action-links {
        justify-content: flex-end;
    }

    .products-table-wrapper .users-action-links a,
    .products-table-wrapper .users-action-links button {
        padding: 8px 10px;
        font-size: 11px;
    }

    .products-table-wrapper .admin-product-thumbnail,
    .products-table-wrapper .admin-product-no-img {
        width: 44px;
        height: 44px;
    }

    .products-table-wrapper .admin-product-no-img {
        line-height: 44px;
    }

    .public-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .admin-panel-grid {
        display: flex;
        overflow-x: auto;
        gap: 15px;
        padding-bottom: 10px;
        margin-bottom: 30px;
        /* Hide scrollbar for cleaner look */
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }
    .admin-panel-grid::-webkit-scrollbar {
        display: none; /* Chrome, Safari and Opera */
    }

    .admin-panel-card {
        flex: 0 0 100px; /* Fixed width */
        height: 100px;
        padding: 10px;
        border-radius: 12px;
    }
    .admin-panel-icon {
        width: 24px;
        height: 24px;
        margin-bottom: 8px;
    }
    .admin-panel-title {
        font-size: 12px;
        line-height: 1.2;
    }
}

.menu-category-icon {
    width: 15px;
    height: 15px;
    object-fit: contain;
    flex-shrink: 0;
}

.menu-category-link {
    display: flex !important;
    align-items: center;
    gap: 10px;
}

/* ===== WRAPPER ===== */
.pagination-wrapper {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    font-family: inherit;
}

/* ===== CONTAINER ===== */
.pagination-container {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

/* ===== BASE BUTTON STYLE ===== */
.pagination-item {
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
    background: #ffffff;
    text-decoration: none;
    border-right: 1px solid #e5e7eb;
    transition: all 0.2s ease;
    cursor: pointer;
}

/* Remove border on last item */
.pagination-item:last-child {
    border-right: none;
}

/* ===== HOVER ===== */
.pagination-item:hover:not(.pagination-active):not(.pagination-disabled) {
    background: #eff6ff;
    color: #2563eb;
}

/* ===== ACTIVE PAGE ===== */
.pagination-active {
    background: #2563eb;
    color: #ffffff;
    font-weight: 600;
    cursor: default;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.15);
}

/* ===== DISABLED BUTTON ===== */
.pagination-disabled {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

/* ===== ICONS ===== */
.pagination-icon {
    width: 18px;
    height: 18px;
}

/* ===== MOBILE OPTIMIZATION ===== */
@media (max-width: 640px) {
    .pagination-container {
        border-radius: 12px;
        box-shadow: none;
    }

    .pagination-item {
        min-width: 38px;
        height: 38px;
        font-size: 13px;
        padding: 0 10px;
    }
}

/* ================= MOBILE CLASSIC PAGINATION ================= */
@media (max-width: 640px) {

    .pagination-wrapper {
        padding: 0 8px;
    }

    .pagination-container {
        flex-wrap: wrap;              /* Разрешаем перенос */
        justify-content: center;
        gap: 6px;
        padding: 8px;
        border-radius: 12px;
        box-shadow: none;
    }

    .pagination-item {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: 13px;
        border-radius: 8px;
        border: 1px solid #e5e7eb;
    }

    /* Убираем разделительные линии между кнопками */
    .pagination-item {
        border-right: 1px solid #e5e7eb;
    }

    .pagination-item:last-child {
        border-right: 1px solid #e5e7eb;
    }

    /* Активная страница */
    .pagination-active {
        background: #2563eb;
        color: #fff;
        border-color: #2563eb;
        font-weight: 600;
    }

    /* Disabled */
    .pagination-disabled {
        background: #f3f4f6;
        color: #9ca3af;
    }

    /* Стрелки чуть уже */
    .pagination-icon {
        width: 16px;
        height: 16px;
    }

    .product_form_filter {
        display: flex;
        flex-direction: column;
    }

    .users-form-actions {
        margin-top: 0;
    }

    .product_form_filter_item {
        width: 100%;
    }
}

.product-discount-badge {
    position: absolute;
    padding: 5px;
    background: red;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    top: 5px;
    right: 5px;
}

.static-page-container {
    padding: 40px 0px;
    margin: 0 auto;
}

.static-page-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.categories-list {
    display: flex;
    flex-wrap: wrap; /* Always wrap */
    gap: 10px;
}

.category-tag {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f0f2f5;
    color: #333;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #e4e6eb;
}

.category-tag:hover {
    background-color: #e4e6eb;
    color: #000;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .category-tag {
        font-size: 13px;
        padding: 6px 12px;
    }
}

/* ==========================================================================
   NEW STYLES (Swiper, Dashboard, Categories)
   ========================================================================== */

/* --- Swiper Gallery Styles --- */
.product-gallery-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    min-width: 0;
}

.mySwiper2 {
    width: 100%;
    border-radius: 10px;
}

.mySwiper2 .swiper-slide img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    max-height: 600px;
}

.mySwiper {
    height: 100px;
    box-sizing: border-box;
    padding: 10px 0;
    width: 100%;
}

.mySwiper .swiper-slide {
    width: 25%;
    height: 100%;
    opacity: 0.4;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
}

.mySwiper .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mySwiper .swiper-slide-thumb-active {
    opacity: 1;
    border: 2px solid #007bff;
}

@media (max-width: 768px) {
    .mySwiper {
        height: 80px;
    }
}

/* --- Dashboard Tabs & Analytics Styles --- */
.tabs {
    overflow: hidden;
    border-bottom: 1px solid #ccc;
    margin-bottom: 20px;
}
.tab-link {
    background-color: inherit;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    transition: 0.3s;
    font-size: 17px;
}
.tab-link:hover {
    background-color: #ddd;
}
.tab-link.active {
    background-color: #ccc;
}
.tab-content {
    display: none;
}
.analytics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.filter-buttons {
    display: flex;
    gap: 10px;
}
.filter-btn {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    background-color: #f0f0f0;
}
.filter-btn.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

@media (max-width: 768px) {
    .analytics-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .filter-buttons {
        width: 100%;
        overflow-x: auto;
    }
    /* Responsive Tabs */
    .tabs {
        border-bottom: none;
    }
    .tab-link {
        float: none;
        display: block;
        width: 100%;
        text-align: left;
        border-bottom: 1px solid #ccc;
    }
    .tab-link:last-child {
        border-bottom: none;
    }
    .users-form-wrapper .tabs {
        margin-bottom: 0;
    }
    .tab-content {
        margin-top: 20px;
        border-top: 1px solid #ccc;
        padding-top: 20px;
    }

    /* Responsive Tables */
    .responsive-table .users-table thead {
        display: none;
    }
    .responsive-table .users-table,
    .responsive-table .users-table tbody,
    .responsive-table .users-table tr,
    .responsive-table .users-table td {
        display: block;
        width: 100%;
    }
    .responsive-table .users-table tr {
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 5px;
        overflow: hidden;
    }
    .responsive-table .users-table td {
        text-align: right;
        padding-left: 50%;
        position: relative;
        border-bottom: 1px solid #eee;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
    }
    .responsive-table .users-table td:last-child {
        border-bottom: none;
    }
    .responsive-table .users-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        width: calc(50% - 20px);
        padding-right: 10px;
        white-space: normal;
        overflow-wrap: anywhere;
        text-align: left;
        font-weight: bold;
    }

    .responsive-table .users-action-links {
        justify-content: flex-end;
    }

    .responsive-table .users-action-links form {
        max-width: 100%;
    }
}

/* --- Categories Section Styles (Home Page) --- */
.categories-section {
    margin-top: 15px;
}

.categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-tag {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f0f2f5;
    color: #333;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #e4e6eb;
}

.category-tag:hover {
    background-color: #e4e6eb;
    color: #000;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .category-tag {
        font-size: 13px;
        padding: 6px 12px;
    }
}

/* --- Static Page Styles --- */
.static-page-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}
.static-page-content {
    font-size: 1rem;
    line-height: 1.2;
    color: #555;
}

.margin_top_style {
    margin-top: 15px;
}

.footer-links.footer-social-links{
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links.footer-social-links > li{
    margin: 0;
    padding: 0;
}

.footer-links.footer-social-links > li > a{
    width: 42px;
    height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: transparent;
    border: 1px solid #bdc3c7;

    color: #9a9a9a;
    text-decoration: none;

    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.footer-links.footer-social-links .social-icon{
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.footer-links.footer-social-links a[aria-label="Telegram"]{
    color: #2AABEE;
}

.footer-links.footer-social-links a[aria-label="TikTok"]{
    color: #000000;
}

.footer-links.footer-social-links a[aria-label="YouTube"]{
    color: #FF0000;
}

.footer-links.footer-social-links a[aria-label="Instagram"]{
    color: #E1306C;
}

/* focus (keyboard accessibility) */
.footer-links.footer-social-links > li > a:focus-visible{
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,0,0,.15);
}

/* mobile */
@media (max-width: 480px){
    .header_actions {
        gap: 10px;
    }

    .header_profile_link span {
        display: none;
    }

    .header_lang_item {
        min-width: 34px;
        height: 26px;
        padding: 0 8px;
        font-size: 11px;
    }

    .footer-links.footer-social-links > li > a{
        width: 38px;
        height: 38px;
    }
    .footer-links.footer-social-links .social-icon{
        width: 18px;
        height: 18px;
    }
}

.feedback-v2-hero {
    margin-top: 14px;
    padding: 36px 34px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #e7edf3;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.06);
}

.feedback-v2-headline {
    max-width: 840px;
}

.feedback-v2-title {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 900;
    color: #111827;
    letter-spacing: -0.01em;
    text-align: left;
}

.feedback-v2-subtitle {
    margin: 14px 0 0;
    font-size: 17px;
    line-height: 1.65;
    color: #4b5563;
    max-width: 780px;
}

.feedback-v2-contacts {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.feedback-v2-contact-pill {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #d7e0ea;
    color: #1f3f5f;
    font-size: 13px;
    font-weight: 800;
    transition: border-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.feedback-v2-contact-pill:hover {
    border-color: #93c5fd;
    color: #1d4ed8;
    box-shadow: 0 8px 16px rgba(29, 78, 216, 0.08);
}

.feedback-v2-shell {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.feedback-v2-shell--with-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.feedback-v2-shell--no-info {
    display: flex;
}

.feedback-v2-info-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 24px;
    border: 1px solid #e7edf3;
    box-shadow: 0 20px 34px rgba(15, 23, 42, 0.05);
}

.feedback-v2-info-title {
    margin: 0;
    font-size: 24px;
    font-weight: 900;
    color: #111827;
    letter-spacing: -0.01em;
}

.feedback-v2-info-text {
    margin: 12px 0 0;
    color: #4b5563;
    font-size: 15px;
    line-height: 1.65;
}

.feedback-v2-info-contacts {
    margin-top: 16px;
    display: grid;
    gap: 10px;
}

.feedback-v2-form-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 30px;
    border: 1px solid #e7edf3;
    box-shadow: 0 24px 40px rgba(15, 23, 42, 0.07);
    width: 100%;
    max-width: 900px;
    height: 100%;
}

.feedback-v2-shell--with-info .feedback-v2-form-card {
    max-width: none;
}

.feedback-v2-info-card {
    height: 100%;
}

.feedback-v2-form-title {
    margin: 0 0 22px;
    font-size: 28px;
    font-weight: 900;
    color: #111827;
    letter-spacing: -0.01em;
}

.feedback-v2-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.feedback-v2-input {
    border-radius: 14px;
    border-color: #d5dde7;
    background: #ffffff;
    min-height: 50px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.feedback-v2-input:focus,
.feedback-v2-textarea:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.16);
}

.feedback-v2-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.feedback-v2-hint {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
}

.feedback-v2-textarea {
    min-height: 210px;
    resize: vertical;
    border-radius: 14px;
    border-color: #d5dde7;
    background: #ffffff;
}

.feedback-v2-actions {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
}

.feedback-v2-submit-btn {
    min-width: 210px;
    min-height: 50px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.26);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.feedback-v2-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(37, 99, 235, 0.32);
    filter: brightness(1.02);
}

@media (max-width: 980px) {
    .feedback-v2-title {
        font-size: 26px;
    }

    .feedback-v2-shell--with-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .feedback-v2-hero {
        border-radius: 16px;
        padding: 24px 16px;
    }

    .feedback-v2-title {
        font-size: 24px;
    }

    .feedback-v2-subtitle {
        font-size: 15px;
    }

    .feedback-v2-form-card {
        padding: 18px;
        border-radius: 16px;
    }

    .feedback-v2-info-card {
        padding: 18px;
        border-radius: 16px;
    }

    .feedback-v2-grid {
        grid-template-columns: 1fr;
    }

    .feedback-v2-actions {
        justify-content: stretch;
    }

    .feedback-v2-submit-btn {
        width: 100%;
    }
}

.feedback-admin-cards {
    margin-top: 8px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.feedback-admin-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #2563eb;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.feedback-admin-card-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 8px;
}

.feedback-admin-delete-btn {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid #fecaca;
    background: #fff5f5;
    color: #b91c1c;
    font-size: 12px;
    font-weight: 800;
}

.feedback-admin-delete-btn:hover {
    background: #fee2e2;
}

.feedback-admin-card-date {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    white-space: nowrap;
}

.feedback-admin-card-title {
    margin: 0;
    color: #0f172a;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.feedback-admin-card-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #334155;
}

.feedback-admin-meta-item {
    overflow-wrap: anywhere;
}

.feedback-admin-email-link {
    color: #1d4ed8;
    font-weight: 700;
}

.feedback-admin-card-body {
    border-top: 1px solid #e2e8f0;
    padding-top: 10px;
}

.feedback-admin-details {
    margin-top: 8px;
}

.feedback-admin-details summary {
    cursor: pointer;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 800;
}

.feedback-admin-text-full {
    margin-top: 8px;
    border-radius: 8px;
    border: 1px solid #dbe4ee;
    background: #f8fafc;
    padding: 10px 12px;
    color: #1e293b;
    line-height: 1.6;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.feedback-admin-text-full p {
    margin: 0 0 6px;
}

.feedback-admin-text-full p:last-child {
    margin-bottom: 0;
}

.feedback-admin-empty {
    padding: 24px;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    text-align: center;
    color: #64748b;
    background: #f8fafc;
}

@media (max-width: 980px) {
    .feedback-admin-card-head {
        flex-direction: column;
        gap: 8px;
    }

    .feedback-admin-card-date {
        white-space: normal;
    }

    .feedback-admin-card-meta {
        grid-template-columns: 1fr;
    }
}
