/* Css For CRUD Product */

.product-list-card {
    border: 0 !important;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: none;
}

.product-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: #1f2937;
    font-family: inherit;
}

.product-top-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-left: auto;
}

.product-list-header .dataTables_length {
    float: none !important;
    margin: 0 !important;
}

.product-list-header .dataTables_length label {
    margin: 0;
    font-size: 0.82rem;
    color: #6b7280;
    white-space: nowrap;
}

.product-list-header .dataTables_length select {
    margin: 0 0.35rem;
}

.product-add-btn,
.form-save-btn,
.form-cancel-btn {
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0 0.95rem;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: 10px;
}

.product-add-btn,
.form-save-btn {
    border: 0;
    background: linear-gradient(135deg, #6d7bf5 0%, #4f46e5 100%);
    color: #fff;
    box-shadow: 0 8px 16px rgba(79, 70, 229, 0.2);
}

.form-cancel-btn {
    border: 1px solid #cfd8ea;
    background: #fff;
    color: #475569;
}

.action-dropdown-toggle {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid #dfe4f1;
    background: #fff;
    color: #4b5563;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.action-dropdown-toggle::after {
    display: none;
}

.action-menu {
    min-width: 92px;
    border: 1px solid #e5e9f3;
    border-radius: 10px;
    box-shadow: 0 10px 26px rgba(17, 24, 39, 0.1);
    padding: 0.4rem;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.action-menu.show {
    display: flex;
}

.action-menu .dropdown-item,
.action-menu .dropdown-item-btn {
    border-radius: 8px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.action-menu .dropdown-item-btn {
    border: 0;
    background: transparent;
    color: #dc3545;
}

.action-menu li {
    list-style: none;
}

.product-list-card .dataTables_wrapper {
    padding: 0.65rem 0.75rem 0.5rem;
    background: #fff;
}

.product-list-card .table {
    margin-bottom: 0;
}

.product-list-card .table thead th {
    background: #f2f4fb;
    color: #4b5563;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-bottom: 1px solid #eceff6;
}

.product-list-card .table td {
    border-color: #eef1f7;
    vertical-align: middle;
    color: #111827;
    font-size: 0.875rem;
}

.product-list-card .table td:first-child,
.product-list-card .table th:first-child {
    width: 60px;
    text-align: center;
}

.product-list-card .table td:last-child,
.product-list-card .table th:last-child {
    width: 70px;
    text-align: center;
}

.product-list-card .dataTables_wrapper .dataTables_length {
    float: left;
    margin-top: 0.9rem;
    margin-bottom: 0.7rem;
    color: #6b7280;
    font-size: 0.85rem;
}

.product-list-card .dataTables_wrapper .dataTables_filter {
    margin: 0;
    float: none;
    position: relative;
}

.product-list-card .dataTables_wrapper .dataTables_info {
    padding-top: 0.6rem;
    color: #4b5563;
    border-top: 0 !important;
}

.product-list-card .dataTables_wrapper .dataTables_paginate {
    margin-top: 0;
    padding-top: 0.55rem;
    border-top: 0 !important;
}

.product-list-card table.dataTable.no-footer {
    border-bottom: 0 !important;
}

.product-list-card table.dataTable tbody tr:last-child td {
    border-bottom: 0 !important;
}

#productTopActions .dataTables_filter input {
    border: 1px solid #dbe2f0 !important;
    border-radius: 10px !important;
    min-width: 230px;
    height: 42px;
    margin: 0 !important;
    padding: 0.35rem 0.85rem 0.35rem 2.2rem !important;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") no-repeat 12px center !important;
    font-size: 0.86rem !important;
    color: #111827;
}

#productTopActions .dataTables_filter label {
    margin: 0;
    font-size: 0;
}

.product-list-card .dataTables_wrapper .dataTables_paginate .paginate_button {
    border: 1px solid #e3e7f1 !important;
    background: #fff !important;
    color: #4b5563 !important;
    border-radius: 8px !important;
    min-width: 34px;
    height: 34px;
    line-height: 32px;
    padding: 0 !important;
    margin: 0 3px;
}

.product-list-card .dataTables_wrapper .dataTables_paginate .paginate_button.current,
.product-list-card .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: #4f46e5 !important;
    border-color: #4f46e5 !important;
    color: #fff !important;
    box-shadow: 0 6px 14px rgba(79, 70, 229, 0.25);
}

.product-list-card .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #f8f9ff !important;
    border-color: #d5dbed !important;
    color: #111827 !important;
}

.product-list-card .dataTables_wrapper .dataTables_paginate .paginate_button.previous,
.product-list-card .dataTables_wrapper .dataTables_paginate .paginate_button.next {
    font-size: 0 !important;
    position: relative;
}

.product-list-card .dataTables_wrapper .dataTables_paginate .paginate_button.previous:before,
.product-list-card .dataTables_wrapper .dataTables_paginate .paginate_button.next:before {
    font-size: 0.95rem;
    line-height: 32px;
    color: #4b5563;
}

.product-list-card .dataTables_wrapper .dataTables_paginate .paginate_button.previous:before {
    content: "\2039";
}

.product-list-card .dataTables_wrapper .dataTables_paginate .paginate_button.next:before {
    content: "\203A";
}

@media (max-width: 576px) {
    .product-top-actions {
        width: 100%;
        justify-content: space-between;
    }

    #productTopActions .dataTables_filter input {
        min-width: 190px;
    }
}

.dataTables_wrapper .dataTable thead th {
    position: relative;
    padding-right: 2rem;
}

.dataTables_wrapper .dataTable thead th.sorting,
.dataTables_wrapper .dataTable thead th.sorting_asc,
.dataTables_wrapper .dataTable thead th.sorting_desc {
    cursor: pointer;
}

.dataTables_wrapper .dataTable thead th.sorting:before,
.dataTables_wrapper .dataTable thead th.sorting_asc:before,
.dataTables_wrapper .dataTable thead th.sorting_desc:before,
.dataTables_wrapper .dataTable thead th.sorting:after,
.dataTables_wrapper .dataTable thead th.sorting_asc:after,
.dataTables_wrapper .dataTable thead th.sorting_desc:after {
    position: absolute;
    right: 0.5rem;
    font-family: FontAwesome;
    font-size: 0.7rem;
    color: #b0b6bc;
    display: block;
    line-height: 1;
    width: 1em;
    text-align: center;
}

.dataTables_wrapper .dataTable thead th.sorting:before {
    content: "\f0de";
    top: 0.45rem;
}

.dataTables_wrapper .dataTable thead th.sorting:after {
    content: "\f0dd";
    top: 1.3rem;
}

.dataTables_wrapper .dataTable thead th.sorting_asc:before {
    color: #343a40;
    content: "\f0de";
}

.dataTables_wrapper .dataTable thead th.sorting_asc:after {
    color: #b0b6bc;
    content: "\f0dd";
}

.dataTables_wrapper .dataTable thead th.sorting_desc:before {
    color: #b0b6bc;
    content: "\f0de";
}

.dataTables_wrapper .dataTable thead th.sorting_desc:after {
    color: #343a40;
    content: "\f0dd";
}


/* Css For Public Product */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #f4f6fb;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.products-page {
    padding: 24px 0 60px;
}

.products-wrapper {
    width: 92%;
    max-width: 1220px;
    margin: 0 auto;
}

.products-hero-content {
    padding: 28px 30px;
    color: #fff;
}

.products-hero-content h1 {
    margin: 0 0 8px;
    font-size: 44px;
    line-height: 1.1;
    font-weight: 800;
}

.products-hero-content p {
    margin: 0;
    max-width: 640px;
    opacity: 0.92;
}

.products-breadcrumb {
    margin-top: 16px;
    font-size: 13px;
}

.products-breadcrumb a {
    color: #dbeafe;
    text-decoration: none;
}

.products-breadcrumb span {
    color: #fff;
    font-weight: 700;
}

.products-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.filter-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-pill {
    border: 1px solid #d8e0f0;
    background: #fff;
    color: #334155;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.filter-pill.active {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    border-color: #1d4ed8;
    color: #fff;
}

.products-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.products-search-input {
    width: 300px;
    max-width: 72vw;
    border: 1px solid #d8deea;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    background: #fff;
}

.products-search-btn {
    border: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #2563eb;
    color: #fff;
}

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

.product-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e6ebf4;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.07);
    display: flex;
    flex-direction: column;
}

.product-card-image-wrap {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #e5e7eb;
}

.product-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 11px;
    font-weight: 700;
    color: #1d4ed8;
    background: rgba(255, 255, 255, 0.88);
    border-radius: 999px;
    padding: 6px 10px;
}

.product-card-body {
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card-title {
    margin: 0 0 8px;
    font-size: 31px;
    line-height: 1.15;
    color: #0f172a;
    font-weight: 800;
}

.product-card-summary {
    margin: 0;
    color: #475569;
    line-height: 1.65;
    font-size: 14px;
}

.product-read-more {
    margin-top: auto;
    padding-top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1d4ed8;
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
}

.products-pagination {
    margin-top: 22px;
    display: flex;
    justify-content: center;
}

.products-pagination .pagination {
    margin: 0;
}

.products-pagination .page-link {
    border: none;
    border-radius: 8px;
    margin: 0 2px;
    min-width: 36px;
    text-align: center;
    color: #334155;
    font-weight: 700;
    background: #eef2ff;
}

.products-pagination .page-item.active .page-link {
    background: #1d4ed8;
    color: #fff;
}

.products-empty {
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    text-align: center;
    padding: 30px;
    color: #64748b;
}

.product-detail-page {
    padding: 30px 0 65px;
}

.product-detail-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e7ebf5;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
    padding: 22px;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 22px;
}

.product-main-image {
    width: 100%;
    height: 420px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid #e2e8f0;
}

.product-thumbs {
    margin-top: 10px;
    display: flex;
    gap: 8px;
}

.product-thumb {
    width: 86px;
    height: 56px;
    border-radius: 8px;
    border: 1px solid #dbe3f2;
    object-fit: cover;
}

.product-pill {
    display: inline-flex;
    align-items: center;
    background: #eef2ff;
    color: #3730a3;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.product-detail-title {
    margin: 0;
    font-size: 46px;
    font-weight: 800;
    line-height: 1.15;
    color: #0f172a;
}

.product-detail-summary {
    margin-top: 10px;
    color: #475569;
    line-height: 1.75;
}

.product-meta {
    margin-top: 14px;
    display: grid;
    gap: 10px;
}

.product-meta-row {
    display: grid;
    grid-template-columns: 140px 16px 1fr;
    align-items: center;
    color: #334155;
    font-size: 14px;
}

.product-meta-row strong {
    color: #111827;
}

.product-cta {
    margin-top: 18px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-primary-solid,
.btn-outline-solid {
    height: 44px;
    border-radius: 10px;
    padding: 0 18px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
}

.btn-primary-solid {
    background: #1d4ed8;
    color: #fff;
    border: 1px solid #1d4ed8;
}

.btn-outline-solid {
    background: #fff;
    color: #1d4ed8;
    border: 1px solid #a5b4fc;
}

.detail-section {
    margin-top: 18px;
    background: #fff;
    border: 1px solid #e7ebf5;
    border-radius: 14px;
    padding: 18px;
}

.detail-tabs {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    border-bottom: 1px solid #e8edf6;
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.detail-tab {
    font-size: 14px;
    font-weight: 700;
    color: #475569;
}

.detail-tab.active {
    color: #1d4ed8;
}

.detail-text {
    color: #334155;
    line-height: 1.8;
}

.featured-strip {
    margin-top: 16px;
}

.featured-strip h4 {
    margin: 0 0 12px;
    font-size: 20px;
    color: #0f172a;
}

.featured-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.featured-item {
    background: #fff;
    border: 1px solid #e7ebf5;
    border-radius: 10px;
    overflow: hidden;
}

.featured-item img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    display: block;
}

.featured-item a {
    display: block;
    padding: 10px;
    color: #1e3a8a;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 1100px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-detail-grid {
        grid-template-columns: 1fr;
    }

    .featured-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .products-hero-content h1 {
        font-size: 34px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .products-search-input {
        width: 210px;
    }

    .product-detail-title {
        font-size: 32px;
    }

    .featured-list {
        grid-template-columns: 1fr;
    }
}