:root {
    --primary-color: #000000;
    --primary-color-2: #f2f0f1;
    --primary-color-3: #272727;
    --primary-color-4: #fafafa;
    --primary-color-5: #797878;
    --primary-hover: #444444;
    --secondary-color: #8C5E3B;
    --accent-color: #D1A66E;
    --text-color: #333333;
    --text-light: #6c757d;
    --light-bg: #F8F9FA;
    --border-color: #E0E0E0;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --sidebar-width: 250px;
    --sidebar-collapsed-width: 70px;
    --header-height: 60px;
    --transition-speed: 0.3s;
}

body {
    font-family: 'Inria Sans', sans-serif;
}

.btn-pry {
    background-color: var(--primary-color) !important;
    color: white !important;
}

.btn-pry:hover,
.btn-pry:focus {
    background-color: var(--primary-color-2) !important;
    color: var(--primary-color) !important;
    box-shadow: 0 4px 10px rgba(91, 60, 37, 0.2) !important;
}

.border-primary-5 {
    border-color: var(--primary-color-5) !important;
}

.title-tab-primary-5 {
    color: var(--primary-color-5);
}

.bg-success-custom {
    background-color: #3ac73a !important;
}

.cl-ffe371 {
    color: #ffc633 !important;
}

.text-sm {
    font-size: .875rem !important;
    line-height: 1.25rem !important;
}

.text-ssm {
    font-size: .75rem !important;
    line-height: 1rem !important;
}

.bg-primary-2 {
    background-color: var(--primary-color-2) !important;
}

.bg-primary-4 {
    background-color: var(--primary-color-4) !important;
}

.bg-primary-1 {
    background-color: var(--primary-color) !important;
}

.color-primary {
    color: var(--primary-color) !important;
}


.color-primary-hover:hover,
.color-primary-hover:focus {
    color: var(--primary-color) !important;
}

.color-primary-2 {
    color: var(--primary-color-2) !important;
}

.color-primary-3 {
    color: var(--primary-color-3) !important;
}

.color-primary-4 {
    color: var(--primary-color-4) !important;
}

.color-primary-5 {
    color: var(--primary-color-5) !important;
}

.font-light {
    font-weight: 300;
}

.font-regular {
    font-weight: 400;
}

.font-bold {
    font-weight: 700;
}


/* header dropdown */
@media (max-width: 768px) {
    .dropdown-toggle::after {
        display: none !important;
    }

    /* Also hide the dropdown arrow specifically for user dropdown on mobile */
    #userDropdown::after {
        display: none !important;
    }
}

/* Login */

.login-page-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100%;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-container .login-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

.login-container .login-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.login-container .login-header {
    padding: 25px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}



.login-container .login-header img {
    max-height: 100px;
    margin-bottom: 15px;
}

.login-container .login-header h4 {
    margin: 0;
    color: var(--text-color);
    font-weight: 600;
}

.login-container .login-body {
    padding: 30px;
}

.login-container .form-control {
    height: 46px;
    border-radius: 8px;
    box-shadow: none;
    border: 1px solid var(--border-color);
    padding-left: 15px;
    transition: all 0.3s;
}

.login-container .form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.25rem rgba(209, 166, 110, 0.25);
}

.login-container .input-group-text {
    background-color: white;
    border-color: var(--border-color);
}

.login-container .input-group .form-control {
    border-left: none;
    border-radius: 0 8px 8px 0;
}

.login-container .input-group:focus-within .input-group-text {
    border-color: var(--accent-color);
}

.login-container .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    height: 46px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.login-container .btn-primary:hover,
.btn-primary:focus {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    box-shadow: 0 4px 10px rgba(91, 60, 37, 0.2);
}

.login-container .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.login-container .form-text {
    color: #6c757d;
    font-size: 0.875rem;
}

.login-container .alert {
    border-radius: 8px;
}

.login-container .password-toggle {
    cursor: pointer;
    color: #6c757d;
}

.login-container .password-toggle:hover {
    color: var(--primary-color);
}

@media (max-width: 576px) {
    .login-container .login-container {
        padding: 10px;
    }

    .login-container .login-body {
        padding: 20px;
    }
}

/* Dashboard Layout */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* Sidebar Styles */
.sidebar {
    width: 250px;
    transition: all 0.3s;
    position: fixed;
    height: 100%;
    overflow-y: auto;
    z-index: 1000;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 18px;
}

.sidebar-menu {
    padding: 10px 0;
}

.sidebar-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu ul li {
    padding: 0;
}

.sidebar-menu ul li a {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    color: #6b6b6b;
    text-decoration: none;
    transition: all 0.3s;
    border-right: 4px solid transparent;
}

/* Icon color for non-active items */
.sidebar-menu ul li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    color: #8c9096;
}

/* Hover state */
.sidebar-menu ul li a:hover {
    background-color: var(--primary-color-2);
    color: var(--primary-color);
}

/* Active state */
.sidebar-menu ul li.active a {
    background-color: #f1f3f4;
    /* border-right: 4px solid var(--primary-color); */
}

.sidebar-menu ul li.active span {
    color: #000
}

/* Icon color for active items */
.sidebar-menu ul li.active a i {
    color: var(--primary-color);
}

/* Toggle sidebar button - half-circle style */
.toggle-sidebar-btn {
    position: fixed;
    left: 249px;
    top: 10px;
    width: 24px;
    height: 48px;
    border-radius: 0 24px 24px 0;
    background-color: #fff;
    border: 1px solid #ddd;
    border-left: 0;
    color: #6c757d;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s;
    box-shadow: 3px 0 5px rgba(0, 0, 0, 0.1);
    padding: 0;
}

.toggle-sidebar-btn:hover {
    background-color: #f8f9fa;
}

.toggle-sidebar-btn i {
    margin-left: 2px;
    /* Slight adjustment to center icon in the visible half */
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 250px;
    transition: all 0.3s;
}

.content-wrapper {
    padding: 20px;
}

.page-title {
    margin-bottom: 20px;
    font-size: 24px;
    padding-top: 10px;
}

.close-sidebar {
    background: none;
    border: none;
    color: #6b6b6b;
    font-size: 18px;
    cursor: pointer;
    display: none;
}

/* Collapsed Sidebar */
.sidebar-collapsed .sidebar {
    width: 70px;
}

.sidebar-collapsed .toggle-sidebar-btn {
    left: 69px;
    /* Adjust for collapsed sidebar */
}

.sidebar-collapsed .toggle-sidebar-btn i {
    transform: rotate(180deg);
}

.sidebar-collapsed .sidebar .sidebar-header img {
    width: 40px;
    height: auto;
}

.sidebar-collapsed .sidebar .sidebar-menu ul li a span {
    display: none;
}

.sidebar-collapsed .main-content {
    margin-left: 70px;
}

.sidebar-collapsed .sidebar-menu ul li a {
    padding: 12px 20px;
    justify-content: center;
}

.sidebar-collapsed .sidebar-menu ul li a i {
    margin-right: 0;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 250px;
    }

    .main-content {
        margin-left: 0;
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .close-sidebar {
        display: block;
    }

    .toggle-sidebar-btn {
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        background-color: #57d7db;
        color: white;
        border: none;
    }

    .sidebar.show~.toggle-sidebar-btn {
        left: 249px;
    }

    .sidebar-collapsed .sidebar {
        width: 250px;
    }

    .sidebar-collapsed .main-content {
        margin-left: 0;
    }
}

/* Breadcrumb Styles */
.content-breadcrumb {
    margin-bottom: 20px;
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    padding: 12px 15px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin: 0;
}

.breadcrumb-item {
    font-size: 14px;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.current {
    color: var(--text-light);
}

.breadcrumb-item:not(:last-child)::after {
    content: '/';
    margin: 0 8px;
    color: #d1d1d1;
}

/* Content Card Styles */
.content-card,
.form-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 25px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.content-card:hover,
.form-card:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
}

.card-top,
.form-header {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
    gap: 10px;
}

.card-title,
.form-title {
    display: flex;
    align-items: center;
}

.icon-title {
    color: var(--primary-color);
    font-size: 18px;
    margin-right: 10px;
}

.card-title h5,
.form-title h5 {
    margin: 0;
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.card-content,
.form-body {
    padding: 20px 25px;
}

/* Form Styles */
.category-form-container,
.category-container {
    padding: 0 10px;
}

.category-form {
    max-width: 100%;
}

.form-label-custom {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.required-mark {
    color: #dc3545;
}

.custom-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
}

.custom-input:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(209, 166, 110, 0.15);
}

.input-error {
    border-color: #dc3545;
}

.input-error:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

.error-message {
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
}

.form-hint {
    display: flex;
    align-items: center;
    font-size: 13px;
    margin-top: 6px;
    color: var(--text-light);
}

.form-hint i {
    margin-right: 5px;
    color: var(--secondary-color);
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.action-group {
    display: flex;
    gap: 10px;
}

/* Category Meta */
.category-meta {
    display: flex;
    gap: 12px;
}

.category-slug,
.category-products {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
}

.category-slug {
    background-color: #e9f2ff;
    color: #0052cc;
}

.category-products {
    background-color: #e3fcef;
    color: #00875a;
}

.category-slug i,
.category-products i {
    margin-right: 5px;
    font-size: 11px;
}

/* Button Styles */
.action-button,
.save-button {
    padding: 8px 16px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.action-button:hover,
.save-button:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 4px 10px rgba(91, 60, 37, 0.2);
    color: white;
}

.action-button i,
.save-button i,
.back-button i,
.btn_delete i {
    margin-right: 6px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    color: #555;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}

.back-button:hover {
    background-color: #e9ecef;
    color: #333;
}

.btn_delete {
    padding: 8px 16px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
}

.btn_delete:hover {
    background-color: #bd2130;
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.2);
    color: white;
}

/* Empty State */
.empty-state {
    padding: 40px 20px;
    text-align: center;
}

.empty-state-icon {
    font-size: 50px;
    color: #d1d1d1;
    margin-bottom: 15px;
}

.empty-state h4 {
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.empty-state p {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Data Tables */
.data-table-container {
    overflow-x: auto;
    border-radius: 6px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #f1f1f1;
}

.data-table th {
    background-color: #f9f9f9;
    font-weight: 600;
    color: #444;
    position: sticky;
    top: 0;
    z-index: 1;
}

.data-table tr:hover {
    background-color: rgba(245, 245, 245, 0.8);
}

.column-small {
    width: 80px;
}

.column-medium {
    width: 25%;
}

.column-large {
    width: 40%;
}

.text-center {
    text-align: center;
}

.item-name {
    font-weight: 500;
    color: #333;
}

.item-slug {
    color: var(--text-light);
    font-family: monospace;
    font-size: 13px;
    background-color: #f8f9fa;
    padding: 3px 6px;
    border-radius: 4px;
}

.order-badge {
    display: inline-block;
    min-width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    background-color: #f1f3f4;
    color: #333;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

/* Action Icons */
.action-buttons-wrapper {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.action-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: white;
    transition: all 0.2s;
}

.edit-icon {
    background-color: #17a2b8;
}

.edit-icon:hover {
    background-color: #138496;
    box-shadow: 0 2px 5px rgba(23, 162, 184, 0.3);
    color: white;
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.pagination-info {
    color: var(--text-light);
    font-size: 14px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .pagination-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .pagination-info {
        order: 2;
    }

    .pagination-controls {
        order: 1;
        margin-bottom: 10px;
    }

    .form-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-actions {
        flex-direction: column;
        gap: 15px;
    }

    .back-button,
    .action-group {
        width: 100%;
    }

    .back-button {
        justify-content: center;
    }

    .action-group {
        flex-direction: column;
        gap: 10px;
    }

    .save-button,
    .btn_delete,
    .action-button {
        width: 100%;
        justify-content: center;
    }
}


/* Product Form Styles - Begin */
.form-tabs {
    margin-bottom: 30px;
}

.tab-header {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 25px;
    overflow-x: auto;
    padding-bottom: 1px;
}

.tab-btn {
    padding: 10px 20px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    color: #555;
    position: relative;
    transition: all 0.2s;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.form-check-group {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.custom-checkbox {
    display: flex;
    align-items: center;
}

.custom-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

/* Product Metadata */
.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.product-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
}

.product-badge i {
    margin-right: 5px;
    font-size: 11px;
}

.product-badge.category {
    background-color: #e9f2ff;
    color: #0052cc;
}

.product-badge.slug {
    background-color: #f2f2f2;
    color: #333;
}

.product-badge.status.active {
    background-color: #e3fcef;
    color: #00875a;
}

.product-badge.status.inactive {
    background-color: #f8f8f8;
    color: #666;
}

/* Highlight Items */
.highlight-inputs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.highlight-item {
    position: relative;
}

.highlight-item .remove-highlight {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 14px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.highlight-item .remove-highlight:hover {
    background-color: #fee;
}

.highlight-item .custom-input {
    padding-right: 35px;
}

/* Weight / Pricing Items */
.weight-container {
    margin-bottom: 20px;
}

.weight-container .weight-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #eee;
}

.weight-container .weight-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.weight-container .weight-header h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}

.weight-container .weight-remove-btn {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.weight-container .weight-remove-btn:hover {
    background-color: #fee;
}

.weight-container .weight-remove-btn:disabled {
    color: #ccc;
    background: none;
    cursor: not-allowed;
}

.weight-container .weight-content {
    padding: 0 5px;
}

.weight-container .input-group {
    display: flex;
    align-items: stretch;
}

.weight-container .input-group .custom-input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    flex: 1;
}

.weight-container .input-group-text {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-left: 0;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    color: #555;
}

/* Image upload styles */
.image-upload-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin-bottom: 10px;
}

.image-preview {
    width: 100%;
    height: 100%;
    border: 2px dashed #ddd;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.image-preview:hover {
    border-color: var(--primary-color);
}

.upload-icon {
    font-size: 24px;
    color: #888;
    margin-bottom: 10px;
}

.upload-text {
    font-size: 14px;
    color: #888;
}

.image-preview.has-image .upload-icon,
.image-preview.has-image .upload-text {
    display: none;
}

.image-upload-input {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

/* Multi Image upload */
.multi-image-upload-container {
    position: relative;
}

.multi-image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.image-upload-item {
    width: 100px;
    height: 100px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    background-size: cover;
    background-position: center;
}

.image-upload-item:hover {
    border-color: var(--primary-color);
}

.image-upload-item i {
    font-size: 24px;
    color: #888;
}

.preview-image-item {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.preview-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-image-item .remove-image {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.2s;
}

.preview-image-item:hover .remove-image {
    opacity: 1;
}

.multi-image-upload-input {
    position: absolute;
    width: 100px;
    height: 100px;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

/* Delete Action Container */
.delete-action-container {
    position: static;
    margin-right: 10px;
}

/* Responsive styles for product forms */
@media (max-width: 768px) {

    .form-check-group {
        flex-direction: column;
        gap: 10px;
    }

    .tab-header {
        justify-content: flex-start;
    }

    .image-upload-container {
        width: 120px;
        height: 120px;
    }
}

.discounted-price-display {
    margin: 5px 0 15px;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.discounted-price-label {
    font-size: 14px;
    color: #555;
}

.discounted-price-value {
    font-weight: 600;
    color: #d35400;
    font-size: 15px;
}

/* Product Form Styles - End */

/* Filter styles - Begin */
.filter-section {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background-color: #f9f9f9;
    border-radius: 0 0 5px 5px;
}

.filter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.filter-item {
    flex: 1;
    min-width: 200px;
}

.filter-item label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
}

.filter-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s;
}

.filter-input:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(209, 166, 110, 0.15);
}

.filter-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.filter-btn {
    padding: 8px 16px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.filter-btn:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 4px 10px rgba(91, 60, 37, 0.2);
}

.filter-clear-btn {
    padding: 8px 16px;
    background-color: transparent;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.filter-clear-btn:hover {
    background-color: #f3f3f3;
    color: #333;
}

.active-filters {
    margin: 15px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.active-filters-title {
    font-size: 13px;
    color: #666;
    font-weight: 600;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    background-color: #f1f8ff;
    color: #0366d6;
    padding: 4px 8px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    gap: 5px;
}

.remove-filter {
    color: #0366d6;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    transition: all 0.2s;
}

.remove-filter:hover {
    background-color: rgba(3, 102, 214, 0.1);
}

@media (max-width: 768px) {

    .filter-item {
        width: 100%;
    }

    .filter-actions {
        flex-direction: column;
        width: 100%;
    }

    .filter-btn,
    .filter-clear-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Filter styles - End */

/* Review form styles - Begin */
.review-meta {
    display: flex;
    gap: 15px;
}

.review-product,
.review-date {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
}

.review-product {
    background-color: #e3fcef;
    color: #00875a;
}

.review-date {
    background-color: #e9f2ff;
    color: #0052cc;
}

.review-product i,
.review-date i {
    margin-right: 5px;
    font-size: 11px;
}

.avatar-upload-container {
    width: 100px;
    height: 100px;
    position: relative;
    margin-bottom: 10px;
}

.avatar-preview {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px dashed #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    background-position: center;
    background-size: cover;
}

.avatar-preview .upload-icon {
    font-size: 36px;
    color: #ddd;
}

.avatar-preview.has-image .upload-icon {
    display: none;
}

.avatar-upload-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.rating-input-container {
    margin-bottom: 10px;
}

.rating-option {
    margin-right: 15px;
}

.rating-option input {
    display: none;
}

.rating-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.rating-option label i {
    font-size: 24px;
    color: #ddd;
    margin-bottom: 5px;
    transition: color 0.2s;
}

.rating-option label span {
    font-size: 12px;
    color: #666;
}

.rating-option input:checked~label i,
.rating-option:hover label i,
.rating-option:hover~.rating-option label i {
    color: #f7c427;
}

.rating-option input:checked+label span,
.rating-option:hover label span,
.rating-option:hover~.rating-option label span {
    color: #333;
}

/* Review form styles - End */

/* News styles - Begin */
.thumbnail {
    width: 80px;
    height: 60px;
    object-fit: scale-down;
    border-radius: 6px;
    border: 1px solid #eee;
}

.news-title-wrapper {
    display: flex;
    flex-direction: column;
}

.news-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.news-date {
    white-space: nowrap;
    font-size: 14px;
}

.status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
}

.status-active {
    background-color: #e3fcef;
    color: #00875a;
}

.status-inactive {
    background-color: #f1f1f1;
    color: #666;
}

/* News metadata badges */
.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.news-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 13px;
    background: var(--primary-color-2);
    color: #666;
}

.news-badge i {
    margin-right: 5px;
    font-size: 12px;
}

.news-badge.slug {
    background-color: #e3f2fd;
    color: #1976d2;
}

.news-badge.active {
    background-color: #e3fcef;
    color: #00875a;
}

.news-badge.inactive {
    background-color: #f1f1f1;
    color: #666;
}

.news-badge.created {
    background-color: #fff8e1;
    color: #ff8f00;
}

/* News image upload styles - these extend the existing image upload styles */
.news-image-upload-container {
    width: 250px;
    /* Giảm kích thước từ 100% xuống 250px */
    max-width: 100%;
    margin-bottom: 15px;
}

.news-image-preview {
    height: 150px;
    /* Giảm chiều cao từ 200px xuống 150px */
    background-position: center;
    background-size: contain;
    /* Thay đổi từ cover sang contain để không cắt ảnh */
    background-repeat: no-repeat;
    transition: all 0.3s;
}

.news-image-preview.has-image {
    background-size: cover;
    /* Khi có ảnh thì dùng cover để hiển thị đầy đủ */
}

.news-image-preview:hover {
    background-size: contain;
    /* Khi hover thì hiển thị đầy đủ ảnh */
}

/* Thêm nút xóa ảnh khi đã có ảnh */
.image-preview .remove-image-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dc3545;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
}

.image-preview:hover .remove-image-btn {
    opacity: 1;
}

.featured-badge {
    font-size: 18px;
    display: inline-block;
}

.featured-badge .fa-star {
    color: #ffcc00;
}

.normal-badge {
    font-size: 18px;
    display: inline-block;
    opacity: 0.5;
}

.news-badge.featured {
    background-color: #ffcc00;
    color: #333;
}

/* News styles - End */

/* Franchise Styles */
.franchise-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    margin-right: 8px;
    margin-bottom: 5px;
}

.franchise-badge i {
    margin-right: 5px;
}

.franchise-badge.slug {
    background-color: #e3f2fd;
    color: #1976d2;
}

.franchise-badge.code {
    background-color: #f3e5f5;
    color: #6a1b9a;
}

.franchise-badge.created {
    background-color: #fff8e1;
    color: #ff8f00;
}

.code-badge {
    background-color: #f3e5f5;
    color: #6a1b9a;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-weight: 500;
}

.details-container {
    border: 1px solid #e0e0e0;
    padding: 15px;
    border-radius: 4px;
    background-color: #fafafa;
}

.detail-item {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.detail-item:last-child {
    border-bottom: none;
}

.remove-detail-btn {
    border-radius: 4px;
}

.form-hint {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
    margin-bottom: 4px;
}

.form-hint i {
    margin-right: 4px;
    color: #1976d2;
}

/* Style cho CKEditor đặc điểm */
.cke_chrome.cke_detail {
    border-color: #ddd;
    box-shadow: none;
}

.detail-item .cke_top {
    background: var(--primary-color-2);
    border-bottom: 1px solid #eee;
    padding: 4px;
}

.detail-item .cke_contents {
    min-height: 60px;
}

/* FranchiseContact Styles - Begin */
.contact-code {
    font-weight: 600;
    color: var(--primary-color);
}

.customer-info {
    display: flex;
    flex-direction: column;
}

.customer-name {
    font-weight: 500;
}

.customer-email {
    font-size: 12px;
    color: #6c757d;
}

.franchise-package {
    font-weight: 500;
    color: var(--primary-color);
    background-color: #f8f4f1;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #e8d9cf;
    font-size: 12px;
}

.franchise-not-exist {
    color: #e53935;
    font-style: italic;
    background-color: #ffebee;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.contact-details-container {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eaeaea;
}

.contact-card-title h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
}

.contact-card-title h5 i {
    margin-right: 8px;
    color: #4e73df;
}

.contact-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-date {
    font-size: 0.85rem;
    color: #666;
}

.contact-date i {
    margin-right: 4px;
}

.status-pending {
    background-color: #fff8ec;
    color: #ff9800;
    border: 1px solid #ffe0b2;
}

.status-processing,
.status-contacted {
    background-color: #e8f5e9;
    color: #00897b;
    border: 1px solid #b2dfdb;
}

.status-completed {
    background-color: #e3fcef;
    color: #00875a;
    border: 1px solid #b2dfdb;
}

.status-canceled,
.status-cancelled {
    background-color: #fef0f0;
    color: #e53935;
    border: 1px solid #ffcdd2;
}

.info-section {
    background: #fff;
    border-radius: 8px;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.section-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eaeaea;
}

.info-grid {
    display: grid;
    gap: 0.8rem;
}

.info-item {
    display: flex;
    font-size: 0.9rem;
}

.info-label {
    flex: 0 0 130px;
    color: #6c757d;
    font-weight: 500;
}

.info-value {
    flex: 1;
    color: #333;
}

.info-value a {
    color: #4e73df;
    text-decoration: none;
}

.info-value a:hover {
    text-decoration: underline;
}

.franchise-code {
    font-size: 0.85rem;
    color: #6c757d;
    margin-left: 5px;
}

.note-content {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 1rem;
    min-height: 100px;
    white-space: pre-line;
}

.status-update-section {
    background: #fff;
    border-radius: 8px;
    padding: 1.2rem;
    margin-top: 1rem;
    border-top: 1px solid #eaeaea;
}

.status-update-form {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-select {
    flex: 1;
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid #ced4da;
}

.btn-update {
    background-color: #4e73df;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-update:hover {
    background-color: #2e59d9;
}

.actions-container {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
}

.back-btn {
    background-color: #6c757d;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: background-color 0.2s;
}

.back-btn i {
    margin-right: 5px;
}

.back-btn:hover {
    background-color: #5a6268;
    color: #fff;
}

.delete-btn {
    background-color: #dc3545;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.delete-btn i {
    margin-right: 5px;
}

.delete-btn:hover {
    background-color: #c82333;
}

.action-icon.view-icon {

    background-color: var(--primary-color);
}

.action-icon.view-icon:hover {
    background-color: var(--primary-hover);
}

.status-pending {
    background-color: #fff8ec;
    color: #ff9800;
    border: 1px solid #ffe0b2;
}

.status-contacted {
    background-color: #e8f5e9;
    color: #00897b;
    border: 1px solid #b2dfdb;
}

.status-cancelled {
    background-color: #fef0f0;
    color: #e53935;
    border: 1px solid #ffcdd2;
}



@media (max-width: 768px) {
    .status-update-form {
        flex-direction: column;
        gap: 0.5rem;
    }

    .actions-container {
        flex-direction: column;
        gap: 1rem;
    }

    .back-btn,
    .delete-btn {
        width: 100%;
        justify-content: center;
    }

    .info-item {
        flex-direction: column;
    }

    .info-label {
        margin-bottom: 0.3rem;
    }
}

/* FranchiseContact Styles - End */


/* admin */
.required-asterisk {
    color: #dc3545;
    font-weight: bold;
    margin-left: 2px;
}

.image-upload-container {
    position: relative;
    display: inline-block;
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: var(--primary-color);
    color: white;
}

.custom-zalo {
    display: inline-block;
    width: 1em;
    height: 1em;
    background-image: url("https://upload.wikimedia.org/wikipedia/commons/thumb/9/91/Icon_of_Zalo.svg/50px-Icon_of_Zalo.svg.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    vertical-align: -0.125em;
}

.social-icon .custom-zalo {
    font-size: 1.2em;
}


.flying-image {
    position: fixed;
    z-index: 9999;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    pointer-events: none;
}

.header-action.cart-icon {
    position: relative;
}

/* Hiệu ứng nhấp nháy cho icon giỏ hàng */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.pulse-animation {
    animation: pulse 0.3s ease;
}

/* Đảm bảo container của biểu tượng giỏ hàng có position relative */
.action-btn {
    position: relative;
}

/* Hiệu ứng cho badge số lượng */
.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--primary-color);
    color: white;
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

/* Hiệu ứng cho badge khi thêm mới */
.cart-badge.updated {
    transform: scale(1.5);
    background-color: var(--primary-color-dark);
}