.product-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 8px;
}
body {
    font-family: 'Merriweather Sans', sans-serif;
    background: url('<?= $this->Url->build("/img/header-bg.jpg") ?>') no-repeat center center fixed;
    background-size: cover;
}
.page-title {
    font-weight: 700;
    margin: 100px 0 30px;
    text-align: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}
.cart-table th, .cart-table td {
    vertical-align: middle;
}
.btn-checkout {
    background-color: #f4623a;
    border: none;
}
.btn-checkout:hover {
    background-color: #cf4a24;
}
.cart-container {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}
.navbar {
    background-color: rgba(0,0,0,0.7);
}
.star-rating .star i {
    color: #dee2e6;
    cursor: pointer;
}
.star-rating .star.hovered i,
.star-rating .star.selected i {
    color: gold;
}

.content {
    padding: 2rem;
    background: var(--color-white);
    border-radius: 0.4rem;
    /* Thanks Stripe */
    box-shadow: 0 7px 14px 0 rgba(60, 66, 87, 0.1),
    0 3px 6px 0 rgba(0, 0, 0, 0.07);
}

.content th a,
.content tr a {
    text-decoration: none;
    font-weight: bold;
    color: #007bff;
    transition: color 0.2s ease-in-out;
}

.content th a:hover,
.content tr a:hover {
    text-decoration: underline;
    color: #0056b3;
}


.users.index.content th {
    font-weight: bold;
    text-align: center;
    padding: 12px;
}

/* Utility */
.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

.table-responsive th,
.table-responsive td {
    text-align: center;
    word-wrap: break-word;
    padding: 10px;
    border: 1px solid #dee2e6;
}


.button {
    display: inline-block;
    background-color: #4e73df; /* primary blue */
    color: #fff;
    padding: 10px 20px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: background-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    margin-bottom: 10px;
}

.button:hover {
    background-color: #2e59d9;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    text-decoration: none;
}


/* Paginator */
.paginator {
    text-align: right;
}
.paginator p {
    margin-bottom: 0;
    text-align: center;

}
.pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0 0 1rem 0;
    padding: 0;
}
.pagination li {
    display: inline-block;
    margin: 0.25em;
    text-align: center;
}
.pagination a {
    color: var(--color-cakephp-blue);
    display: inline-block;
    font-size: 1.25rem;
    line-height: 3rem;
    min-width: 3rem;
    padding: 0;
    position: relative;
    text-decoration: none;
    transition: background .3s,color .3s;
}
.pagination li.active a,
.pagination a:hover {
    text-decoration: underline;
}
.pagination .disabled a {
    cursor: not-allowed;
    color: var(--color-lightgray);
    text-decoration: none;
}
.first a,
.prev a,
.next a,
.last a {
    padding: 0 .75rem;
}
.disabled a:hover {
    background: initial;
    color: initial;
}
.asc:after {
    content: " \2193";
}
.desc:after {
    content: " \2191";
}

.page-section.bg-primary {
    background-color: #99e7ff !important


}


/* General form error styling */
.error-message {
    color: red;
    font-size: 0.875rem; /* smaller font like invalid-feedback */
    margin-top: 0.25rem;
    font-weight: normal;
}

/* Match Bootstrap invalid feedback style */
input.is-invalid, textarea.is-invalid, select.is-invalid {
    border-color: #dc3545; /* Red border */
}

input.is-invalid + .error-message,
textarea.is-invalid + .error-message,
select.is-invalid + .error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.no-border {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Hide default background */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-image: none !important;
    background-color: transparent;
    width: 40px;
    height: 40px;
}

/* Flip arrow direction for next icon */
.carousel-control-next-icon {
    transform: scaleX(-1);
}

/* Glow effect on hover */
.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: rgba(200, 200, 200, 0.3);}

.blur-overlay {
    filter: blur(5px);
    transition: filter 0.3s ease;
}
