body {
    font-family: Arial, sans-serif;
    margin: 20px;
}


.subtitle {
    text-align: center;
}


/* HEADER */

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}


#logo {
    width: 250px;
    height: auto;
    display: block;
    margin-left: -40px;
}


/* SIDE MENU */

.side-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background-color: white;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: left 0.3s ease;
    z-index: 1000;
}


.side-menu.open {
    left: 0;
}


.side-menu button {
    padding: 14px;
    border: none;
    border-radius: 8px;
    background-color: black;
    color: white;
    font-size: 16px;
    text-align: left;
}


.side-menu button:first-child {
    background: none;
    color: black;
    font-size: 24px;
    text-align: right;
}


/* HERO */

.hero {
    padding: 80px 20px;
    text-align: center;
}


.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.6;
    color: #555;
}


.hero h1 {
    font-size: 36px;
    margin-bottom: 10px;
    font-weight: bold;
}


.hero button {
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    background-color: black;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease;
}


.hero button:active {
    transform: scale(0.95);
}


/* SEARCH */

.search-box {
    width: 100%;
    margin-bottom: 20px;
}


.search-box input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    outline: none;
}


/* CATEGORIES */

.categories {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}


.category-btn {
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}


.category-btn.active {
    background-color: black;
    color: white;
}


/* PRODUCTS */

.card {
    width: 100%;
}


.products {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}


.product {
    width: 300px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-sizing: border-box;
    background-color: white;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}


.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}


.product-image {
    width: 100%;
    height: 300px;
    object-fit: contain;
    border-radius: 8px;
}


.nameofproduct {
    font-weight: bold;
    font-size: 18px;
    margin: 12px 0 6px;
}


.priceofproduct {
    font-weight: bold;
    font-size: 17px;
    margin: 0 0 15px;
}


/* PRODUCT BUTTONS */

.product-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
}


.buybutton {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.1s ease;
}


.buybutton:active {
    transform: scale(0.95);
}


.detailsbutton {
    width: 100%;
    padding: 12px;
    border: 2px solid black;
    background-color: orange;
    color: black;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}


.product-buttons button {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s;
}


.wishlist-btn {
    background: #111;
    color: white;
}


.product-buttons button:hover {
    transform: translateY(-2px);
}


/* NO PRODUCTS */

.no-products {
    display: none;
    width: 100%;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
}


/* DETAILS POPUP */


.details-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: flex-start;
    z-index: 2000;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}


.details-box {
    background-color: white;
    width: 100%;
    max-width: 400px;
    padding: 25px;
    border-radius: 12px;
    position: relative;
    box-sizing: border-box;
    margin: auto;
}


.details-image {
    width: 100%;
    height: 220px;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 15px;
    background: white;
}


.close-details {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    background: none;
    font-size: 22px;
    cursor: pointer;
}


.close-button {
    width: 100%;
    padding: 10px;
    margin-top: 15px;
    border: none;
    border-radius: 8px;
    background-color: orange;
    color: black;
    font-weight: bold;
    cursor: pointer;
}


/* CONTACT */

#contact-section {
    padding: 50px 20px;
    text-align: center;
}


.contact-box {
    max-width: 400px;
    margin: 20px auto;
    padding: 25px;
    border: 1px solid #ddd;
    border-radius: 12px;
}


.contact-box button {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    background-color: black;
    color: white;
    font-size: 16px;
    cursor: pointer;
}


/* MENU BUTTON */

.menu-button {
    padding: 10px 14px;
    border: none;
    border-radius: 8px;
    background-color: white;
    color: black;
    font-size: 24px;
    cursor: pointer;
    transform: translateY(-70px);
    margin-right: -40px;
}

  /* DASHBOARD */

.dashboard-section,
.dashboard-card {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    padding: 18px;
    margin: 20px auto;
    max-width: 600px;
    box-sizing: border-box;
}


.dashboard-section h2,
.dashboard-card h2 {
    margin-top: 0;
    margin-bottom: 8px;
}


/* DASHBOARD OVERVIEW */

.dashboard-overview {
    display: flex;
    gap: 15px;
    max-width: 600px;
    margin: 20px auto;
}


.overview-card {
    flex: 1;
    padding: 18px;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    background: white;
    text-align: center;
}


.overview-card h3 {
    margin: 0 0 8px;
}


.overview-card p {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
}


/* WISHLIST */

.saved-products {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}


.wishlist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    box-sizing: border-box;
}


.wishlist-item img {
    width: 75px;
    height: 75px;
    object-fit: contain;
    background: white;
    border-radius: 8px;
    flex-shrink: 0;
}


.wishlist-info {
    flex: 1;
    min-width: 0;
}


.wishlist-info h3 {
    margin: 0 0 5px;
    font-size: 15px;
}


.wishlist-info p {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: bold;
}


.wishlist-info button {
    padding: 6px 10px;
    border: none;
    border-radius: 6px;
    background: #111;
    color: white;
    font-size: 12px;
}


.empty-message {
    text-align: center;
    color: #777;
    padding: 20px 5px;
    margin: 0;
}


/* DASHBOARD HEADER */

body > header {
    text-align: center;
    padding: 25px 15px 10px;
}


body > header h1 {
    margin-bottom: 5px;
}


body > header p {
    color: #666;
    margin-top: 0;
}


.profile-link {
    display: inline-block;
    margin-top: 10px;
    padding: 9px 14px;
    background: black;
    color: white;
    text-decoration: none;
    border-radius: 7px;
    font-size: 14px;
}


/* ORDERS */

.order-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    margin-top: 12px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
}


.order-item img {
    width: 75px;
    height: 75px;
    object-fit: contain;
    background: white;
    border-radius: 8px;
    flex-shrink: 0;
}


.order-info {
    flex: 1;
}


.order-info h3 {
    margin: 0 0 5px;
    font-size: 15px;
}


.order-info p {
    margin: 0 0 6px;
    font-weight: bold;
    font-size: 14px;
}


.order-info span {
    font-size: 12px;
    color: #666;
}


/* MOBILE */

@media (max-width: 600px) {

    .dashboard-overview {
        margin: 15px 10px;
    }


    .dashboard-section,
    .dashboard-card {
        margin: 15px 10px;
        padding: 14px;
    }


    .wishlist-item {
        padding: 8px;
    }


    .wishlist-item img {
        width: 65px;
        height: 65px;
    }


    .wishlist-info h3 {
        font-size: 14px;
    }


    .wishlist-info p {
        font-size: 13px;
    }

}

/* ORDER DETAILS */

.order-number {
    font-size: 13px;
    margin: 4px 0;
    color: #555;
}

.order-date {
    font-size: 13px;
    margin: 4px 0 8px;
    color: #777;
}

.order-status {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 6px;
    background-color: #eee;
    color: #333;
    font-size: 12px;
    margin-bottom: 10px;
}

.view-order-btn {
    display: block;
    padding: 8px 12px;
    border: none;
    border-radius: 7px;
    background-color: black;
    color: white;
    font-size: 13px;
    cursor: pointer;
}

.view-order-btn:active {
    transform: scale(0.96);
}

.remove-order-btn {
    display: block;
    margin-top: 8px;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 7px;
    background-color: white;
    color: #333;
    font-size: 13px;
    cursor: pointer;
}

.remove-order-btn:active {
    transform: scale(0.96);
}

/* DASHBOARD TOP */

.dashboard-top {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}


/* NOTIFICATION BELL */

.notification-bell {
    position: absolute;
    right: 0;
    width: 45px;
    height: 45px;
    border: none;
    background: white;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}


/* BELL SHAPE */

.bell-icon {
    position: relative;
    width: 17px;
    height: 19px;
    border: 2px solid black;
    border-radius: 10px 10px 5px 5px;
    display: block;
}


/* BELL CLAPPER */

.bell-icon::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 6px;
    height: 3px;
    background: black;
    border-radius: 50%;
    transform: translateX(-50%);
}


/* NOTIFICATION COUNT */

.notification-count {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 17px;
    height: 17px;
    padding: 0 3px;
    box-sizing: border-box;
    border-radius: 50%;
    background: red;
    color: white;
    font-size: 10px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-logo {
    width: 250px;
    height: auto;
    display: block;
    margin: 0 auto 15px;
}

/* ACCOUNT PAGES */

.account-page {
    min-height: 100vh;
    background: white;
    padding: 30px 20px;
    box-sizing: border-box;
}


.account-container {
    max-width: 400px;
    margin: 0 auto;
}


.account-logo {
    width: 250px;
    display: block;
    margin: 10px auto 20px;
}


.account-title {
    text-align: center;
    margin-bottom: 5px;
}


.account-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 25px;
}


.account-card {
    background: lightgrey;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}


.account-card h2 {
    text-align: center;
    margin-bottom: 20px;
}


.account-input {
    width: 100%;
    padding: 13px;
    margin-bottom: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 14px;
    outline: none;
}


.account-input:focus {
    border-color: black;
}


.account-button {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 8px;
    background: black;
    color: white;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
}


.account-button:active {
    transform: scale(0.98);
}


.account-message {
    text-align: center;
    font-size: 13px;
    margin-top: 12px;
}


.account-link {
    text-align: center;
    margin-top: 18px;
    font-size: 14px;
}


.account-link a {
    color: black;
    font-weight: bold;
    text-decoration: none;
}

/* LOGOUT BUTTON */

.logout-button {
    display: block;
    margin: 15px auto 0;
    padding: 10px 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: white;
    color: #333;
    font-size: 14px;
    cursor: pointer;
}

.logout-button:active {
    transform: scale(0.96);
}

/* PROFILE INFO */

.profile-info {
    background: white;
    padding: 18px;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
}


.profile-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}


.profile-row:last-of-type {
    border-bottom: none;
}


.profile-row strong {
    font-size: 14px;
}


.profile-row span {
    font-size: 14px;
    color: #666;
    text-align: right;
    word-break: break-word;
}


.edit-profile-button {
    width: 100%;
    margin-top: 15px;
    padding: 11px;
    border: none;
    border-radius: 8px;
    background: black;
    color: white;
    font-size: 14px;
    cursor: pointer;
}


.edit-profile-button:active {
    transform: scale(0.97);
}

.account-logo67 {
  width: 120px;
  height: auto;
  display: block;
  margin-left: -30px;

}

/* ACCOUNT SETTINGS */

.settings-card {
    background: white;
    padding: 18px;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
}


.settings-card button {
    width: 100%;
    display: block;
    padding: 11px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}


.settings-card .logout-button {
    margin: 0;
    background: black;
    color: white;
    border: none;
}


.settings-card .delete-account-button {
    margin-top: 10px;
    background: white;
    color: #333;
    border: 1px solid #ccc;
}


.settings-card button:active {
    transform: scale(0.97);
}

/* SECURITY */

.security-section {
    margin-top: 20px;
    padding: 18px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
}


.security-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
}


.change-passcode-button {
    width: 100%;
    padding: 11px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: white;
    color: #333;
    font-size: 14px;
    cursor: pointer;
}


.change-passcode-button:active {
    transform: scale(0.97);
}


#passcodeForm {
    margin-top: 15px;
}

/* DASHBOARD MENU */

.dashboard-menu {
    margin-top: 20px;
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
}


/* MAIN MENU ROWS */

.dashboard-menu-row {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 17px;
    border: none;
    border-bottom: 1px solid #eee;
    background: white;
    color: #222;
    font-size: 15px;
    font-weight: bold;
    text-align: left;
    cursor: pointer;
}


.dashboard-menu-row:active {
    background: #f5f5f5;
}


.menu-arrow {
    font-size: 22px;
    color: #777;
}


/* DROPDOWN CONTENT */

.dashboard-dropdown {
    padding: 15px;
    background: #fafafa;
    border-bottom: 1px solid #eee;
}


/* PROFILE INFORMATION */

.dashboard-dropdown .profile-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}


.dashboard-dropdown .profile-row:last-child {
    border-bottom: none;
}


.dashboard-dropdown .profile-row span {
    color: #666;
    text-align: right;
    word-break: break-word;
}


/* SETTINGS ROWS */

.settings-row {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5px;
    border: none;
    border-bottom: 1px solid #eee;
    background: transparent;
    color: #222;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
}


.settings-row:last-child {
    border-bottom: none;
}


.settings-row:active {
    background: #f1f1f1;
}


/* EDIT PROFILE / PASSCODE FORMS */

.edit-profile-form,
#passcodeForm {
    padding: 10px 0 15px;
}


/* LOGOUT */

.logout-row {
    font-weight: bold;
}


/* DELETE ACCOUNT */

.delete-row {
    color: red;
    font-weight: bold;
}

.admin-product-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.admin-product-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.admin-edit-button,
.admin-delete-button {
    border: none;
    padding: 9px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.admin-edit-button {
    background: #222;
    color: white;
}

.admin-edit-button:hover {
    background: #444;
}

.admin-delete-button {
    background: #e53935;
    color: white;
    margin-top: 10px;
}

.admin-delete-button:hover {
    background: #c62828;
}

.product-image-preview {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-top: 10px;
    border: 1px solid #ddd;
}

#adminProductStock,
#editProductStock {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    color: #222;
    font-size: 15px;
    cursor: pointer;
}

.stock-status.in-stock {
    color: green;
    font-weight: bold;
}

.stock-status.out-of-stock {
    color: red;
    font-weight: bold;
}

/* ==============================
   ADMIN DASHBOARD NAVIGATION
============================== */

.admin-navigation {
    background: #ffffff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    margin-bottom: 25px;
}

.admin-navigation h2 {
    color: #222222;
    font-size: 21px;
    margin: 0 0 18px;
}

/* Dropdown buttons */

.admin-dropdown-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid #eeeeee;
    border-radius: 12px;
    background: #ffffff;
    color: #222222;
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background 0.25s ease,
                border-color 0.25s ease,
                transform 0.2s ease;
}

/* Hover and active states */

.admin-dropdown-button:hover {
    background: #fff5ef;
    border-color: #ff8a3d;
}

.admin-dropdown-button:active {
    transform: scale(0.98);
}

/* Dropdown arrow */

.dropdown-arrow {
    font-size: 13px;
    color: #ff781f;
    transition: transform 0.25s ease;
}

/* Rotate arrow when dropdown is open */

.admin-dropdown-button[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
}

/* ==============================
   DROPDOWN CONTENT
============================== */

.admin-dropdown-content {
    background: #ffffff;
    padding: 20px;
    margin-bottom: 22px;
    border: 1px solid #eeeeee;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    animation: adminDropdownOpen 0.25s ease;
}

.admin-dropdown-content h2 {
    color: #222222;
    font-size: 20px;
    margin: 0 0 20px;
}

/* Dropdown opening animation */

@keyframes adminDropdownOpen {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==============================
   ADD PRODUCT FORM
============================== */

#addProductForm {
    width: 100%;
}

#addProductForm input,
#addProductForm select,
#addProductForm textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 13px;
    margin-bottom: 15px;
    border: 1px solid #dddddd;
    border-radius: 10px;
    background: #ffffff;
    color: #222222;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s ease,
                box-shadow 0.2s ease;
}

#addProductForm input:focus,
#addProductForm select:focus,
#addProductForm textarea:focus {
    border-color: #ff781f;
    box-shadow: 0 0 0 3px rgba(255, 120, 31, 0.12);
}

#addProductForm textarea {
    min-height: 110px;
    resize: vertical;
}

/* Product image preview */

#adminProductImagePreview {
    display: block;
    max-width: 100%;
    max-height: 220px;
    object-fit: contain;
    margin: 12px 0;
    border-radius: 10px;
}

/* ==============================
   MOBILE RESPONSIVENESS
============================== */

@media (max-width: 600px) {
    .admin-navigation,
    .admin-dropdown-content {
        padding: 16px;
        border-radius: 13px;
    }

    .admin-navigation h2,
    .admin-dropdown-content h2 {
        font-size: 18px;
    }

    .admin-dropdown-button {
        padding: 14px;
        font-size: 15px;
    }
}

/* CUSTOMER ORDERS LAYOUT */

#ordersContainer .order-item {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 8px;
padding: 16px;
margin-bottom: 15px;
border: 1px solid #e5e5e5;
border-radius: 14px;
box-sizing: border-box;
width: 100%;
overflow-wrap: anywhere;
}

#ordersContainer .order-item img {
width: 120px !important;
height: 120px !important;
object-fit: contain;
margin: 0 0 10px 0 !important;
}

#ordersContainer .order-item h3 {
margin: 0 0 8px;
font-size: 20px;
line-height: 1.4;
overflow-wrap: anywhere;
}

#ordersContainer .order-item p {
margin: 3px 0;
font-size: 15px;
line-height: 1.5;
overflow-wrap: anywhere;
}

/* =========================
   CUSTOMER REMOVE ORDER BUTTON
========================= */

.remove-order-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 11px 18px;
    background-color: #fff0f0;
    color: #c62828;
    border: 1px solid #efb4b4;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease,
                color 0.2s ease,
                transform 0.2s ease;
}

.remove-order-btn:hover {
    background-color: #c62828;
    color: #ffffff;
}

.remove-order-btn:active {
    transform: scale(0.97);
}


/* =========================
   ADMIN CONFIRM ORDER BUTTON
========================= */

.confirm-order-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 11px 20px;
    background-color: #e87924;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(232, 121, 36, 0.18);
    transition: background-color 0.2s ease,
                transform 0.2s ease,
                box-shadow 0.2s ease;
}

.confirm-order-btn:hover {
    background-color: #c96316;
    box-shadow: 0 5px 12px rgba(232, 121, 36, 0.25);
}

.confirm-order-btn:active {
    transform: scale(0.97);
}


/* =========================
   MOBILE BUTTON FRIENDLINESS
========================= */

@media (max-width: 480px) {
    .remove-order-btn,
    .confirm-order-btn {
        width: 100%;
        padding: 12px 14px;
        font-size: 14px;
    }
}

/* =========================
   CUSTOMER ORDER HISTORY
========================= */

#ordersContainer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
    width: 100%;
    box-sizing: border-box;
}

#ordersContainer .order-item {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-width: 0;
    box-sizing: border-box;
}

#ordersContainer .order-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.10);
}

#ordersContainer .order-item img {
    width: 100% !important;
    height: 170px !important;
    object-fit: contain;
    background: #f8f8f8;
    border-radius: 12px;
    padding: 10px;
    box-sizing: border-box;
}

#ordersContainer .order-item h3 {
    font-size: 17px;
    color: #202020;
    margin: 14px 0 10px;
    line-height: 1.4;
}

#ordersContainer .order-item p {
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
    margin: 8px 0;
    overflow-wrap: anywhere;
}

#ordersContainer .order-item p:nth-of-type(1) {
    color: #e87516;
    font-weight: 700;
    font-size: 15px;
}

/* Order status badges */

#ordersContainer .order-status {
    display: inline-block;
    width: fit-content;
    max-width: 100%;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    box-sizing: border-box;
}

#ordersContainer .order-status-pending {
    color: #8a5a00;
    background: #fff2cc;
}

#ordersContainer .order-status-confirmed {
    color: #176534;
    background: #dcfce7;
}

#ordersContainer .order-status-cancelled {
    color: #991b1b;
    background: #fee2e2;
}

#ordersContainer .order-status-completed {
    color: #1d4ed8;
    background: #dbeafe;
}

/* Remove order button */

#ordersContainer .remove-order-btn {
    width: 100%;
    margin-top: 14px;
    padding: 11px 14px;
    border: none;
    border-radius: 9px;
    background: #fff0e5;
    color: #c2410c;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

#ordersContainer .remove-order-btn:hover {
    background: #c2410c;
    color: #ffffff;
}

@media (max-width: 480px) {
    #ordersContainer {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    #ordersContainer .order-item {
        padding: 15px;
    }

    #ordersContainer .order-item img {
        height: 190px !important;
    }
}

/* =========================
   MOBILE WEBSITE FIX
   DIVINE MERCY COMMUNICATION
========================= */

@media (max-width: 1000px) {

    /* Prevent unwanted horizontal scrolling */

    html {
        width: 100%;
        overflow-x: hidden;
    }

    body {
        width: auto;
        max-width: 100%;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        overflow-x: hidden;
    }


    /* HEADER */

    .header {
        width: 100%;
        padding: 10px 12px;
        box-sizing: border-box;
    }

    #logo {
        width: 190px;
        max-width: 75%;
        height: auto;
        margin-left: -10px;
    }

    .menu-button {
        transform: none;
        margin-right: 0;
        padding: 8px;
        font-size: 24px;
    }


    /* HERO SECTION */

    .hero {
        padding: 35px 15px;
        text-align: center;
    }

    .hero h1 {
        font-size: 27px;
        line-height: 1.3;
        margin-bottom: 12px;
    }

    .hero p {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 22px;
    }

    .hero button {
        padding: 12px 20px;
        font-size: 15px;
    }


    /* SEARCH */

    .search-box {
        width: auto;
        margin: 0 12px 15px;
    }

    .search-box input {
        width: 100%;
        box-sizing: border-box;
        font-size: 15px;
    }


    /* CATEGORIES */

    .categories {
        margin: 0 12px 18px;
        gap: 8px;
    }

    .category-btn {
        padding: 9px 13px;
        font-size: 13px;
    }


    /* PRODUCTS */

    .products {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        width: auto;
        margin: 0 12px;
    }

    .product {
        width: 100%;
        min-width: 0;
        padding: 12px;
        box-sizing: border-box;
    }

    .product-image {
        width: 100%;
        height: 230px;
        object-fit: contain;
    }

    .nameofproduct {
        font-size: 17px;
        line-height: 1.4;
    }

    .priceofproduct {
        font-size: 16px;
    }


    /* PRODUCT BUTTONS */

    .product-buttons {
        gap: 10px;
    }

    .product-buttons button,
    .buybutton,
    .detailsbutton {
        width: 100%;
        min-height: 42px;
        padding: 11px;
        box-sizing: border-box;
        font-size: 14px;
    }


    /* CONTACT SECTION */

    #contact-section {
        padding: 35px 15px;
    }

    .contact-box {
        width: 100%;
        max-width: 400px;
        padding: 20px 15px;
        box-sizing: border-box;
    }

}

/* COMPACT MOBILE PRODUCT LAYOUT */

@media (max-width: 600px) {

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

.product {
    width: 100%;
    min-width: 0;
    padding: 8px;
    border-radius: 9px;
}

.product-image {
    width: 100%;
    height: 145px;
    object-fit: contain;
}

.nameofproduct {
    font-size: 13px;
    line-height: 1.35;
    margin: 8px 0 5px;
}

.priceofproduct {
    font-size: 13px;
    margin-bottom: 10px;
}

.product-buttons {
    gap: 7px;
}

.product-buttons button,
.buybutton,
.detailsbutton {
    width: 100%;
    min-height: 34px;
    padding: 7px 4px;
    font-size: 11px;
    border-radius: 6px;
    box-sizing: border-box;
}

.buybutton {
    margin-top: 5px;
}

#contact-section {
    padding: 30px 12px;
}

.contact-box {
    max-width: 340px;
    padding: 18px 12px;
}

}

/* GLOBAL MOBILE FIX FOR ALL PAGES */

@media (max-width: 600px) {

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-size: 16px;
}

h1 {
    font-size: 28px;
}

h2 {
    font-size: 23px;
}

h3 {
    font-size: 19px;
}

p,
label {
    font-size: 15px;
    line-height: 1.5;
}

input,
select,
textarea {
    font-size: 16px;
}

button {
    font-size: 15px;
}

.account-page {
    padding: 25px 15px;
}

.account-container {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.account-logo,
.login-logo {
    width: 200px;
    max-width: 80%;
    height: auto;
}

.account-card {
    padding: 20px;
}

.account-input,
.account-button {
    min-height: 46px;
    font-size: 16px;
}

.admin-navigation,
.admin-dropdown-content {
    padding: 16px;
}

.admin-dropdown-button {
    min-height: 48px;
    font-size: 16px;
}

.notification-bell {
    width: 45px;
    height: 45px;
}

}

/* =========================
DIVINE AI CHAT
========================= */

#divineAIButton {
position: fixed;
bottom: 20px;
right: 18px;
z-index: 9998;
background: #e87519;
color: white;
border: none;
border-radius: 30px;
padding: 14px 20px;
font-weight: bold;
font-size: 14px;
box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

#divineAIChat {
display: none;
position: fixed;
bottom: 85px;
right: 15px;
width: calc(100% - 30px);
max-width: 360px;
height: 450px;
max-height: 70vh;
background: white;
border-radius: 15px;
box-shadow: 0 5px 25px rgba(0,0,0,0.25);
z-index: 9999;
overflow: hidden;
flex-direction: column;
}

#divineAIChat.active {
display: flex;
}

.divine-ai-header {
background: #e87519;
color: white;
padding: 15px;
display: flex;
justify-content: space-between;
align-items: center;
}

.divine-ai-header strong,
.divine-ai-header small {
display: block;
}

.divine-ai-header small {
margin-top: 4px;
}

.divine-ai-header button {
background: transparent;
border: none;
color: white;
font-size: 20px;
}

#divineAIMessages {
flex: 1;
padding: 15px;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: 12px;
}

.divine-ai-message {
padding: 11px 13px;
border-radius: 12px;
font-size: 14px;
line-height: 1.5;
white-space: pre-wrap;
max-width: 90%;
}

.divine-ai-message.ai {
background: #f1f1f1;
color: #222;
align-self: flex-start;
}

.divine-ai-message.user {
background: #e87519;
color: white;
align-self: flex-end;
}

.divine-ai-input-area {
display: flex;
gap: 8px;
padding: 12px;
border-top: 1px solid #eee;
}

#divineAIInput {
flex: 1;
min-width: 0;
padding: 11px;
border: 1px solid #ddd;
border-radius: 20px;
outline: none;
}

#divineAISend {
width: 42px;
border: none;
border-radius: 50%;
background: #e87519;
color: white;
font-size: 18px;
}

#divineAISend:disabled {
opacity: 0.5;
}

/* =========================
   DIVINE AI FORMATTING
========================= */

.divine-ai-message.ai p {
    margin: 0 0 10px;
    line-height: 1.6;
}

.divine-ai-message.ai h3,
.divine-ai-message.ai h4 {
    margin: 14px 0 8px;
    font-weight: 700;
}

.divine-ai-message.ai h3 {
    font-size: 17px;
}

.divine-ai-message.ai h4 {
    font-size: 15px;
}

.divine-ai-message.ai ul {
    padding-left: 22px;
    margin: 8px 0 12px;
}

.divine-ai-message.ai li {
    margin-bottom: 7px;
    line-height: 1.5;
}

.divine-ai-message.ai strong {
    font-weight: 700;
}

.divine-ai-message.ai em {
    font-style: italic;
}

.divine-ai-table-wrap {
    width: 100%;
    overflow-x: auto;
    margin: 12px 0;
    border-radius: 8px;
}

.divine-ai-table {
    width: 100%;
    min-width: 340px;
    border-collapse: collapse;
    font-size: 12px;
    text-align: left;
}

.divine-ai-table th,
.divine-ai-table td {
    padding: 10px 8px;
    border: 1px solid #ddd;
    vertical-align: top;
    line-height: 1.5;
}

.divine-ai-table th {
    background: #f1f1f1;
    font-weight: 700;
}

.divine-ai-table td {
    background: #fff;
    color: #222;
}

.divine-ai-numbered {
    margin: 5px 0;
    line-height: 1.5;
}

