* {
    box-sizing: border-box;
}

body {
    background-color: #eef2f7;
    font-family: Arial, sans-serif;
    margin: 0;
}

.navbar {
    background-color: #1e3a8a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 8%;
}

.logo {
    color: rgb(249, 249, 249);
    font-size: 24px;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 17px;
}

.nav-links a:hover {
    color: #facc15;
}

.page-content {
    text-align: center;
    padding: 60px 20px;
}

.profile-card {
    background-color: white;
    width: 100%;
    max-width: 350px;
    margin: auto;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.profile-image {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #2563eb;
}

h1 {
    color: #1e3a8a;
    margin-bottom: 5px;
}

h2 {
    color: #666666;
    font-size: 18px;
    font-weight: normal;
}

p {
    color: #444444;
    line-height: 1.6;
    margin-bottom: 25px;
}

.button {
    display: inline-block;
    background-color: #2563eb;
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 8px;
}

.button:hover {
    background-color: #1e40af;
}
.contact-card {
    background-color: white;
    width: 100%;
    max-width: 500px;
    margin: auto;
    padding: 35px;
    text-align: left;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.contact-card h1,
.contact-card > p {
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #333333;
    font-weight: bold;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    font-family: Arial, sans-serif;
    font-size: 16px;
    border: 1px solid #cccccc;
    border-radius: 7px;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 5px rgba(37, 99, 235, 0.3);
}

.form-group textarea {
    resize: vertical;
}

.submit-button {
    width: 100%;
    background-color: #2563eb;
    color: white;
    padding: 13px;
    border: none;
    border-radius: 8px;
    font-size: 17px;
    cursor: pointer;
}

.submit-button:hover {
    background-color: #1e40af;
}
.welcome-button {
    display: block;
    margin: 15px auto 0;
    background-color: #16a34a;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
}

.welcome-button:hover {
    background-color: #15803d;
}
#successMessage {
    margin-top: 20px;
    min-height: 24px;
}
#successMessage {
    color: green;
    font-weight: bold;
    text-align: center;
    margin-top: 20px;
}
.message-details {
    background-color: #f1f5f9;
    padding: 20px;
    margin: 25px 0;
    border-left: 5px solid #2563eb;
    border-radius: 8px;
    text-align: left;
}

.message-details p {
    margin: 8px 0;
    overflow-wrap: break-word;
}
.admin-page {
    width: 90%;
    max-width: 1200px;
    margin: 50px auto;
}

.admin-header {
    text-align: center;
    margin-bottom: 30px;
}

.admin-header h1 {
    margin-bottom: 10px;
}

.admin-header p {
    font-size: 18px;
}

.table-container {
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    overflow-x: auto;
}

.messages-table {
    width: 100%;
    border-collapse: collapse;
}

.messages-table th,
.messages-table td {
    padding: 14px;
    border-bottom: 1px solid #dddddd;
    text-align: left;
    vertical-align: top;
}

.messages-table th {
    background-color: #1e3a8a;
    color: white;
}

.messages-table tr:hover {
    background-color: #f1f5f9;
}

.messages-table td:nth-child(4) {
    min-width: 250px;
}

.no-messages {
    text-align: center;
    color: #666666;
}
.login-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-card {
    background-color: white;
    width: 100%;
    max-width: 420px;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.login-card h1,
.login-card > p {
    text-align: center;
}

.login-error {
    background-color: #fee2e2;
    color: #b91c1c;
    padding: 12px;
    border-radius: 7px;
    text-align: center;
}

.back-link {
    display: block;
    color: #2563eb;
    text-align: center;
    margin-top: 20px;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}
.delete-button {
    background-color: #dc2626;
    color: white;
    border: none;
    padding: 9px 15px;
    border-radius: 6px;
    cursor: pointer;
}

.delete-button:hover {
    background-color: #b91c1c;
}

.delete-success {
    max-width: 500px;
    margin: 0 auto 25px;
    padding: 12px;
    color: #166534;
    background-color: #dcfce7;
    border-radius: 8px;
    text-align: center;
}
.search-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 700px;
    margin: 0 auto 25px;
}

.search-form input {
    flex: 1;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #cccccc;
    border-radius: 7px;
    outline: none;
}

.search-form input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 5px rgba(37, 99, 235, 0.3);
}

.search-button {
    background-color: #2563eb;
    color: white;
    padding: 12px 22px;
    border: none;
    border-radius: 7px;
    cursor: pointer;
}

.search-button:hover {
    background-color: #1e40af;
}

.reset-button {
    display: inline-flex;
    align-items: center;
    background-color: #64748b;
    color: white;
    padding: 12px 22px;
    border-radius: 7px;
    text-decoration: none;
}

.reset-button:hover {
    background-color: #475569;
}
.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 25px;
}

.pagination a {
    background-color: white;
    color: #2563eb;
    padding: 10px 15px;
    border: 1px solid #2563eb;
    border-radius: 6px;
    text-decoration: none;
}

.pagination a:hover {
    background-color: #dbeafe;
}

.pagination .active-page {
    background-color: #2563eb;
    color: white;
}
@media (max-width: 768px) {

    .navbar {
        flex-direction: column;
        gap: 15px;
        padding: 16px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .admin-page {
        width: 95%;
        margin: 30px auto;
    }

    .search-form {
        flex-direction: column;
    }

    .search-form input,
    .search-button,
    .reset-button {
        width: 100%;
    }

    .table-container {
        padding: 10px;
        overflow-x: auto;
    }

    .messages-table {
        min-width: 850px;
    }

    .pagination {
        margin-bottom: 30px;
    }
}
.edit-button {
    display: inline-block;
    background-color: #f59e0b;
    color: white;
    padding: 9px 15px;
    border-radius: 6px;
    text-decoration: none;
    margin-right: 5px;
}

.edit-button:hover {
    background-color: #d97706;
}

.delete-form {
    display: inline-block;
    margin: 0;
}
.success-notification {
    max-width: 600px;
    margin: 0 auto 25px;
    padding: 14px 20px;
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
}
.success-notification {
    transition: opacity 0.5s ease;
}

.success-notification.hide-notification {
    opacity: 0;
}
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 35px;
}

.dashboard-card {
    color: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.dashboard-card h3 {
    margin: 0 0 12px;
    font-size: 18px;
}

.dashboard-card p {
    color: white;
    margin: 0;
    font-size: 36px;
    font-weight: bold;
}

.total-card {
    background: linear-gradient(135deg, #2563eb, #1e40af);
}

.today-card {
    background: linear-gradient(135deg, #16a34a, #15803d);
}

.recent-card {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

@media (max-width: 768px) {
    .dashboard-cards {
        grid-template-columns: 1fr;
    }
}
.chart-card {
    background-color: white;
    padding: 25px;
    margin-bottom: 35px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.chart-card h2 {
    color: #1e3a8a;
    text-align: center;
    margin: 0 0 30px;
}

.messages-chart {
    height: 250px;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    gap: 15px;
    border-bottom: 2px solid #cbd5e1;
}

.chart-column {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
}

.chart-count {
    color: #1e3a8a;
    font-weight: bold;
    margin-bottom: 6px;
}

.chart-bar {
    width: 70%;
    max-width: 70px;
    min-height: 8px;
    background: linear-gradient(#3b82f6, #1e40af);
    border-radius: 7px 7px 0 0;
}

.chart-label {
    font-size: 14px;
    margin-top: 8px;
    margin-bottom: 8px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .messages-chart {
        gap: 5px;
        overflow-x: auto;
    }

    .chart-column {
        min-width: 65px;
    }
}
.export-button {
    display: inline-block;
    background-color: #15803d;
    color: white;
    padding: 11px 20px;
    border-radius: 7px;
    text-decoration: none;
    font-weight: bold;
}

.export-button:hover {
    background-color: #166534;
}
.print-report-button,
.print-button,
.back-button {
    display: inline-block;
    color: white;
    padding: 11px 20px;
    border: none;
    border-radius: 7px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
}

.print-report-button,
.print-button {
    background-color: #7c3aed;
}

.print-report-button:hover,
.print-button:hover {
    background-color: #6d28d9;
}

.back-button {
    background-color: #64748b;
}

.report-body {
    background-color: #eef2f7;
    padding: 30px;
}

.report-actions {
    max-width: 1200px;
    margin: 0 auto 20px;
    display: flex;
    gap: 10px;
}

.print-report {
    max-width: 1200px;
    margin: auto;
    padding: 30px;
    background-color: white;
    border-radius: 12px;
}

.report-heading {
    text-align: center;
    margin-bottom: 30px;
}

@media print {

    .report-actions {
        display: none;
    }

    .report-body {
        background-color: white;
        padding: 0;
    }

    .print-report {
        max-width: none;
        padding: 0;
        box-shadow: none;
    }

    .report-table {
        width: 100%;
        font-size: 12px;
    }

    .report-table th {
        background-color: #dddddd;
        color: black;
    }

    @page {
        size: landscape;
        margin: 12mm;
    }
}
.status-badge {
    display: inline-block;
    min-width: 75px;
    padding: 7px 10px;
    border-radius: 20px;
    text-align: center;
    font-size: 13px;
    font-weight: bold;
}

.status-new {
    background-color: #dbeafe;
    color: #1d4ed8;
}

.status-read {
    background-color: #fef3c7;
    color: #b45309;
}

.status-replied {
    background-color: #dcfce7;
    color: #15803d;
}
.status-select {
    min-width: 90px;
    padding: 7px 8px;
    border: none;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    outline: none;
}

.status-select.status-new {
    background-color: #dbeafe;
    color: #1d4ed8;
}

.status-select.status-read {
    background-color: #fef3c7;
    color: #b45309;
}

.status-select.status-replied {
    background-color: #dcfce7;
    color: #15803d;
}
.filter-select {
    min-width: 150px;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #cccccc;
    border-radius: 7px;
    background-color: white;
    outline: none;
}

.filter-select:focus {
    border-color: #2563eb;
}
.new-status-card {
    background: linear-gradient(135deg, #0891b2, #0e7490);
}

.read-status-card {
    background: linear-gradient(135deg, #eab308, #ca8a04);
}

.replied-status-card {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}
.messages-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.message-badge {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background-color: #dc2626;
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}
.view-button {
    display: inline-block;
    background-color: #2563eb;
    color: white;
    padding: 9px 15px;
    border-radius: 6px;
    text-decoration: none;
    margin-right: 5px;
}

.view-button:hover {
    background-color: #1e40af;
}

.message-view-card {
    width: 100%;
    max-width: 650px;
    margin: auto;
    padding: 35px;
    background-color: white;
    border-radius: 15px;
    text-align: left;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.message-view-card h1 {
    text-align: center;
    margin-bottom: 30px;
}

.detail-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 15px;
    padding: 13px 0;
    border-bottom: 1px solid #e2e8f0;
}

.detail-label {
    color: #1e3a8a;
    font-weight: bold;
}

.detail-message {
    margin-top: 25px;
}

.detail-message p {
    padding: 18px;
    background-color: #f1f5f9;
    border-left: 5px solid #2563eb;
    border-radius: 7px;
}

.detail-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

@media (max-width: 600px) {
    .detail-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .detail-actions {
        flex-direction: column;
    }
}
.action-buttons {
    min-width: 90px;
}

.action-buttons .view-button,
.action-buttons .edit-button {
    display: block;
    width: 80px;
    margin: 0 0 7px;
    text-align: center;
}

.action-buttons .delete-form {
    display: block;
    width: 80px;
    margin: 0;
}

.action-buttons .delete-button {
    width: 100%;
    margin: 0;
}
.reply-button {
    display: inline-block;
    background-color: #16a34a;
    color: white;
    padding: 11px 20px;
    border-radius: 7px;
    text-decoration: none;
    font-weight: bold;
}

.reply-button:hover {
    background-color: #15803d;
}
/* Change Password Page */

.change-password-page {
    min-height: calc(100vh - 70px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.change-password-card {
    width: 100%;
    max-width: 480px;
    background-color: white;
    padding: 35px;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.change-password-card h1 {
    color: #1e3a8a;
    text-align: center;
    margin: 0 0 30px;
}

.change-password-card .form-group {
    margin-bottom: 20px;
}

.change-password-card label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
}

.change-password-card input[type="password"] {
    display: block;
    width: 100%;
    padding: 12px;
    border: 1px solid #cccccc;
    border-radius: 7px;
    font-size: 16px;
    box-sizing: border-box;
}

.change-password-card input[type="password"]:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.change-password-button {
    width: 100%;
    padding: 13px;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 7px;
    font-size: 16px;
    cursor: pointer;
}

.change-password-button:hover {
    background-color: #1e40af;
}

.back-to-admin {
    display: block;
    margin-top: 20px;
    color: #2563eb;
    text-align: center;
    text-decoration: none;
}

.back-to-admin:hover {
    text-decoration: underline;
}

.password-error,
.password-success {
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 7px;
    text-align: center;
}

.password-error {
    color: #991b1b;
    background-color: #fee2e2;
    border: 1px solid #fca5a5;
}

.password-success {
    color: #166534;
    background-color: #dcfce7;
    border: 1px solid #86efac;
}
.change-password-card input[type="text"] {
    display: block;
    width: 100%;
    padding: 12px;
    border: 1px solid #cccccc;
    border-radius: 7px;
    font-size: 16px;
    box-sizing: border-box;
}

.change-password-card input[type="text"]:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.current-username {
    padding: 12px;
    margin-bottom: 20px;
    background-color: #eff6ff;
    border-radius: 7px;
    text-align: center;
}
.last-login-info {
    max-width: 1000px;
    margin: 20px auto;
    padding: 12px 18px;
    color: #2563eb;
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    text-align: center;
}
/* Activity Logs Search and Filter */

.activity-filter-form {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

.activity-filter-form input {
    flex: 1;
    min-width: 0;
    padding: 11px 13px;
    border: 1px solid #cccccc;
    border-radius: 7px;
    font-size: 14px;
    box-sizing: border-box;
}

.activity-filter-form select {
    width: 190px;
    padding: 11px;
    border: 1px solid #cccccc;
    border-radius: 7px;
    background-color: white;
    font-size: 14px;
}

.activity-filter-form button {
    padding: 11px 22px;
    color: white;
    background-color: #2563eb;
    border: none;
    border-radius: 7px;
    font-size: 14px;
    cursor: pointer;
}

.activity-filter-form button:hover {
    background-color: #1e40af;
}

.activity-filter-form a {
    padding: 11px 18px;
    color: white;
    background-color: #64748b;
    border-radius: 7px;
    text-decoration: none;
    font-size: 14px;
}

.activity-filter-form a:hover {
    background-color: #475569;
}

@media (max-width: 768px) {
    .activity-filter-form {
        flex-direction: column;
        align-items: stretch;
    }

    .activity-filter-form select {
        width: 100%;
    }

    .activity-filter-form button,
    .activity-filter-form a {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }
}
/* Activity Logs Pagination */

.activity-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    margin-top: 25px;
}

.activity-pagination a {
    display: inline-block;
    min-width: 40px;
    padding: 10px 13px;
    color: #2563eb;
    background-color: white;
    border: 1px solid #2563eb;
    border-radius: 7px;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}

.activity-pagination a:hover {
    color: white;
    background-color: #2563eb;
}

.activity-pagination .active-page {
    color: white;
    background-color: #2563eb;
}
.activity-filter-form .activity-export-button {
    color: white;
    background-color: #15803d;
    border: none;
    white-space: nowrap;
}

.activity-filter-form .activity-export-button:hover {
    background-color: #166534;
}
/* Activity Log Action Badges */

.activity-badge {
    display: inline-block;
    padding: 6px 11px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
}

.activity-login {
    color: #166534;
    background-color: #dcfce7;
}

.activity-logout {
    color: #475569;
    background-color: #e2e8f0;
}

.activity-auto-logout {
    color: #9a3412;
    background-color: #ffedd5;
}

.activity-delete-message {
    color: #991b1b;
    background-color: #fee2e2;
}

.activity-update-message {
    color: #1e40af;
    background-color: #dbeafe;
}

.activity-status-change {
    color: #6b21a8;
    background-color: #f3e8ff;
}

.activity-password-change {
    color: #92400e;
    background-color: #fef3c7;
}

.activity-username-change {
    color: #155e75;
    background-color: #cffafe;
}

.activity-export-logs {
    color: #065f46;
    background-color: #d1fae5;
}
/* Activity Summary Cards */

.activity-summary-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 25px 0;
}

.activity-summary-card {
    padding: 22px 15px;
    color: white;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.12);
}

.activity-summary-card h3 {
    margin: 0 0 12px;
    font-size: 15px;
}

.activity-summary-card strong {
    display: block;
    font-size: 30px;
}

.summary-total {
    background: linear-gradient(
        135deg,
        #2563eb,
        #1e40af
    );
}

.summary-today {
    background: linear-gradient(
        135deg,
        #16a34a,
        #15803d
    );
}

.summary-login {
    background: linear-gradient(
        135deg,
        #0891b2,
        #0e7490
    );
}

.summary-security {
    background: linear-gradient(
        135deg,
        #f59e0b,
        #d97706
    );
}

@media (max-width: 900px) {
    .activity-summary-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .activity-summary-cards {
        grid-template-columns: 1fr;
    }
}
.activity-filter-form .activity-print-button {
    color: white;
    background-color: #7c3aed;
    border: none;
    white-space: nowrap;
}

.activity-filter-form .activity-print-button:hover {
    background-color: #6d28d9;
}
/* Recent Activities on Admin Dashboard */

.recent-activities-section {
    margin: 35px 0;
}

.recent-activities-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.recent-activities-header h2 {
    margin: 0;
    color: #1e3a8a;
    font-size: 26px;
}

.recent-activities-header a {
    padding: 9px 15px;
    color: white;
    background-color: #2563eb;
    border-radius: 7px;
    text-decoration: none;
}

.recent-activities-header a:hover {
    background-color: #1e40af;
}

.recent-activities-card {
    padding: 18px;
    overflow-x: auto;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.12);
}

.recent-activities-table {
    width: 100%;
    border-collapse: collapse;
}

.recent-activities-table th,
.recent-activities-table td {
    padding: 12px;
    border-bottom: 1px solid #dddddd;
    text-align: left;
}

.recent-activities-table th {
    color: white;
    background-color: #1e3a8a;
}

.recent-activities-table tr:last-child td {
    border-bottom: none;
}

@media (max-width: 768px) {
    .recent-activities-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }
}
.activity-print-logs {
    color: #6b21a8;
    background-color: #f3e8ff;
}
/* Bulk Message Actions */

.bulk-actions-form {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0 12px;
}

.bulk-actions-form select {
    min-width: 210px;
    padding: 10px 12px;
    border: 1px solid #cccccc;
    border-radius: 7px;
    background-color: white;
    font-size: 14px;
}

.bulk-actions-form button {
    padding: 10px 20px;
    color: white;
    background-color: #2563eb;
    border: none;
    border-radius: 7px;
    font-size: 14px;
    cursor: pointer;
}

.bulk-actions-form button:hover {
    background-color: #1e40af;
}

.messages-table input[type="checkbox"] {
    width: 17px;
    height: 17px;
    cursor: pointer;
}

@media (max-width: 600px) {
    .bulk-actions-form {
        align-items: stretch;
        flex-direction: column;
    }

    .bulk-actions-form select,
    .bulk-actions-form button {
        width: 100%;
    }
}
/* Bulk Action Success Notification */
.success-notification {
    max-width: 1000px;
    margin: 20px auto;
    padding: 14px 18px;
    color: #166534;
    background-color: #dcfce7;
    border: 1px solid #86efac;
    border-radius: 8px;
    font-weight: 600;
}
/* Bulk Activity Badges */
.activity-bulk-status-change {
    color: #075985;
    background-color: #e0f2fe;
}

.activity-bulk-delete {
    color: #991b1b;
    background-color: #fee2e2;
}
/* Selected Messages Counter */
#selected-message-count {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    color: #1e40af;
    background-color: #dbeafe;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}
/* Disabled Bulk Apply Button */
#bulk-apply-button:disabled {
    color: #64748b;
    background-color: #cbd5e1;
    cursor: not-allowed;
    opacity: 0.75;
}

#bulk-apply-button:not(:disabled) {
    color: #ffffff;
    background-color: #2563eb;
    cursor: pointer;
}
/* Highlight Selected Message Row */
.messages-table tbody tr:has(
    .message-checkbox:checked
) {
    background-color: #eff6ff;
    box-shadow: inset 4px 0 0 #2563eb;
}

.messages-table tbody tr {
    transition:
        background-color 0.5s ease,
        box-shadow 0.5s ease;
}
/* Disabled Clear Selection Button */
#clear-message-selection:disabled {
    color: #64748b;
    background-color: #cbd5e1;
    cursor: not-allowed;
    opacity: 0.75;
}

#clear-message-selection:not(:disabled) {
    color: #ffffff;
    background-color: #2563eb;
    cursor: pointer;
}
/* Contact Messages Anchor Spacing */
#contact-messages {
    scroll-margin-top: 90px;
}
/* Showing Messages Information */
.showing-messages {
    display: inline-block;
    margin: 0 0 18px;
    padding: 8px 13px;
    color: #334155;
    background-color: #e2e8f0;
    border-radius: 20px;
    font-size: 13px;
}

.showing-messages strong {
    color: #1e40af;
}
/* Responsive Contact Messages Table */
.messages-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.messages-table-wrapper .messages-table {
    min-width: 950px;
}

.messages-table-wrapper::-webkit-scrollbar {
    height: 9px;
}

.messages-table-wrapper::-webkit-scrollbar-thumb {
    background-color: #94a3b8;
    border-radius: 10px;
}

.messages-table-wrapper::-webkit-scrollbar-track {
    background-color: #e2e8f0;
}
/* Mobile Contact Message Controls */
@media (max-width: 768px) {
    .search-form {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        width: 100%;
    }

    .search-form input,
    .search-form select,
    .search-form button {
        width: 100%;
        max-width: none;
        box-sizing: border-box;
    }

    .export-button,
    .print-report-button {
        display: block;
        width: 100%;
        margin: 8px 0;
        box-sizing: border-box;
        text-align: center;
    }
}
/* Admin Mobile Navigation */
.nav-toggle {
    display: none;
    padding: 7px 12px;
    color: #ffffff;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 6px;
    font-size: 23px;
    line-height: 1;
    cursor: pointer;
}

@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: block;
        margin-left: auto;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        padding-top: 12px;
    }

    .nav-links.nav-open {
        display: flex;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 11px 8px;
        box-sizing: border-box;
        text-align: left;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }
}
/* AyatCollections Store Navbar */
.store-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 25px;
    width: 100%;
    padding: 14px clamp(20px, 6vw, 90px);
    background: #ffffff;
    box-sizing: border-box;
    box-shadow: 0 3px 18px rgba(15, 23, 42, 0.09);
}

.store-logo {
    display: flex;
    align-items: center;
    gap: 11px;
    color: #172554;
    text-decoration: none;
}

.logo-mark {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    color: #ffffff;
    background: linear-gradient(135deg, #7c3aed, #db2777);
    border-radius: 14px;
    font-size: 17px;
    font-weight: 800;
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.28);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text strong {
    color: #172554;
    font-size: 21px;
    line-height: 1.1;
}

.logo-text small {
    margin-top: 3px;
    color: #64748b;
    font-size: 11px;
    letter-spacing: 0.4px;
}

.store-nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-left: auto;
}

.store-nav-links a {
    color: #334155;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.store-nav-links a:hover {
    color: #7c3aed;
}

.admin-login-link {
    padding: 9px 16px;
    color: #ffffff !important;
    background: #172554;
    border-radius: 8px;
}

.store-menu-toggle {
    display: none;
    margin-left: auto;
    padding: 7px 11px;
    color: #172554;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    font-size: 23px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .store-navbar {
        flex-wrap: wrap;
        padding: 12px 18px;
    }

    .store-menu-toggle {
        display: block;
    }

    .store-nav-links {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
        margin-left: 0;
    }

    .store-nav-links.store-menu-open {
        display: flex;
    }

    .store-nav-links a {
        padding: 11px 5px;
        border-top: 1px solid #e2e8f0;
    }

    .admin-login-link {
        margin-top: 6px;
        text-align: center;
    }
}
/* ===== AyatCollections Hero Section ===== */

.store-main {
    width: 100%;
}

.store-hero {
    min-height: 570px;
    padding: 80px 7%;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 60px;
    background: linear-gradient(135deg, #fff7fb 0%, #f2f6ff 100%);
}

.hero-content {
    max-width: 650px;
}

.hero-badge {
    display: inline-block;
    margin-bottom: 18px;
    padding: 8px 16px;
    color: #8b1fa9;
    background-color: #f5dcff;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
}

.hero-content h1 {
    margin: 0 0 20px;
    color: #172a66;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.05;
}

.hero-content > p {
    max-width: 570px;
    margin-bottom: 28px;
    color: #536078;
    font-size: 18px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 35px;
}

.hero-primary-button,
.hero-secondary-button {
    display: inline-block;
    padding: 13px 24px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s ease;
}

.hero-primary-button {
    color: white;
    background: linear-gradient(135deg, #7c35f2, #d2238a);
}

.hero-secondary-button {
    color: #243f91;
    background-color: white;
    border: 1px solid #ccd5ee;
}

.hero-primary-button:hover,
.hero-secondary-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(30, 50, 100, 0.15);
}
/* ===== Hero Benefits ===== */

.hero-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.hero-benefit {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #34405a;
    font-size: 14px;
    font-weight: 600;
}

.hero-benefit span {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    color: white;
    background-color: #243f91;
    border-radius: 50%;
}

/* ===== Hero Showcase ===== */

.hero-showcase {
    min-height: 390px;
    padding: 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    background: linear-gradient(145deg, #243f91, #7b2cbf 60%, #d2238a);
    border-radius: 28px;
    box-shadow: 0 24px 55px rgba(48, 43, 125, 0.25);
    position: relative;
    overflow: hidden;
}

.hero-showcase::before,
.hero-showcase::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.10);
}

.hero-showcase::before {
    width: 220px;
    height: 220px;
    top: -75px;
    right: -65px;
}

.hero-showcase::after {
    width: 160px;
    height: 160px;
    bottom: -55px;
    left: -45px;
}

.showcase-label,
.hero-showcase h2,
.hero-showcase p,
.showcase-categories {
    position: relative;
    z-index: 1;
}

.showcase-label {
    margin-bottom: 12px;
    color: #ffd8ef;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-showcase h2 {
    margin: 0 0 15px;
    font-size: 40px;
}

.hero-showcase p {
    margin: 0 0 25px;
    line-height: 1.7;
}

.showcase-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.showcase-categories span {
    padding: 8px 13px;
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    font-size: 13px;
}
/* ===== Heading Colour Fix ===== */

.hero-showcase h2 {
    color: #ffffff;
}

/* ===== Store Sections ===== */

.store-section {
    padding: 75px 7%;
    background-color: #ffffff;
}

.store-section:nth-of-type(even) {
    background-color: #f4f7fc;
}

.section-heading {
    max-width: 650px;
    margin: 0 auto 40px;
    text-align: center;
}

.section-heading span {
    display: inline-block;
    margin-bottom: 8px;
    color: #b62591;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-heading h2 {
    margin: 0 0 12px;
    color: #19347d;
    font-size: 36px;
}

.section-heading p {
    margin: 0;
    color: #657087;
    font-size: 16px;
    line-height: 1.6;
}

/* ===== Category Cards ===== */

.category-grid {
    max-width: 1250px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.category-card {
    padding: 30px 22px;
    background-color: #ffffff;
    border: 1px solid #e5e9f3;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(24, 48, 110, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 38px rgba(24, 48, 110, 0.15);
}

.category-icon {
    display: grid;
    width: 60px;
    height: 60px;
    margin: 0 auto 18px;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #6c3be8, #d5268c);
    border-radius: 16px;
    font-size: 26px;
}

.category-card h3 {
    margin: 0 0 12px;
    color: #19347d;
    font-size: 19px;
}

.category-card p {
    min-height: 48px;
    margin: 0 0 18px;
    color: #657087;
    font-size: 14px;
    line-height: 1.6;
}

.category-card a {
    color: #7a2bd0;
    font-weight: 700;
    text-decoration: none;
}

.category-card a:hover {
    color: #d5268c;
}
/* ===== Hero Buttons Fix ===== */

.primary-shop-button,
.secondary-shop-button {
    display: inline-block;
    padding: 13px 24px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s ease;
}

.primary-shop-button {
    color: #ffffff;
    background: linear-gradient(135deg, #7138e8, #d5268c);
    box-shadow: 0 8px 20px rgba(113, 56, 232, 0.22);
}

.secondary-shop-button {
    color: #243f91;
    background-color: #ffffff;
    border: 1px solid #cbd4eb;
}

.primary-shop-button:hover,
.secondary-shop-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(33, 53, 110, 0.18);
}

/* ===== Store Benefits Fix ===== */

.store-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.store-benefits span {
    padding: 9px 14px;
    color: #34405a;
    background-color: #ffffff;
    border: 1px solid #e0e5f0;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
}
/* ===== Featured Products Placeholder ===== */

.products-coming-soon {
    max-width: 850px;
    margin: 0 auto;
    padding: 55px 25px;
    color: #526078;
    background: linear-gradient(135deg, #fff7fc, #f1f5ff);
    border: 2px dashed #c9b6ed;
    border-radius: 20px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
}

.products-coming-soon::before {
    content: "🛍️";
    display: block;
    margin-bottom: 14px;
    font-size: 44px;
}
/* ===== AyatCollections Mobile Responsive ===== */

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

@media (max-width: 768px) {

    .store-navbar {
        width: 100%;
        padding: 14px 18px;
    }

    .logo-mark {
        width: 46px;
        height: 46px;
        flex-shrink: 0;
    }

    .logo-text strong {
        font-size: 19px;
    }

    .logo-text small {
        font-size: 11px;
    }

    .store-menu-toggle {
        display: block;
        flex-shrink: 0;
    }

    .store-nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 15px 20px;
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
        background-color: #ffffff;
        box-shadow: 0 12px 25px rgba(24, 43, 95, 0.15);
        z-index: 1000;
    }

    .store-nav-links.nav-open {
        display: flex;
    }

    .store-nav-links a {
        width: 100%;
        padding: 12px;
        text-align: center;
    }

    .store-hero {
        min-height: auto;
        padding: 55px 20px;
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 44px;
    }

    .hero-content > p {
        margin-left: auto;
        margin-right: auto;
        font-size: 16px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .primary-shop-button,
    .secondary-shop-button {
        width: 100%;
        max-width: 290px;
        text-align: center;
    }

    .store-benefits {
        flex-direction: column;
        align-items: center;
    }

    .store-benefits span {
        width: 100%;
        max-width: 290px;
        text-align: center;
    }

    .hero-showcase {
        width: 100%;
        min-height: 330px;
        padding: 35px 25px;
        border-radius: 22px;
        text-align: center;
    }

    .hero-showcase h2 {
        font-size: 31px;
    }

    .showcase-categories {
        justify-content: center;
    }

    .store-section {
        padding: 60px 20px;
    }

    .section-heading h2 {
        font-size: 30px;
    }

    .category-grid {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .category-card {
        width: 100%;
    }

    .products-coming-soon {
        width: 100%;
        padding: 40px 20px;
    }
}
/* ===== Product Management Page ===== */

.products-admin-page {
    min-height: 100vh;
    margin: 0;
    padding: 45px 5%;
    color: #26334d;
    background-color: #f1f5fb;
}

.product-admin-header {
    max-width: 1400px;
    margin: 0 auto 28px;
    padding: 28px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    background: linear-gradient(135deg, #253f91, #7138c9);
    border-radius: 18px;
    box-shadow: 0 14px 35px rgba(35, 56, 120, 0.18);
}

.product-admin-header h1 {
    margin: 0 0 7px;
    color: #ffffff;
    font-size: 32px;
}

.product-admin-header p {
    margin: 0;
    color: #e7eaff;
}

.product-admin-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.back-dashboard-button,
.add-product-button {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
}

.back-dashboard-button {
    color: #243f91;
    background-color: #ffffff;
}

.add-product-button {
    color: #ffffff;
    background: linear-gradient(135deg, #ef4d9b, #d51c79);
}

.product-admin-main {
    max-width: 1400px;
    margin: 0 auto;
}

.product-summary {
    width: 190px;
    margin-bottom: 22px;
    padding: 18px 20px;
    color: #ffffff;
    background: linear-gradient(135deg, #0e9f6e, #087f5b);
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(8, 127, 91, 0.17);
}

.product-summary span {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
}

.product-summary strong {
    font-size: 30px;
}

.product-table-wrapper {
    width: 100%;
    overflow-x: auto;
    background-color: #ffffff;
    border-radius: 18px;
    box-shadow: 0 14px 35px rgba(31, 51, 105, 0.12);
}

.product-admin-table {
    width: 100%;
    min-width: 1100px;
    border-collapse: collapse;
}

.product-admin-table th {
    padding: 16px 14px;
    color: #ffffff;
    background-color: #243f91;
    text-align: left;
    white-space: nowrap;
}

.product-admin-table td {
    padding: 15px 14px;
    border-bottom: 1px solid #e1e5ee;
    vertical-align: middle;
}

.product-admin-table tbody tr:hover td {
    background-color: #f5f8ff;
}

.admin-product-image {
    width: 58px;
    height: 58px;
    object-fit: cover;
    border-radius: 9px;
}

.no-product-image {
    display: inline-grid;
    width: 58px;
    height: 58px;
    place-items: center;
    color: #78849a;
    background-color: #edf1f7;
    border-radius: 9px;
    font-size: 11px;
    text-align: center;
}
/* ===== Add Product Page ===== */

.add-product-page {
    min-height: 100vh;
    margin: 0;
    padding: 45px 20px;
    color: #28354e;
    background-color: #f1f5fb;
}

.add-product-container {
    width: 100%;
    max-width: 1050px;
    margin: 0 auto;
}

.add-product-heading {
    margin-bottom: 25px;
    padding: 28px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: linear-gradient(135deg, #253f91, #7138c9);
    border-radius: 18px;
    box-shadow: 0 14px 35px rgba(35, 56, 120, 0.18);
}

.add-product-heading h1 {
    margin: 0 0 7px;
    color: #ffffff;
    font-size: 32px;
}

.add-product-heading p {
    margin: 0;
    color: #e8eaff;
}

.back-products-button {
    display: inline-block;
    padding: 12px 18px;
    color: #243f91;
    background-color: #ffffff;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.add-product-form {
    padding: 32px;
    background-color: #ffffff;
    border-radius: 18px;
    box-shadow: 0 14px 35px rgba(31, 51, 105, 0.12);
}

.product-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.product-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-form-group label {
    color: #263c79;
    font-weight: 700;
}

.product-form-group input,
.product-form-group select,
.product-form-group textarea {
    width: 100%;
    padding: 12px 14px;
    color: #26334d;
    background-color: #ffffff;
    border: 1px solid #ccd5e5;
    border-radius: 8px;
    font: inherit;
}

.product-form-group input:focus,
.product-form-group select:focus,
.product-form-group textarea:focus {
    outline: none;
    border-color: #7437d3;
    box-shadow: 0 0 0 3px rgba(116, 55, 211, 0.12);
}

.full-width-field,
.product-image-field,
.checkbox-field {
    grid-column: 1 / -1;
}

.product-form-group textarea {
    min-height: 130px;
    resize: vertical;
}
/* ===== Product Form Final Controls ===== */

.checkbox-field {
    padding: 16px;
    background-color: #f5f7fc;
    border: 1px solid #e0e5ef;
    border-radius: 10px;
}

.checkbox-field label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-field input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
    accent-color: #7138c9;
    box-shadow: none;
}

.product-image-field small {
    color: #68748a;
    font-size: 13px;
}

.product-form-actions {
    margin-top: 28px;
    padding-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    border-top: 1px solid #e1e6ef;
}

.save-product-button,
.cancel-product-button {
    display: inline-block;
    min-width: 150px;
    padding: 13px 22px;
    border-radius: 8px;
    font: inherit;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.save-product-button {
    color: #ffffff;
    background: linear-gradient(135deg, #7138e8, #d5268c);
    border: none;
}

.cancel-product-button {
    color: #40506d;
    background-color: #e8edf5;
    border: 1px solid #d3dbe8;
}

.save-product-button:hover,
.cancel-product-button:hover {
    transform: translateY(-2px);
}

.product-form-message {
    margin-bottom: 20px;
    padding: 14px 18px;
    border-radius: 9px;
    font-weight: 700;
}

.product-form-message.error-message {
    color: #991b1b;
    background-color: #fee2e2;
    border: 1px solid #fca5a5;
}

.product-form-message.success-message {
    color: #166534;
    background-color: #dcfce7;
    border: 1px solid #86efac;
}
/* ===== Product Image Choose Button ===== */

.product-image-field input[type="file"] {
    padding: 8px;
    color: #536078;
    background-color: #f8faff;
    border: 1px dashed #aebce0;
    cursor: pointer;
}

.product-image-field input[type="file"]::file-selector-button {
    margin-right: 14px;
    padding: 10px 17px;
    color: #ffffff;
    background: linear-gradient(135deg, #7138e8, #d5268c);
    border: none;
    border-radius: 7px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s ease;
}

.product-image-field input[type="file"]::file-selector-button:hover {
    background: linear-gradient(135deg, #5f2fd0, #bd1d78);
}
/* ===== Product Action Messages ===== */

.product-action-message {
    width: calc(100% - 10%);
    max-width: 1400px;
    margin: 0 auto 22px;
    padding: 15px 20px;
    border-radius: 10px;
    font-weight: 700;
    text-align: center;
}

.product-action-message.success-message {
    color: #166534;
    background-color: #dcfce7;
    border: 1px solid #86efac;
}
/* ===== Product Row Actions ===== */

.product-row-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.delete-product-form {
    margin: 0;
}

.edit-product-button,
.delete-product-button {
    display: inline-block;
    min-width: 72px;
    padding: 9px 13px;
    border-radius: 7px;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.edit-product-button {
    color: #ffffff;
    background-color: #f59e0b;
}

.delete-product-button {
    color: #ffffff;
    background-color: #dc2626;
    border: none;
}

.edit-product-button:hover {
    background-color: #d97706;
}

.delete-product-button:hover {
    background-color: #b91c1c;
}
.product-action-message.error-message {
    color: #991b1b;
    background-color: #fee2e2;
    border: 1px solid #fca5a5;
}
/* ==============================
   Featured Products
============================== */

.featured-products-grid {
    width: min(1640px, 90%);
    margin: 45px auto 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
}

.store-product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    box-shadow: 0 15px 35px rgba(30, 58, 138, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.store-product-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 22px 45px rgba(30, 58, 138, 0.16);
}

.store-product-image-wrapper {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: #f4f6fb;
}

.store-product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.store-product-card:hover .store-product-image {
    transform: scale(1.04);
}

.store-product-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 58px;
    background: linear-gradient(135deg, #f6efff, #eef3ff);
}

.store-product-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px;
}

.store-product-category {
    display: inline-block;
    width: fit-content;
    margin-bottom: 12px;
    padding: 6px 12px;
    color: #a21caf;
    background: #fae8ff;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

.store-product-content h3 {
    margin: 0 0 12px;
    color: #142d68;
    font-size: 21px;
    line-height: 1.35;
}

.store-product-content p {
    display: -webkit-box;
    margin: 0 0 22px;
    overflow: hidden;
    color: #5d6780;
    font-size: 15px;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    line-clamp: 2;
-webkit-line-clamp: 2;
    -webkit-line-clamp: 3;
}

.store-product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: auto;
}

.store-product-footer strong {
    color: #142d68;
    font-size: 18px;
    white-space: nowrap;
}

.store-product-footer a {
    padding: 10px 15px;
    color: #ffffff;
    background: linear-gradient(135deg, #7c3aed, #db2777);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.3s ease;
}

.store-product-footer a:hover {
    opacity: 0.85;
}

.out-of-stock {
    padding: 9px 12px;
    color: #b91c1c;
    background: #fee2e2;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
}

/* Tablet */

@media (max-width: 1100px) {
    .featured-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile */

@media (max-width: 650px) {
    .featured-products-grid {
        width: 92%;
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .store-product-image-wrapper {
        height: 330px;
    }

    .store-product-content {
        padding: 20px;
    }
}
/* ==============================
   Product Detail Page
============================== */

.product-back-link {
    padding: 12px 20px;
    color: #ffffff;
    background: linear-gradient(135deg, #7c3aed, #db2777);
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.product-back-link:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.product-detail-page {
    min-height: calc(100vh - 105px);
    padding: 70px 5%;
    background: linear-gradient(135deg, #fff8fc, #f2f6ff);
}

.product-detail-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: min(1200px, 100%);
    margin: 0 auto;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 28px;
    box-shadow: 0 25px 60px rgba(30, 58, 138, 0.14);
}

.product-detail-image-area {
    min-height: 600px;
    overflow: hidden;
    background: linear-gradient(135deg, #f7efff, #eef3ff);
}

.product-detail-image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 600px;
    object-fit: cover;
    object-position: center;
}

.product-detail-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 600px;
    font-size: 100px;
}

.product-detail-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
}

.product-detail-category {
    width: fit-content;
    margin-bottom: 20px;
    padding: 8px 16px;
    color: #a21caf;
    background: #fae8ff;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
}

.product-detail-content h1 {
    margin: 0 0 15px;
    color: #142d68;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.15;
}

.product-detail-s-sku {
    margin: 0 0 25px;
    color: #68738b;
    font-size: 15px;
}

.product-detail-description {
    margin-bottom: 28px;
    color: #505d78;
    font-size: 17px;
    line-height: 1.8;
}

.product-detail-price {
    margin: 0 0 18px;
    color: #7c3aed;
    font-size: 32px;
    font-weight: 800;
}

.product-in-stock {
    margin: 0 0 25px;
    color: #07845c;
    font-size: 15px;
    font-weight: 700;
}

.product-out-of-stock {
    margin: 0 0 25px;
    color: #dc2626;
    font-weight: 700;
}

.add-to-cart-button {
    width: 100%;
    padding: 17px 24px;
    color: #ffffff;
    background: linear-gradient(135deg, #7c3aed, #db2777);
    border: 0;
    border-radius: 13px;
    cursor: pointer;
    font: inherit;
    font-size: 17px;
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.add-to-cart-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(190, 36, 146, 0.25);
}

.add-to-cart-button:disabled {
    cursor: not-allowed;
    background: #94a3b8;
}

/* Product Detail Responsive */

@media (max-width: 850px) {
    .product-detail-page {
        padding: 35px 4%;
    }

    .product-detail-card {
        grid-template-columns: 1fr;
    }

    .product-detail-image-area,
    .product-detail-image,
    .product-detail-no-image {
        min-height: 420px;
    }

    .product-detail-content {
        padding: 38px 28px;
    }
}

@media (max-width: 520px) {
    .product-back-link {
        padding: 10px 13px;
        font-size: 13px;
    }

    .product-detail-image-area,
    .product-detail-image,
    .product-detail-no-image {
        min-height: 340px;
    }

    .product-detail-content {
        padding: 30px 20px;
    }

    .product-detail-price {
        font-size: 27px;
    }
}
/* ==============================
   Shopping Cart
============================== */

.cart-page {
    min-height: calc(100vh - 105px);
    padding: 60px 5%;
    background: linear-gradient(135deg, #fff8fc, #f2f6ff);
}

.cart-page-heading {
    margin-bottom: 35px;
    text-align: center;
}

.cart-page-heading > span {
    color: #c51b91;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.cart-page-heading h1 {
    margin: 8px 0 10px;
    color: #142d68;
    font-size: clamp(36px, 5vw, 54px);
}

.cart-page-heading p {
    margin: 0;
    color: #64708a;
    font-size: 17px;
}

.cart-success-message {
    width: min(1300px, 100%);
    margin: 0 auto 28px;
    padding: 17px 20px;
    color: #087443;
    background: #d9fbe8;
    border: 1px solid #68e2a2;
    border-radius: 13px;
    font-weight: 700;
    text-align: center;
}

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: start;
    gap: 30px;
    width: min(1300px, 100%);
    margin: 0 auto;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-item {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) auto;
    align-items: center;
    gap: 25px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e1e7f0;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(30, 58, 138, 0.08);
}

.cart-item-image-wrapper {
    width: 150px;
    height: 150px;
    overflow: hidden;
    background: #f2f3ff;
    border-radius: 15px;
}

.cart-item-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.cart-item-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 42px;
    background: linear-gradient(135deg, #f6efff, #eef3ff);
}

.cart-item-information > span {
    display: inline-block;
    margin-bottom: 8px;
    padding: 5px 11px;
    color: #a21caf;
    background: #fae8ff;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.cart-item-information h2 {
    margin: 0 0 13px;
    color: #142d68;
    font-size: 22px;
}

.cart-item-information p {
    margin: 6px 0;
    color: #5d6780;
    font-size: 15px;
}

.cart-item-subtotal {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 7px;
    text-align: right;
}

.cart-item-subtotal small {
    color: #758097;
    font-size: 13px;
}

.cart-item-subtotal strong {
    color: #7c3aed;
    font-size: 20px;
    white-space: nowrap;
}

.cart-summary {
    position: sticky;
    top: 125px;
    padding: 30px;
    background: #ffffff;
    border: 1px solid #e1e7f0;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(30, 58, 138, 0.1);
}

.cart-summary h2 {
    margin: 0 0 25px;
    color: #142d68;
    font-size: 25px;
}

.cart-summary-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 15px 0;
    color: #59657d;
    border-bottom: 1px solid #e5e9f1;
}

.cart-grand-total {
    margin-bottom: 22px;
    color: #142d68;
    font-size: 18px;
    border-bottom: 0;
}

.cart-grand-total strong {
    color: #7c3aed;
    font-size: 23px;
}

.cart-checkout-button {
    width: 100%;
    padding: 16px 20px;
    color: #ffffff;
    background: linear-gradient(135deg, #7c3aed, #db2777);
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.cart-continue-link {
    display: block;
    margin-top: 18px;
    color: #6d28d9;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.empty-cart {
    width: min(750px, 100%);
    margin: 0 auto;
    padding: 70px 30px;
    background: #ffffff;
    border: 2px dashed #cfb6ff;
    border-radius: 24px;
    text-align: center;
}

.empty-cart > div {
    margin-bottom: 18px;
    font-size: 70px;
}

.empty-cart h2 {
    margin: 0 0 12px;
    color: #142d68;
    font-size: 30px;
}

.empty-cart p {
    margin: 0 0 28px;
    color: #64708a;
}

.empty-cart a {
    display: inline-block;
    padding: 14px 24px;
    color: #ffffff;
    background: linear-gradient(135deg, #7c3aed, #db2777);
    border-radius: 11px;
    font-weight: 700;
    text-decoration: none;
}

/* Cart Responsive */

@media (max-width: 950px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }
}

@media (max-width: 650px) {
    .cart-page {
        padding: 35px 4%;
    }

    .cart-item {
        grid-template-columns: 105px minmax(0, 1fr);
        gap: 16px;
        padding: 15px;
    }

    .cart-item-image-wrapper {
        width: 105px;
        height: 120px;
    }

    .cart-item-information h2 {
        font-size: 18px;
    }

    .cart-item-subtotal {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        padding-top: 14px;
        border-top: 1px solid #e5e9f1;
    }
}
/* Product Quantity */

.product-quantity-field {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 18px;
}

.product-quantity-field label {
    color:iente #142d68;
    font-size: 15px;
    font-weight: 700;
}

.product-quantity-field input {
    width: 110px;
    height: 48px;
    padding: 8px 14px;
    color: #142d68;
    background: #ffffff;
    border: 2px solid #d8deea;
    border-radius: 10px;
    outline: none;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
}

.product-quantity-field input:focus {
    border-color: #8b35e8;
    box-shadow: 0 0 0 4px rgba(139, 53, 232, 0.12);
}

.add-to-cart-button {
    margin-top: 0;
}
/* Cart Update and Remove Actions */

.cart-item-actions {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.cart-update-form {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.cart-update-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #59657d;
    font-size: 13px;
    font-weight: 700;
}

.cart-update-form input[type="number"] {
    width: 75px;
    height: 40px;
    padding: 7px 10px;
    color: #142d68;
    background: #ffffff;
    border: 1px solid #ccd4e2;
    border-radius: 8px;
    outline: none;
    font: inherit;
    font-weight: 700;
}

.cart-update-form input[type="number"]:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.cart-update-button,
.cart-remove-button {
    height: 40px;
    padding: 8px 15px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.cart-update-button {
    color: #ffffff;
    background: #7c3aed;
}

.cart-remove-button {
    color: #ffffff;
    background: #dc2626;
}

.cart-update-button:hover,
.cart-remove-button:hover {
    transform: translateY(-1px);
    opacity: 0.88;
}

@media (max-width: 650px) {
    .cart-item-actions {
        align-items: stretch;
    }

    .cart-update-form {
        flex-wrap: wrap;
    }
}
/* ==============================
   Checkout Page
============================== */

.checkout-page {
    min-height: calc(100vh -laravel 105px);
    padding: 55px 5% 80px;
    background: linear-gradient(135deg, #fff8fc, #f2f6ff);
}

.checkout-heading {
    margin-bottom: 35px;
    text-align: center;
}

.checkout-heading > span {
    color: #c51b91;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.checkout-heading h1 {
    margin: 8px 0 10px;
    color: #142d68;
    font-size: clamp(36px, 5vw, 54px);
}


.checkout-heading p {
    margin: 0;
    color: #64708a;
    font-size: 17px;
}

.checkout-error-message {
    width: min minmin(1250px, 100%);
    margin: 0 auto 25px;
    padding: 16px 20px;
    color: #b91c1c;
    background: #fee2e2;
    border: 1px solid #fca5a5;
    border-radius: 12px;
    font-weight: 700;
    text-align: center;
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    align-items: start;
    gap: 30px;
    width: min(1250px, 100%);
    margin: 0 auto;
}

.checkout-form-card,
.checkout-summary {
    background: #ffffff;
    border: 1px solid #e1e7f0;
    border-radius: 22px;
    box-shadow: 0 15px 35px rgba(30, 58, 138, 0.1);
}

.checkout-form-card {
    padding: 35px;
}

.checkout-form-card h2,
.checkout-summary h2 {
    margin: 0 0 28px;
    color: #142d68;
    font-size: 27px;
}

.checkout-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.checkout-form-group {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.checkout-full-width {
    grid-column: 1 / -1;
}

.checkout-form-group label {
    color: #142d68;
    font-size: 14px;
    font-weight: 700;
}

.checkout-form-group label small {
    color: #8290a8;
    font-weight: 500;
}

.checkout-form-group input,
.checkout-form-group textarea {
    width: 100%;
    padding: 14px 15px;
    color: #142d68;
    background: #ffffff;
    border: 1px solid #d7dfeb;
    border-radius: 11px;
    outline: none;
    font: inherit;
    font-size: 15px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.checkout-form-group textarea {
    resize: vertical;
}

.checkout-form-group input:focus,
.checkout-form-group textarea:focus {
    border-color: #8b35e8;
    box-shadow: 0 0 0 4px rgba(139, 53, 232, 0.11);
}

.checkout-payment-method {
    margin: 28px 0;
    padding: 20px;
    background: #f7f3ff;
    border: 1px solid #e1d4ff;
    border-radius: 13px;
}

.checkout-payment-method > span {
    display: block;
    margin-bottom: 13px;
    color: #142d68;
    font-weight: 800;
}

.checkout-payment-method label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #4d5870;
    font-weight: 700;
}

.checkout-payment-method input {
    width: 18px;
    height: 18px;
    accent-color: #8b35e8;
}

.place-order-button {
    width: 100%;
    padding: 17px 22px;
    color: #ffffff;
    background: linear-gradient(135deg, #7c3aed, #db2777);
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    font: inherit;
    font-size: 17px;
    font-weight: 800;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.place-order-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(190, 36, 146, 0.25);
}

.checkout-summary {
    position: sticky;
    top: 125px;
    padding: 30px;
}

.checkout-product-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.checkout-product-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #e5e9f1;
}

.checkout-product-item div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.checkout-product-item strong {
    color: #142d68;
    font-size: 15px;
}

.checkout-product-item small {
    color: #758097;
}

.checkout-product-item > span {
    color: #5e27c7;
    font-weight: 700;
    white-space: nowrap;
}

.checkout-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding-top: 25px;
    color: #142d68;
    font-size: 18px;
    font-weight: 700;
}

.checkout-total strong {
    color: #7c3aed;
    font-size: 24px;
    white-space: nowrap;
}

/* Checkout Responsive */

@media (max-width: 950px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .checkout-summary {
        position: static;
    }
}

@media (max-width: 650px) {
    .checkout-page {
        padding: 35px 4% 60px;
    }

    .checkout-form-card,
    .checkout-summary {
        padding: 24px 18px;
    }

    .checkout-form-grid {
        grid-template-columns: 1fr;
    }

    .checkout-full-width {
        grid-column: auto;
    }

    .checkout-heading h1 {
        font-size: 36px;
    }
}
a.cart-checkout-button {
    display: block;
    text-align: center;
    text-decoration: none;
}
/* ==============================
   Order Success Page
============================== */

.order-success-page {
    min-height: calc(100vh - 105px);
    padding: 60px 5% 80px;
    background: linear-gradient(135deg, #fff8fc, #f2f6ff);
}

.order-success-card {
    width: min(850px, 100%);
    margin: 0 auto;
    padding: 50px;
    background: #ffffff;
    border: 1px solid #e1e7f0;
    border-radius: 26px;
    box-shadow: 0 22px 55px rgba(30, 58, 138, 0.13);
    text-align: center;
}

.order-success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 85px;
    height: 85px;
    margin: 0 auto 20px;
    color: #ffffff;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    font-size: 42px;
    font-weight: 800;
    box-shadow: 0 12px 25px rgba(16, 185, 129, 0.25);
}

.order-success-label {
    color: #059669;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.order-success-card h1 {
    margin: 10px 0 14px;
    color: #142d68;
    font-size: clamp(34px, 5vw, 50px);
}

.order-success-intro {
    margin: 0 auto 28px;
    color: #63708a;
    font-size: 17px;
    line-height: 1.7;
}

.order-number-box {
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #f4edff, #fff0f8);
    border: 1px dashed #b78aff;
    border-radius: 15px;
}

.order-number-box span {
    display: block;
    margin-bottom: 7px;
    color: #68738b;
    font-size: 13px;
}

.order-number-box strong {
    color: #7c3aed;
    font-size: 23px;
    letter-spacing: 1px;
}

.order-success-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 30px;
    text-align: left;
}

.order-success-details > div {
    padding: 17px;
    background: #f8faff;
    border: 1px solid #e4e9f2;
    border-radius: 12px;
}

.order-success-details span {
    display: block;
    margin-bottom: 6px;
    color: #7a859c;
    font-size: 12px;
}

.order-success-details strong {
    color: #142d68;
    font-size: 15px;
}

.order-success-products {
    margin-bottom: 20px;
    padding: 25px;
    background: #fbfcff;
    border: 1px solid #e4e9f2;
    border-radius: 15px;
    text-align: left;
}

.order-success-products h2 {
    margin: 0 0 18px;
    color: #142d68;
    font-size: 22px;
}

.order-success-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #e4e9f2;
}

.order-success-item:last-child {
    border-bottom: 0;
}

.order-success-item div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.order-success-item div > strong {
    color: #142d68;
}

.order-success-item small {
    color: #748097;
}

.order-success-item > strong {
    color: #7c3aed;
    white-space: nowrap;
}

.order-success-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    color: #142d68;
    background: #f4edff;
    border-radius: 14px;
    font-size: 18px;
    font-weight: 700;
}

.order-success-total strong {
    color: #7c3aed;
    font-size: 25px;
}

.order-success-note {
    margin:lv auto 30px;
    color: #65718a;
}

.order-success-button {
    display: inline-block;
    padding: 15px 28px;
    color: #ffffff;
    background: linear-gradient(135deg, #7c3aed, #db2777);
    border-radius: 12px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.3s ease,    ;
}

.order-success-button:hover {
    transform: translateY(-2px);
}

/* Order Success Responsive */

@media (max-width: 650px) {
    .order-success-page {
        padding: 35px 4%;
    }

    .order-success-card {
        padding: 35px 20px;
    }

    .order-success-details {
        grid-template-columns: 1fr;
    }

    .order-success-item {
        align-items: flex-start;
    }

    .order-number-box strong {
        font-size: 18px;
        overflow-wrap: anywhere;
    }
}
/* ==============================
   Admin Order Management
============================== */

.orders-admin-page {
    min-height: 100vh;
    padding: 55px 5% 80px;
    background: #f3f7fd;
}

.orders-admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    width: min(1650px, 100%);
    margin: 0 auto 35px;
    padding: 35px 40px;
    color: #ffffff;
    background: linear-gradient(135deg, #28489e, #7433d3);
    border-radius: 22px;
    box-shadow: 0 18px 40px rgba(48, 62, 145, 0.2);
}

.orders-admin-header h1 {
    margin: 0 0 8px;
    font-size: 38px;
}

.orders-admin-header p {
    margin: 0;
    opacity: 0.9;
}

.orders-header-actions {
    display: flex;
    gap: 12px;
}

.orders-header-actions a {
    padding: 13px 20px;
    color: #173376;
    background: #ffffff;
    border-radius: 10px;
    font-weight: 800;
    text-decoration: none;
}

.order-statistics {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    width: min(1650px, 100%);
    margin: 0 auto 30px;
}

.order-statistics article {
    padding: 23px;
    color: #ffffff;
    background: linear-gradient(135deg, #0f9b72, #08775c);
    border-radius: 17px;
    box-shadow: 0 12px 27px rgba(15, 155, 114, 0.15);
}

.order-statistics article:nth-child(2) {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.order-statistics article:nth-child(3) {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.order-statistics article:nth-child(4) {
    background: linear-gradient(135deg, #10b981, #059669);
}

.order-statistics .order-sales-statistic {
    background: linear-gradient(135deg, #7c3aed, #db2777);
}

.order-statistics span {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
}

.order-statistics strong {
    font-size: 27px;
}

.orders-table-card {
    width: min(1650px, 100%);
    margin: 0 auto;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #dfe6f1;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(30, 58, 138, 0.1);
}

.orders-table-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 25px 28px;
    border-bottom: 1px solid #e2e8f0;
}

.orders-table-heading h2 {
    margin: 0;
    color: #142d68;
    font-size: 25px;
}

.orders-table-heading span {
    color: #66738c;
    font-weight: 700;
}

.orders-table-wrapper {
    overflow-x: auto;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}

.orders-table th {
    padding: 17px 16px;
    color: #ffffff;
    background: #29479b;
    font-size: 14px;
    text-align: left;
}

.orders-table td {
    padding: 17px 16px;
    color: #25385f;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
}

.orders-table tbody tr:hover {
    background: #f8faff;
}

.order-status-badge {
    display: inline-block;
    padding: 7px 11px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
}

.status-pending {
    color: #9a5b00;
    background: #fef3c7;
}

.status-confirmed {
    color: #1d4ed8;
    background: #dbeafe;
}

.status-processing {
    color: #6d28d9;
    background: #ede9fe;
}

.status-shipped {
    color: #0369a1;
    background: #e0f2fe;
}

.status-delivered {
    color: #047857;
    background: #d1fae5;
}

.status-cancelled {
    color: #b91c1c;
    background: #fee2e2;
}

.view-order-button {
    display: inline-block;
    padding: 9px 15px;
    color: #ffffff;
    background: linear-gradient(135deg, #7c3aed, #db2777);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.no-orders-message {
    padding: 60px 25px;
    color: #68738b;
    font-size: 17px;
    text-align: center;
}

/* Admin Orders Responsive */

@media (max-width: 1100px) {
    .order-statistics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .orders-admin-page {
        padding: 30px 4% 60px;
    }

    .orders-admin-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 28px 22px;
    }

    .orders-admin-header h1 {
        font-size: 30px;
    }

    .orders-header-actions {
        flex-wrap: wrap;
    }

    .order-statistics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 450px) {
    .order-statistics {
        grid-template-columns: 1fr;
    }
}
.orders-admin-header h1,
.orders-admin-header p {
    color: #ffffff;
}
/* ==============================
   Admin Order Details
============================== */

.order-details-page {
    min-height: 100vh;
    padding: 50px 5% 80px;
    background: #f3f7fd;
}

.order-details-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    width: min(1450px, 100%);
    margin: 0 auto 30px;
    padding: 32px 38px;
    color: #ffffff;
    background: linear-gradient(135deg, #29479b, #7433d3);
    border-radius: 20px;
    box-shadow: 0 17px 38px rgba(48, 62, 145, 0.2);
}

.order-details-header span {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.order-details-header h1 {
    margin: 7px 0;
    color: #ffffff;
    font-size: 34px;
}

.order-details-header p {
    margin: 0;
    color: #ffffff;
    opacity: 0.9;
}

.order-details-header > a {
    padding: 13px 20px;
    color: #183676;
    background: #ffffff;
    border-radius: 10px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.order-update-success {
    width: min(1450px, 100%);
    margin: 0 auto 25px;
    padding: 16px 20px;
    color: #067344;
    background: #d8fbe8;
    border: 1px solid #69e2a3;
    border-radius: 12px;
    font-weight: 700;
    text-align: center;
}

.order-details-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: start;
    gap: 28px;
    width: min(1450px, 100%);
    margin: 0 auto;
}

.order-details-main {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.order-information-card,
.order-status-card,
.order-payment-card {
    padding: 30px;
    background: #ffffff;
    border: 1px solid #dfe6f1;
    border-radius: 18px;
    box-shadow: 0 13px 32px rgba(30, 58, 138, 0.09);
}

.order-information-card h2,
.order-status-card h2,
.order-payment-card h2 {
    margin: 0 0 24px;
    color: #142d68;
    font-size: 24px;
}

.order-customer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px;
}

.order-customer-grid > div {
    padding: 17px;
    background: #f8faff;
    border: 1px solid #e3e9f2;
    border-radius: 11px;
}

.order-customer-grid span {
    display: block;
    margin-bottom: 7px;
    color: #7a859b;
    font-size: 12px;
}

.order-customer-grid strong {
    color: #24395f;
    font-size: 14px;
    line-height: 1.6;
}

.order-full-width {
    grid-column: 1 / -1;
}

.order-products-table-wrapper {
    overflow-x: auto;
}

.order-products-table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}

.order-products-table th {
    padding: 14px;
    color: #ffffff;
    background: #29479b;
    text-align: left;
}

.order-products-table td {
    padding: 15px 14px;
    color: #314466;
    border-bottom: 1px solid #e1e7f0;
}

.order-products-table td:last-child {
    color: #7c3aed;
}

.order-details-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.order-status-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 25px;
}

.order-status-form label {
    color: #142d68;
    font-size: 14px;
    font-weight: 700;
}

.order-status-form select {
    width: 100%;
    padding: 13px 14px;
    color: #24395f;
    background: #ffffff;
    border: 1px solid #ccd5e3;
    border-radius: 9px;
    outline: none;
    font: inherit;
}

.order-status-form select:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.order-status-form button {
    padding: 13px 18px;
    color: #ffffff;
    background: linear-gradient(135deg, #7c3aed, #db2777);
    border: 0;
    border-radius: 9px;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
}

.order-payment-card > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 14px 0;
    color: #68738b;
    border-bottom: 1px solid #e3e8f1;
}

.order-payment-card > div:last-child {
    border-bottom: 0;
}

.order-payment-card strong {
    color: #142d68;
    text-align: right;
}

.order-payment-total strong {
    color: #7c3aed;
    font-size: 22px;
}

/* Order Details Responsive */

@media (max-width: 950px) {
    .order-details-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .order-details-page {
        padding: 30px 4% 60px;
    }

    .order-details-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 27px 22px;
    }

    .order-details-header h1 {
        font-size: 24px;
        overflow-wrap: anywhere;
    }

    .order-customer-grid {
        grid-template-columns: 1fr;
    }

    .order-full-width {
        grid-column: auto;
    }

    .order-information-card,
    .order-status-card,
    .order-payment-card {
        padding: 23px 18px;
    }
}
/* ==============================
   Orders Search and Pagination
============================== */

.orders-filter-form {
    display: grid;
    grid-template-columns: minmax(250px, 1fr) 220px auto auto;
    align-items: end;
    gap: 15px;
    width: min(1650px, 100%);
    margin: 0 auto 25px;
    padding: 22px;
    background: #ffffff;
    border: 1px solid #dfe6f1;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(30, 58, 138, 0.08);
}

.orders-filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.orders-filter-group label {
    color: #142d68;
    font-size: 13px;
    font-weight: 800;
}

.orders-filter-group input,
.orders-filter-group select {
    width: 100%;
    height: 45px;
    padding: 10px 13px;
    color: #24395f;
    background: #ffffff;
    border: 1px solid #ccd5e3;
    border-radius: 9px;
    outline: none;
    font: inherit;
}

.orders-filter-group input:focus,
.orders-filter-group select:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.11);
}

.orders-search-button,
.orders-reset-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 45px;
    padding: 10px 20px;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.orders-search-button {
    color: #ffffff;
    background: linear-gradient(135deg, #7c3aed, #db2777);
}

.orders-reset-button {
    color: #24395f;
    background: #e8edf5;
}

.orders-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    width: min(1650px, 100%);
    margin: 28px auto 0;
}

.orders-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 8px 13px;
    color: #29479b;
    background: #ffffff;
    border: 1px solid #ccd5e3;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.orders-pagination a:hover,
.orders-pagination a.active {
    color: #ffffff;
    background: linear-gradient(135deg, #7c3aed, #db2777);
    border-color: transparent;
}

@media (max-width: 850px) {
    .orders-filter-form {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 550px) {
    .orders-filter-form {
        grid-template-columns: 1fr;
    }

    .orders-search-button,
    .orders-reset-button {
        width: 100%;
    }
}
.product-admin-statistics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 28px;
}

.product-admin-statistics .product-summary {
    width: 100%;
    min-height: 130px;
    padding: 24px 28px;
    border-radius: 18px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 14px 30px rgba(20, 66, 104, 0.12);
}

.product-admin-statistics .product-summary span {
    font-size: 18px;
    margin-bottom: 8px;
}

.product-admin-statistics .product-summary strong {
    font-size: 36px;
    line-height: 1;
}

.product-admin-statistics .product-summary small {
    margin-top: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.product-admin-statistics .total-products-card {
    background: linear-gradient(135deg, #0f9b75, #087d63);
}

.product-admin-statistics .low-stock-card {
    background: linear-gradient(135deg, #ff9f0a, #e67e00);
}

.product-admin-statistics .out-of-stock-card {
    background: linear-gradient(135deg, #ef4444, #c81e4f);
}

@media (max-width: 850px) {
    .product-admin-statistics {
        grid-template-columns: 1fr;
    }
}
/* Product search and filters */

.product-filter-form {
    display: grid;
    grid-template-columns:
    minmax(260px, 2fr)
    repeat(3, minmax(160px, 1fr))
    auto
    auto;
    gap: 16px;
    align-items: end;
    margin-bottom: 28px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #dce4f0;
    border-radius: 20px;
    box-shadow: 0 14px 32px rgba(20, 45, 104, 0.08);
}

.product-filter-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-filter-field label {
    color: #082b69;
    font-size: 15px;
    font-weight: 700;
}

.product-filter-field input,
.product-filter-field select {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    color: #082b69;
    font-size: 16px;
    background: #ffffff;
    border: 1px solid #ccd7e7;
    border-radius: 12px;
    outline: none;
}

.product-filter-field input:focus,
.product-filter-field select:focus {
    border-color: #7c32ef;
    box-shadow: 0 0 0 3px rgba(124, 50, 239, 0.12);
}

.product-filter-button,
.product-filter-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    padding: 0 24px;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
}

.product-filter-button {
    color: #ffffff;
    background: linear-gradient(135deg, #8a32e8, #d62483);
}

.product-filter-reset {
    color: #082b69;
    background: #e9eef6;
}

.product-filter-button:hover,
.product-filter-reset:hover {
    transform: translateY(-1px);
}

@media (max-width: 1100px) {
    .product-filter-form {
        grid-template-columns: 1fr 1fr;
    }

    .product-search-field {
        grid-column: 1 / -1;
    }
}

@media (max-width: 650px) {
    .product-filter-form {
        grid-template-columns: 1fr;
    }

    .product-search-field {
        grid-column: auto;
    }

    .product-filter-button,
    .product-filter-reset {
        width: 100%;
    }
}
/* Product pagination */

.product-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
}

.product-pagination a {
    min-width: 46px;
    height: 46px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #12346f;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid #d5deeb;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(20, 45, 104, 0.08);
    transition: transform 0.2s ease, background 0.2s ease;
}

.product-pagination a:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #3154b5, #7c32e8);
    transform: translateY(-2px);
}

.product-pagination a.active {
    color: #ffffff;
    background: linear-gradient(135deg, #8a32e8, #d62483);
    border-color: transparent;
}
/* Product stock status badges */

.product-stock-badge {
    min-width: 92px;
    padding: 7px 10px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border-radius: 10px;
    text-align: center;
}

.product-stock-badge strong {
    font-size: 17px;
    line-height: 1.1;
}

.product-stock-badge small {
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.product-stock-badge.stock-available {
    color: #087653;
    background: #d9f7ea;
    border: 1px solid #a8ebd2;
}

.product-stock-badge.stock-low {
    color: #9a5900;
    background: #fff1c7;
    border: 1px solid #f6d77a;
}

.product-stock-badge.stock-out {
    color: #b4232d;
    background: #ffe0e3;
    border: 1px solid #f5b4ba;
}
.export-products-button {
    min-height: 52px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    background: linear-gradient(135deg, #0da678, #078761);
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.export-products-button:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(7, 135, 97, 0.22);
}
/* Product header button alignment */

.product-admin-header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.product-admin-header-actions .back-dashboard-button,
.product-admin-header-actions .export-products-button,
.product-admin-header-actions .add-product-button {
    height: 64px;
    min-height: 64px;
    padding-top: 0;
    padding-bottom: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    line-height: 1;
}
.bulk-product-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 14px;
}

.bulk-product-toolbar select {
    min-width: 210px;
    padding: 12px 14px;
    border: 1px solid #ccd7ea;
    border-radius: 8px;
    background-color: #ffffff;
    color: #002b6b;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.bulk-action-button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(
        135deg,
        #9c27df,
        #d01b87
    );
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.bulk-action-button:hover {
    opacity: 0.9;
}

#selected-product-count {
    color: #002b6b;
    font-weight: 600;
}

.product-select-column {
    width: 42px;
    text-align: center;
}

.product-select-column input {
    width: 17px;
    height: 17px;
    cursor: pointer;
    accent-color: #b51fc1;
}
/* Store overview on admin dashboard */

.commerce-dashboard-section {
    max-width: 1500px;
    margin: 32px auto;
    padding: 28px;
    border-radius: 16px;
    background-color: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 45, 95, 0.1);
}

.commerce-dashboard-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.commerce-dashboard-heading h2 {
    margin: 0 0 6px;
    color: #173f8f;
    font-size: 28px;
}

.commerce-dashboard-heading p {
    margin: 0;
    color: #64748b;
}

.manage-products-dashboard-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 8px;
    background: linear-gradient(
        135deg,
        #9c27df,
        #d01b87
    );
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

.manage-products-dashboard-button:hover {
    opacity: 0.9;
}

.commerce-dashboard-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.commerce-stat-card {
    min-height: 135px;
    padding: 24px;
    border-radius: 14px;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 45, 95, 0.14);
}

.commerce-stat-card h3 {
    margin: 0 0 16px;
    font-size: 18px;
}

.commerce-stat-card p {
    margin: 0;
    font-size: 36px;
    font-weight: 800;
}

.products-card {
    background: linear-gradient(135deg, #0f9b75, #087f67);
}

.low-stock-card {
    background: linear-gradient(135deg, #ff9800, #ed7d00);
}

.out-stock-card {
    background: linear-gradient(135deg, #ef3b4f, #c91e4b);
}

.pending-orders-card {
    background: linear-gradient(135deg, #3157d5, #6332c7);
}

@media (max-width: 950px) {
    .commerce-dashboard-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .commerce-dashboard-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .commerce-dashboard-cards {
        grid-template-columns: 1fr;
    }

    .manage-products-dashboard-button {
        width: 100%;
    }
}
.commerce-stat-card p {
    color: #ffffff;
}
/* Recent orders on admin dashboard */

.recent-orders-dashboard-section {
    max-width: 1500px;
    margin: 32px auto;
    padding: 28px;
    border-radius: 16px;
    background-color: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 45, 95, 0.1);
}

.recent-orders-dashboard-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.recent-orders-dashboard-heading h2 {
    margin: 0 0 6px;
    color: #173f8f;
    font-size: 28px;
}

.recent-orders-dashboard-heading p {
    margin: 0;
    color: #64748b;
}

.manage-orders-dashboard-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 8px;
    background: linear-gradient(
        135deg,
        #0f9b75,
        #087f67
    );
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

.manage-orders-dashboard-button:hover {
    opacity: 0.9;
}

.recent-orders-table-wrapper {
    overflow-x: auto;
    border: 1px solid #dce4f0;
    border-radius: 12px;
}

.recent-orders-dashboard-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.recent-orders-dashboard-table th {
    padding: 16px;
    background-color: #274596;
    color: #ffffff;
    text-align: left;
    white-space: nowrap;
}

.recent-orders-dashboard-table td {
    padding: 16px;
    border-bottom: 1px solid #dce4f0;
    color: #0b2d63;
}

.recent-orders-dashboard-table tbody tr:last-child td {
    border-bottom: none;
}

.recent-orders-dashboard-table tbody tr:hover {
    background-color: #f5f8ff;
}

.recent-order-status {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 20px;
    background-color: #e8edff;
    color: #274596;
    font-size: 14px;
    font-weight: 700;
}

.no-recent-orders {
    text-align: center;
    color: #64748b;
}

@media (max-width: 600px) {
    .recent-orders-dashboard-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .manage-orders-dashboard-button {
        width: 100%;
    }
}
/* Sales performance on admin dashboard */

.sales-dashboard-section {
    max-width: 1500px;
    margin: 32px auto;
    padding: 28px;
    border-radius: 16px;
    background-color: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 45, 95, 0.1);
}

.sales-dashboard-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.sales-dashboard-heading h2 {
    margin: 0 0 6px;
    color: #173f8f;
    font-size: 28px;
}

.sales-dashboard-heading p {
    margin: 0;
    color: #64748b;
}

.sales-manage-orders-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 8px;
    background: linear-gradient(
        135deg,
        #3157d5,
        #6332c7
    );
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

.sales-manage-orders-button:hover {
    opacity: 0.9;
}

.sales-dashboard-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.sales-stat-card {
    min-height: 135px;
    padding: 24px;
    border-radius: 14px;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 45, 95, 0.14);
}

.sales-stat-card h3 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 18px;
}

.sales-stat-card p {
    margin: 0;
    color: #ffffff;
    font-size: clamp(25px, 2.2vw, 36px);
    font-weight: 800;
}

.total-orders-card {
    background: linear-gradient(135deg, #168aad, #1767c0);
}

.confirmed-orders-card {
    background: linear-gradient(135deg, #0f9b75, #087f67);
}

.delivered-orders-card {
    background: linear-gradient(135deg, #7b3fe4, #b326c7);
}

.total-sales-card {
    background: linear-gradient(135deg, #ff9800, #e56d00);
}

@media (max-width: 950px) {
    .sales-dashboard-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .sales-dashboard-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .sales-dashboard-cards {
        grid-template-columns: 1fr;
    }

    .sales-manage-orders-button {
        width: 100%;
    }
}
.total-sales-card p {
    white-space: nowrap;
    font-size: clamp(22px, 1.8vw, 32px);
}
/* Last 7 days sales chart */

.sales-chart-dashboard-section {
    max-width: 1500px;
    margin: 32px auto;
    padding: 28px;
    border-radius: 16px;
    background-color: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 45, 95, 0.1);
}

.sales-chart-dashboard-heading {
    margin-bottom: 28px;
}

.sales-chart-dashboard-heading h2 {
    margin: 0 0 6px;
    color: #173f8f;
    font-size: 28px;
}

.sales-chart-dashboard-heading p {
    margin: 0;
    color: #64748b;
}

.sales-chart-dashboard {
    display: grid;
    grid-template-columns: repeat(7, minmax(90px, 1fr));
    gap: 18px;
    min-width: 760px;
    padding: 12px 6px 4px;
}

.sales-chart-dashboard-section {
    overflow-x: auto;
}

.sales-chart-column {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sales-chart-amount {
    min-height: 24px;
    margin-bottom: 10px;
    color: #173f8f;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.sales-chart-bar-area {
    display: flex;
    align-items: flex-end;
    width: 58px;
    height: 230px;
    padding: 0 6px;
    border-bottom: 2px solid #cdd8eb;
}

.sales-chart-bar {
    width: 100%;
    min-height: 6px;
    border-radius: 8px 8px 3px 3px;
    background: linear-gradient(
        180deg,
        #b12cdf,
        #3157d5
    );
    box-shadow: 0 6px 14px rgba(71, 63, 210, 0.25);
    transition: height 0.3s ease;
}

.sales-chart-bar:hover {
    filter: brightness(1.08);
}

.sales-chart-label {
    margin-top: 10px;
    color: #52647f;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 800px) {
    .sales-chart-dashboard-section {
        padding: 22px 18px;
    }
}
/* Top-selling products on admin dashboard */

.top-products-dashboard-section {
    max-width: 1500px;
    margin: 32px auto;
    padding: 28px;
    border-radius: 16px;
    background-color: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 45, 95, 0.1);
}

.top-products-dashboard-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.top-products-dashboard-heading h2 {
    margin: 0 0 6px;
    color: #173f8f;
    font-size: 28px;
}

.top-products-dashboard-heading p {
    margin: 0;
    color: #64748b;
}

.top-products-manage-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 8px;
    background: linear-gradient(
        135deg,
        #ff9800,
        #e56d00
    );
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

.top-products-manage-button:hover {
    opacity: 0.9;
}

.top-products-table-wrapper {
    overflow-x: auto;
    border: 1px solid #dce4f0;
    border-radius: 12px;
}

.top-products-dashboard-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.top-products-dashboard-table th {
    padding: 16px;
    background-color: #274596;
    color: #ffffff;
    text-align: left;
    white-space: nowrap;
}

.top-products-dashboard-table td {
    padding: 16px;
    border-bottom: 1px solid #dce4f0;
    color: #0b2d63;
}

.top-products-dashboard-table tbody tr:last-child td {
    border-bottom: none;
}

.top-products-dashboard-table tbody tr:hover {
    background-color: #f5f8ff;
}

.product-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 34px;
    padding: 4px 9px;
    border-radius: 18px;
    background-color: #fff1ce;
    color: #b66500;
    font-weight: 800;
}

.no-top-products {
    text-align: center;
    color: #64748b;
}

@media (max-width: 600px) {
    .top-products-dashboard-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .top-products-manage-button {
        width: 100%;
    }
}
/* Customer insights on admin dashboard */

.customer-insights-section {
    max-width: 1500px;
    margin: 32px auto;
    padding: 28px;
    border-radius: 16px;
    background-color: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 45, 95, 0.1);
}

.customer-insights-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.customer-insights-heading h2 {
    margin: 0 0 6px;
    color: #173f8f;
    font-size: 28px;
}

.customer-insights-heading p {
    margin: 0;
    color: #64748b;
}

.customer-orders-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 8px;
    background: linear-gradient(
        135deg,
        #0f9b75,
        #087f67
    );
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

.customer-orders-button:hover {
    opacity: 0.9;
}

.customer-insights-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.customer-insight-card {
    min-height: 135px;
    padding: 24px;
    border-radius: 14px;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 45, 95, 0.14);
}

.customer-insight-card h3 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 18px;
}

.customer-insight-card p {
    margin: 0;
    color: #ffffff;
    font-size: clamp(22px, 1.8vw, 32px);
    font-weight: 800;
    white-space: nowrap;
}

.unique-customers-card {
    background: linear-gradient(135deg, #168aad, #1767c0);
}

.repeat-customers-card {
    background: linear-gradient(135deg, #7b3fe4, #b326c7);
}

.average-order-card {
    background: linear-gradient(135deg, #0f9b75, #087f67);
}

.highest-order-card {
    background: linear-gradient(135deg, #ff9800, #e56d00);
}

@media (max-width: 950px) {
    .customer-insights-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .customer-insights-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .customer-insights-cards {
        grid-template-columns: 1fr;
    }

    .customer-orders-button {
        width: 100%;
    }
}
/* Top customers on admin dashboard */

.top-customers-dashboard-section {
    max-width: 1500px;
    margin: 32px auto;
    padding: 28px;
    border-radius: 16px;
    background-color: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 45, 95, 0.1);
}

.top-customers-dashboard-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.top-customers-dashboard-heading h2 {
    margin: 0 0 6px;
    color: #173f8f;
    font-size: 28px;
}

.top-customers-dashboard-heading p {
    margin: 0;
    color: #64748b;
}

.top-customers-orders-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 8px;
    background: linear-gradient(
        135deg,
        #7b3fe4,
        #b326c7
    );
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

.top-customers-orders-button:hover {
    opacity: 0.9;
}

.top-customers-table-wrapper {
    overflow-x: auto;
    border: 1px solid #dce4f0;
    border-radius: 12px;
}

.top-customers-dashboard-table {
    width: 100%;
    min-width: 820px;
    border-collapse: collapse;
}

.top-customers-dashboard-table th {
    padding: 16px;
    background-color: #274596;
    color: #ffffff;
    text-align: left;
    white-space: nowrap;
}

.top-customers-dashboard-table td {
    padding: 16px;
    border-bottom: 1px solid #dce4f0;
    color: #0b2d63;
}

.top-customers-dashboard-table tbody tr:last-child td {
    border-bottom: none;
}

.top-customers-dashboard-table tbody tr:hover {
    background-color: #f5f8ff;
}

.customer-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 34px;
    padding: 4px 9px;
    border-radius: 18px;
    background-color: #ede4ff;
    color: #7033c9;
    font-weight: 800;
}

.no-top-customers {
    text-align: center;
    color: #64748b;
}

@media (max-width: 600px) {
    .top-customers-dashboard-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .top-customers-orders-button {
        width: 100%;
    }
}
/* Admin dashboard quick navigation */

.dashboard-quick-navigation {
    position: sticky;
    top: 12px;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 1500px;
    margin: 0 auto 26px;
    padding: 12px;
    overflow-x: auto;
    border: 1px solid #dce4f0;
    border-radius: 14px;
    background-color: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 25px rgba(15, 45, 95, 0.12);
    backdrop-filter: blur(8px);
}

.dashboard-quick-navigation a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 8px;
    background-color: #eef3ff;
    color: #173f8f;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.dashboard-quick-navigation a:hover {
    background: linear-gradient(
        135deg,
        #3157d5,
        #7b3fe4
    );
    color: #ffffff;
    transform: translateY(-1px);
}

#store-overview,
#sales-performance,
#sales-chart,
#top-products,
#customer-insights,
#top-customers,
#recent-orders {
    scroll-margin-top: 90px;
}

html {
    scroll-behavior: smooth;
}
.dashboard-quick-navigation {
    justify-content: center;
}

@media (max-width: 1200px) {
    .dashboard-quick-navigation {
        justify-content: flex-start;
    }
}
/* Smart admin action center */

.dashboard-smart-alerts {
    max-width: 1500px;
    margin: 0 auto 30px;
    padding: 26px;
    border: 1px solid #dce4f0;
    border-radius: 16px;
    background-color: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 45, 95, 0.1);
}

.dashboard-smart-alerts-heading {
    margin-bottom: 20px;
}

.dashboard-smart-alerts-heading h2 {
    margin: 0 0 6px;
    color: #173f8f;
    font-size: 26px;
}

.dashboard-smart-alerts-heading p {
    margin: 0;
    color: #64748b;
}

.dashboard-alert-list {
    display: grid;
    gap: 14px;
}

.dashboard-alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 72px;
    padding: 16px 20px;
    border: 1px solid transparent;
    border-radius: 12px;
    text-decoration: none;
}

.dashboard-alert strong {
    font-size: 18px;
}

.dashboard-alert span {
    font-weight: 600;
}

a.dashboard-alert {
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

a.dashboard-alert:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(15, 45, 95, 0.12);
}

.alert-danger {
    border-color: #ffc4cc;
    background-color: #fff0f2;
    color: #b51934;
}

.alert-warning {
    border-color: #ffd985;
    background-color: #fff7df;
    color: #9b5d00;
}

.alert-info {
    border-color: #bcd0ff;
    background-color: #eef3ff;
    color: #244db1;
}

.alert-success {
    border-color: #9ae4c4;
    background-color: #eafbf3;
    color: #087f57;
}

@media (max-width: 700px) {
    .dashboard-alert {
        align-items: flex-start;
        flex-direction: column;
    }
}
.store-footer {
    margin-top: 70px;
    padding: 65px 8% 25px;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            #4d1239,
            #681746
        );
}

.store-footer-grid {
    width: min(1200px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 55px;
}

.footer-brand h2,
.footer-column h3 {
    margin: 0 0 18px;
    color: #ffffff;
}

.footer-brand h2 {
    font-size: 30px;
}

.footer-brand p {
    max-width: 420px;
    margin: 0 0 22px;
    color: #f4d6e6;
    line-height: 1.75;
}

.footer-shop-button {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 12px;
    color: #571640;
    font-weight: 800;
    text-decoration: none;
    background: #ffffff;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.footer-shop-button:hover {
    transform: translateY(-2px);
    box-shadow:
        0 12px 25px
        rgba(0, 0, 0, 0.18);
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-column a {
    margin-bottom: 11px;
    color: #f4d6e6;
    text-decoration: none;
    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.footer-column a:hover {
    color: #ffffff;
    transform: translateX(4px);
}

.store-footer-bottom {
    width: min(1200px, 100%);
    margin: 45px auto 0;
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: #eec8dd;
    font-size: 14px;
    border-top:
        1px solid
        rgba(255, 255, 255, 0.18);
}

@media (max-width: 760px) {
    .store-footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .store-footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
/* Full-width homepage banner */

.store-hero {
    position: relative;
    width: 100%;
    min-height: 590px;
    padding: 70px 7%;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #fdf7fb;
}

.hero-showcase {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-showcase::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 6;
    background: linear-gradient(
        90deg,
        rgba(255, 249, 253, 0.98) 0%,
        rgba(255, 249, 253, 0.92) 32%,
        rgba(255, 249, 253, 0.55) 52%,
        rgba(255, 249, 253, 0.05) 78%
    );
}

.hero-showcase img {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    object-fit: cover !important;
    object-position: center right;
}

.hero-content {
    position: relative;
    z-index: 10;
    width: min(650px, 48%);
}

.hero-content h1 {
    font-size: clamp(48px, 5vw, 78px);
    line-height: 1.02;
}

.hero-content p {
    max-width: 620px;
}

.hero-buttons,
.store-benefits {
    position: relative;
    z-index: 11;
}

/* Mobile banner */

@media (max-width: 760px) {
    .store-hero {
        min-height: 720px;
        padding: 55px 24px;
        align-items: flex-start;
        text-align: center;
    }

    .hero-showcase img {
        object-position: 62% center;
    }

    .hero-showcase::after {
        background: linear-gradient(
            180deg,
            rgba(255, 249, 253, 0.98) 0%,
            rgba(255, 249, 253, 0.94) 46%,
            rgba(255, 249, 253, 0.45) 72%,
            rgba(255, 249, 253, 0.12) 100%
        );
    }

    .hero-content {
        width: 100%;
    }

    .hero-content h1 {
        font-size: 42px;
    }
}
/* Balanced homepage banner */

.homepage-banner {
    width: 100%;
    height: clamp(340px, 31vw, 500px);
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #f8f3f7;
}

.homepage-banner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

@media (max-width: 760px) {
    .homepage-banner {
        height: 300px;
    }

    .homepage-banner img {
        object-position: center top;
    }
}
.homepage-banner {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #f8f3f7;
}

.homepage-banner img {
    display: block;
    width: 100%;
    height: auto;
}
/* Remove extra space below homepage banner */

.homepage-banner {
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0;
}

.homepage-banner img {
    display: block;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    margin: 0;
    padding: 0;
    object-fit: contain !important;
}

@media (max-width: 760px) {
    .homepage-banner {
        height: auto !important;
        min-height: 0 !important;
    }

    .homepage-banner img {
        width: 100%;
        height: auto !important;
    }
}
/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25d366;
    color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    text-decoration: none;
    z-index: 9999;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

.whatsapp-float:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

@media (max-width: 760px) {
    .whatsapp-float {
        right: 16px;
        bottom: 18px;
        width: 54px;
        height: 54px;
    }

    .whatsapp-float svg {
        width: 30px;
        height: 30px;
    }
}