/* Dark mode */
:root {
    --background-color: #121212;
    --text-color: #e0e0e0;
    --navbar-bg-color: #1f1f1f;
    --navbar-text-color: #e0e0e0;
    --navbar-hover-color: #c669ff;
    --card-bg-color: #1f1f1f;
    --card-shadow-color: rgba(255, 255, 255, 0.1);
    --footer-bg-color: #1f1f1f;
    --footer-text-color: #e0e0e0;
    --footer-link-color: #c669ff;
	--success-color: #28a745;
	--danger-color: #dc3545;
}

/* General Reset */
* {
	user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--text-color);
    min-width: 280px;
    transition: background-color 0.3s ease, color 0.3s ease;
	
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}




.success-message {
    text-align: center;
    margin: 20px auto;
    padding: 20px;
    background-color: var(--background-color);
    color: var(--text-color);
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    max-width: 600px;
}
.success-message .button {
	margin-top: 10px;
}

.error-message {
    text-align: center;
    margin: 20px auto;
    padding: 20px;
    background-color: var(--background-color);
    color: var(--text-color);
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    max-width: 600px;
}

.error-message .success-message p {
    font-size: 18px;
    color: var(--text-color);
}

.error-message .success-message a {
    color: #007bff;
    text-decoration: none;
}

.error-message .success-message a:hover {
    text-decoration: underline;
}

.navbar, .album, .footer {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Navigation Bar */
.navbar {
    background-color: var(--navbar-bg-color);
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar a {
    color: var(--navbar-text-color);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.navbar a:hover {
    color: var(--navbar-hover-color);
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}

.navbar .logo:hover {
    color: #c263fb;
}
/* Navbar logo container */
.navbar-logo {
    margin-right: 20px; /* Add spacing between logo and links */
}

/* Navbar logo image */
.navbar-logo-img {
    height: 60px; /* Adjust the height as needed */
    width: auto; /* Maintain aspect ratio */
}
.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 4px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #333;
        padding: 1rem 0;
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }
}

/* Homepage */
.homepage {
	width: 100%;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.homepage h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

/* CSS for the logo */
.logo-container {
    text-align: center; /* Center the logo */
    margin: 20px 0; /* Add some spacing around the logo */
}

.coleys-logo {
    max-width: 300px; /* Adjust the maximum width of the logo */
    height: auto; /* Maintain aspect ratio */
    width: 100%; /* Make it responsive */
}

.gallery {
    display: grid;
    gap: 20px;
    padding: 20px;
    grid-template-columns: repeat(3, 1fr);
}

/* Adjust for larger screens */
@media (min-width: 1200px) {
    .gallery {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1600px) {
    .gallery {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Adjust for smaller screens */
@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .gallery {
        grid-template-columns: repeat(1, 1fr);
    }
}

.album {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: #f0f0f0;
    aspect-ratio: 3 / 2;
    text-align: center;
    text-decoration: none;
    color: inherit;
}

.album img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.album img:hover {
    transform: scale(1.05);
}

.album h3 {
    margin: 10px 0 5px;
    font-size: 1.2rem;
    color: var(--text-color);
}

.album p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.album-description {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    text-align: center;
}

.photo-grid {
    display: grid;
    gap: 20px;
    padding: 20px;
    justify-content: center;
}


.photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: #f0f0f0;
    aspect-ratio: 3 / 2;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-item img:hover {
    transform: scale(1.05);
}

.photo-item img.loaded {
    opacity: 1;
}

.photo-details {
    padding: 10px;
    background: white;
    border-radius: 0 0 10px 10px;
}

.photo-details h3 {
    margin: 0 0 5px;
    font-size: 1.2rem;
}

.photo-details p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.download-button {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 8px 16px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease;
	text-decoration: none;
}
.download-button:hover {
    background-color: #0056b3;
}


.cart-button {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 8px 16px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease;
	text-decoration: none;
}

.cart-button:hover {
    background-color: #0056b3;
}

.cart-button[data-action="remove"] {
    background-color: #dc3545;
}

.cart-button[data-action="remove"]:hover {
    background-color: #c82333;
}

.cart-button:disabled {
    cursor: not-allowed;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 1rem 2rem;
    background-color: var(--navbar-bg-color);
    margin-bottom: 0.5rem;
}

.breadcrumbs a {
    color: var(--footer-text-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.breadcrumbs a:hover {
    color: #c263fb;
}

/* Footer */
.footer {
    text-align: center;
    padding: 0.5rem;
    background-color: var(--footer-bg-color);
    color: var(--footer-text-color);
	margin-top: auto;
}

.footer a {
    color: var(--footer-link-color);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Password Prompt */
.password-prompt {
    display: flex;
    max-width: 500px;
    align-items: center;
    justify-content: center;
    height: 300px;
    margin: 50px auto;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    flex-wrap: nowrap;
}

.password-prompt h1 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: #333;
}

.password-prompt p {
    margin-bottom: 1rem;
    color: #555;
}

.password-prompt .error {
    color: #ff0000;
    margin-bottom: 1rem;
}

.password-prompt input[type="password"] {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.password-prompt button {
    width: 100%;
    padding: 0.75rem;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.password-prompt button:hover {
    background-color: #555;
}

/* Admin Container */
.admin-container {
    max-width: 1200px;
	width: 80%;
    margin: 2rem auto;
    padding: 1rem;
    background-color: var(--card-bg-color);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Forms */
.admin-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
}

.admin-form h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.admin-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.admin-form input[type="text"],
.admin-form input[type="number"],
.admin-form input[type="password"],
.admin-form input[type="email"],
.admin-form select,
.admin-form textarea {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.admin-form textarea {
    resize: vertical;
    min-height: 100px;
}

.admin-form button {
    padding: 0.5rem 1rem;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.admin-form button:hover {
    background-color: #555;
}

/* Tables */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
}

.admin-table th,
.admin-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.admin-table th {
    background-color: var(--background-color);
    font-weight: bold;
}

.admin-table tr:hover {
    background-color: var(--background-color);
}

.admin-table a {
    text-decoration: none;
    margin-right: 0.5rem;
    transition: color 0.3s ease;
}

.admin-table a:hover {
    color: #fff;
}

/* Buttons */
.button {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--footer-bg-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.button:hover {
    background-color: #555;
}

.button-danger {
    color: #333;
    background-color: #e65a50;
}

.button-danger:hover {
    background-color: #e65a50;
}

.button-primary {
    color: #fff;
    background-color: #333;
}

/* Password Field Styles */
#password-field {
    margin-top: 1rem;
}

#password-field label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

#password-field input[type="password"] {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

#password-field input[type="password"]:focus {
    border-color: #333;
    outline: none;
}

.social-media {
    margin-top: 0px;
}

.social-media a {
    color: #fff;
    margin: 0 10px;
    font-size: 20px;
    transition: color 0.3s ease;
}

.social-media a:hover {
    color: #c263fb;
}

.header-with-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0px;
}

.scan-output {
    background-color: var(--background-color);
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: monospace;
    white-space: normal;
    overflow-x: auto;
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.error {
    color: red;
    font-weight: bold;
}

/* Cart Page Styles */
.cart-page {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.cart-page h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    text-align: center;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item {
    display: flex;
    align-items: center;
    background-color: var(--card-bg-color);
    border-radius: 8px;
    padding: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cart-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px var(--card-shadow-color);
}

.cart-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 1rem;
}

.cart-item-details {
    flex: 1;
}

.cart-item-details p {
    color: var(--text-color);
}

.cart-item-details p:first-child {
    font-weight: bold;
}

.remove-button {
    padding: 0.5rem 1rem;
    background-color: #e65a50;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.remove-button:hover {
    background-color: #d43f35;
}

/* Empty Cart Message */
.cart-page p {
    text-align: center;
    color: var(--text-color);
    font-size: 1.1rem;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #28a745;
    color: #fff;
    padding: 1rem;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 200000;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.error {
    background-color: #dc3545;
}

/* Cart Icon and Counter */
.cart-link {
    position: relative;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--navbar-text-color);
    transition: color 0.3s ease;
}

.cart-link:hover {
    color: var(--navbar-hover-color);
}

.cart-link i {
    font-size: 1.2rem;
}

#cart-counter {
    background-color: #dc3545;
    color: #fff;
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 50%;
    margin-left: 0.5rem;
}

/* Cart Item Details */
.cart-item-details p {
    color: var(--text-color);
}

.cart-item-details p:last-child {
    font-weight: bold;
}

/* Cart Total */
.cart-total {
    text-align: right;
    margin-top: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
}

/* Discount Code Section */
.discount-code {
    margin: 20px 0;
    padding: 20px;
    background-color: var(--card-bg-color);
    border-radius: 10px;
    text-align: center;
}

.discount-code label {
    display: block;
    margin-bottom: 10px;
    font-size: 1rem;
    color: var(--text-color);
}

.discount-code input[type="text"] {
    width: 200px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    color: #000;
    margin-right: 10px;
    text-transform: uppercase;
}

.discount-code input[type="text"]::placeholder {
    text-transform: none;
}

.discount-code button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.discount-code button:hover {
    background-color: #0056b3;
}

.discount-code #discount-message {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-color);
}

.discount-code #discount-message.error {
    color: #dc3545;
}

.index-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    justify-content: center;
}

.index-grid .grid-item {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
}

.index-grid .photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px 10px 0px 0px;
    background: #f0f0f0;
    aspect-ratio: 3 / 2;
}

.index-grid .photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.index-grid .photo-item img:hover {
    transform: scale(1.05);
}

.index-grid .album-info {
    text-align: center;
    padding: 5px;
    background: var(--navbar-bg-color);
    border-radius: 0 0 10px 10px;
}

.index-grid .album-info h3 {
    margin: 0;
    font-size: 1.2rem;
}

.index-grid .album-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-color);
}

.album-grid {
    display: grid;
    gap: 20px;
    padding: 20px;
    justify-content: center;
    grid-template-columns: repeat(4, minmax(200px, 1fr));
}

/* Adjust for medium screens */
@media (max-width: 1200px) {
    .album-grid {
        grid-template-columns: repeat(3, minmax(200px, 1fr));
    }
}

/* Adjust for smaller screens */
@media (max-width: 768px) {
    .album-grid {
        grid-template-columns: repeat(2, minmax(200px, 1fr));
    }
}

/* Adjust for mobile screens */
@media (max-width: 480px) {
    .album-grid {
        grid-template-columns: repeat(1, minmax(200px, 1fr));
    }
}

.album-grid .photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: #f0f0f0;
    aspect-ratio: 3 / 2;
}

.album-grid .photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.album-grid .photo-item img:hover {
    transform: scale(1.05);
}

.album-grid .album-info {
    text-align: center;
    padding: 10px;
}

.album-grid .album-info h3 {
    margin: 0 0 5px;
    font-size: 1.2rem;
}

.album-grid .album-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-color);
}

/* For index.php */
.index-grid .grid-item:hover .photo-item img {
    transform: scale(1.05);
}

.index-grid .grid-item:hover .album-info h3 {
    color: #c263fb;
}

/* For album.php */
.album-grid .photo-item:hover img {
    transform: scale(1.05);
}

.album-grid .photo-item:hover .album-info h3 {
    color: #c263fb;
}

/* Cart Page Styles */
.cart-page {
	width: 100%;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.cart-page h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    text-align: center;
}

.checkout-page {
	width: 100%;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.checkout-page h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    text-align: center;
}

.empty-cart-message {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-color);
}

.empty-cart-message a {
    color: var(--navbar-hover-color);
    text-decoration: none;
}

.empty-cart-message a:hover {
    text-decoration: underline;
}

.cart-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 2rem;
}

.cart-item {
    background-color: var(--card-bg-color);
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 4px 6px var(--card-shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cart-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px var(--card-shadow-color);
}

.cart-item-image {
    width: 100%;
    aspect-ratio: 3 / 2; /* Ensures the image is square */
    overflow: hidden;
    border-radius: 8px;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image fills the square */
}

.cart-item-details {
    margin-top: 0.3rem;
    width: 100%;
}

.cart-item-details h3 {
    font-size: 1.2rem;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-details p {
    color: var(--text-color);
    font-size: 0.9rem;
}

.remove-from-cart-button {
    display: block;
    width: 100%;
    padding: 0.5rem;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.remove-from-cart-button:hover {
    background-color: #c82333;
}

/* Discount Section Styles */
.discount-section {
    max-width: 400px; /* Limit the width of the discount section */
    margin: 2rem auto; /* Center the discount section */
    padding: 1rem;
    background-color: var(--card-bg-color);
    border-radius: 10px;
    box-shadow: 0 4px 6px var(--card-shadow-color);
    text-align: center;
}

.discount-section label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: var(--text-color);
}

.discount-input-group {
    display: flex;
    gap: 10px; /* Space between input and button */
    align-items: center;
    justify-content: center;
}

.discount-section input[type="text"] {
    flex: 1; /* Allow the input to grow and fill available space */
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    max-width: 200px; /* Limit the width of the input */
}

.discount-section button {
    padding: 0.5rem 1rem;
    background-color: var(--navbar-bg-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.discount-section button:hover {
    background-color: var(--navbar-hover-color);
}

#discount-message {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-color);
}

#discount-message.error {
    color: #dc3545;
}

/* Combined Cart Summary and Discount Section */
.cart-summary {
    margin: 1rem auto; /* Center the summary */
    padding: 1rem;
    background-color: var(--card-bg-color);
    border-radius: 10px;
    box-shadow: 0 4px 6px var(--card-shadow-color);
}

.summary-header {
	max-width: 400px;
    margin: 0rem auto;
    text-align: center;
}

.summary-header h2 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin: 0;
}

.summary-details {
    max-width: 400px;
    margin: 1rem auto;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #ddd;
}

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

.summary-row.total {
    font-weight: bold;
    font-size: 1.1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--navbar-bg-color);
}

.summary-row span {
    color: var(--text-color);
}

/* Discount Input Section */
.discount-input {
    max-width: 400px;
    margin: 1rem auto;
}

.discount-input label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-color);
}

.discount-input-group {
    display: flex;
    gap: 5px; /* Space between input and button */
}

.discount-input input[type="text"] {
    flex: 1; /* Allow the input to grow and fill available space */
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
	text-transform: uppercase;
}

.discount-input input[type="text"]::placeholder {
    text-transform: none;
}

.discount-input button {
    padding: 0.6rem 1rem;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.discount-input button:hover {
    background-color: #0056b3;
}

#discount-message {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-color);
}

#discount-message.error {
    color: #dc3545;
}

/* Checkout Button */
.checkout-button {
    display: block;
    width: 100%;
    max-width: 300px;
    padding: 1rem;
    background-color: #007bff;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    transition: background-color 0.3s ease;
	margin: 0.5rem auto;
}

.checkout-button:hover {
    background-color: #0056b3;
}

.secure-checkout-note {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-color);
    margin: 0;
	
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.secure-checkout-note i {
    margin-right: 0.5rem;
    color: #28a745; /* Green color for the lock icon */
}

/* Container for the Stripe card element */
#card-element {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Styling for the Stripe card element */
.StripeElement {
    width: 100%;
}

/* Styling for invalid input */
.StripeElement--invalid {
    border-color: #ff0000;
}

/* Styling for the payment form */
#payment-form {
    max-width: 500px;
    margin: 0 auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.quick-actions {
    margin-bottom: 20px;
}

.quick-actions h2 {
    margin-bottom: 0px;
    font-size: 1.2em;
    color: var(--text-color);
}

.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.action-buttons .button {
    flex: 1 1 auto;
    max-width: 400px;
    text-align: center;
}


/* Default layout (for large screens, including 4K) */
.category-grid, .photo-grid, .product-grid {
    grid-template-columns: repeat(4, minmax(200px, 1fr));
}

/* Adjust for large screens (2K resolution) */
@media (max-width: 2560px) {
    .category-grid, .photo-grid, .product-grid {
        grid-template-columns: repeat(4, minmax(200px, 1fr));
    }
}

/* Adjust for medium-large screens (Full HD) */
@media (max-width: 1920px) {
     .photo-grid {
        grid-template-columns: repeat(4, minmax(200px, 1fr));
    }
}
/* Adjust for medium-large screens (Full HD) */
@media (max-width: 1920px) {
    .category-grid, .product-grid {
        grid-template-columns: repeat(3, minmax(200px, 1fr));
    }
}

/* Adjust for smaller desktop screens */
@media (max-width: 1200px) {
    .category-grid, .photo-grid, .product-grid {
        grid-template-columns: repeat(3, minmax(200px, 1fr));
    }
}

/* Adjust for tablets */
@media (max-width: 768px) {
    .category-grid, .photo-grid, .product-grid {
        grid-template-columns: repeat(2, minmax(200px, 1fr));
    }
}

/* Adjust for mobile screens */
@media (max-width: 570px) {
    .category-grid, .photo-grid, .product-grid {
        grid-template-columns: repeat(1, minmax(200px, 1fr));
    }
}

.product-grid {
    display: grid;
    gap: 20px;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Category and Sub-category Items */
.category-item, .sub-category-item {
    background-color: var(--card-bg-color);
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 4px 6px var(--card-shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.category-item:hover, .sub-category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px var(--card-shadow-color);
}

.category-item h2, .sub-category-item h3 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
    color: var(--text-color);
}

.category-item a, .sub-category-item a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.category-item a:hover, .sub-category-item a:hover {
    color: var(--navbar-hover-color);
}


/* Album Items */
.album-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: var(--card-bg-color);
    aspect-ratio: 3 / 2;
    text-align: center;
    box-shadow: 0 4px 6px var(--card-shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.album-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px var(--card-shadow-color);
}

.album-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.album-item img:hover {
    transform: scale(1.05);
}

.album-item h3 {
    margin: 0.5rem 0;
    font-size: 1.2rem;
    color: var(--text-color);
}

.album-item p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-color);
}



/* Breadcrumbs */
.breadcrumbs {
    padding: 1rem 2rem;
    background-color: var(--navbar-bg-color);
    margin: 1rem;
    border-radius: 10px;
}

.breadcrumbs a {
    color: var(--footer-text-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: var(--navbar-hover-color);
}

.breadcrumbs span {
    color: var(--footer-text-color);
    font-size: 0.9rem;
} 



.category-page h1 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}



.album-page h1 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 0rem;
    color: var(--text-color);
}

.album-page p {
    text-align: center;
    color: var(--text-color);
}

.photo-grid {
    display: grid;
    gap: 20px;
    padding: 20px;
    justify-content: center;
}

.photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: var(--card-bg-color);
    aspect-ratio: 3 / 2;
    box-shadow: 0 4px 6px var(--card-shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px var(--card-shadow-color);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-item img:hover {
    transform: scale(1.05);
}

.photo-item .cart-button {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 8px 16px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.photo-item .cart-button:hover {
    background-color: #0056b3;
}

.cart-button {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 8px 16px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease;
	text-decoration: none;
}

.cart-button:hover {
    background-color: #0056b3;
}

.cart-button[data-action="remove"] {
    background-color: #dc3545;
}

.cart-button[data-action="remove"]:hover {
    background-color: #c82333;
}

.cart-button:disabled {
    cursor: not-allowed;
}

/* Lightbox */
[data-lightbox] {
    cursor: pointer;
}

/* Thumbnail Styling */
.thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.thumbnail:hover {
    transform: scale(1.05);
}


/* Dark Mode Adjustments */
.dark-mode .category-item, .dark-mode .sub-category-item, .dark-mode .album-item, .dark-mode .photo-item {
    background-color: var(--card-bg-color);
    box-shadow: 0 4px 6px var(--card-shadow-color);
}

.dark-mode .category-item:hover, .dark-mode .sub-category-item:hover, .dark-mode .album-item:hover, .dark-mode .photo-item:hover {
    box-shadow: 0 6px 12px var(--card-shadow-color);
}

.dark-mode .breadcrumbs {
    background-color: var(--navbar-bg-color);
}

.dark-mode .breadcrumbs a, .dark-mode .breadcrumbs span {
    color: var(--footer-text-color);
}

/* Category Grid */
.category-grid {
    display: grid;
    gap: 20px;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Category Card */
.category-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 3 / 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.category-card:hover img {
    transform: scale(1.1);
}

/* Category Overlay */
.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 1;
    transition: opacity 0.3s ease;
	text-decoration: none; /* Remove underline from link */
}

.category-card:hover .category-overlay {
    opacity: 0.9;
}

.category-overlay h2 {
    font-size: 1.5rem;
    text-align: center;
}

.category-overlay a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-overlay a:hover {
    color: #c263fb;
}

/* Shop Overview */
.shop-page {
    padding: 20px;
}


.shop-item {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}

.shop-item img {
    max-width: 100%;
    height: auto;
}

/* Item Detail Page */
.item-page {
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.product-image img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.item-page form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.item-page label {
    font-weight: bold;
}

.item-page select,
.item-page input[type="number"] {
    padding: 5px;
    font-size: 16px;
}

.item-page button {
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
}

.item-page button:hover {
    background-color: #0056b3;
}

/* Form Container */
#item-form-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: var(--card-bg-color);
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Form Labels */
#item-form-content label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-color);
}

/* Form Inputs */
#item-form-content input[type="text"],
#item-form-content input[type="number"],
#item-form-content textarea,
#item-form-content input[type="file"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

#item-form-content textarea {
    resize: vertical;
    min-height: 100px;
}

/* Color Options Section */
#color-options {
    margin-bottom: 20px;
}

.color-option {
    margin-bottom: 15px;
    padding: 0px;
    background-color: var(--card-bg-color);
    border: 1px solid #ddd;
    border-radius: 4px;
}

.color-option label {
    display: block;
    margin-bottom: 5px;
    font-weight: normal;
    color: #555;
}

.color-option input[type="text"],
.color-option input[type="file"] {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

/* Buttons */
#item-form-content button {
    padding: 10px 20px;
    margin-right: 10px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#item-form-content button.button-primary {
    background-color: #007bff;
    color: #fff;
}

#item-form-content button.button-primary:hover {
    background-color: #0056b3;
}

#item-form-content button.button-secondary {
    background-color: #6c757d;
    color: #fff;
}

#item-form-content button.button-secondary:hover {
    background-color: #5a6268;
}

#item-form-content button.button-danger {
    background-color: #dc3545;
    color: #fff;
}

#item-form-content button.button-danger:hover {
    background-color: #c82333;
}

/* Remove Color Button */
.remove-color-button {
    background-color: #ff4444;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.remove-color-button:hover {
    background-color: #cc0000;
}

/* Responsive Design */
@media (max-width: 768px) {
    #item-form-content {
        padding: 15px;
    }

    #item-form-content input[type="text"],
    #item-form-content input[type="number"],
    #item-form-content textarea,
    #item-form-content input[type="file"] {
        font-size: 14px;
    }

    #item-form-content button {
        font-size: 14px;
        padding: 8px 16px;
    }
}




/* Shop Page */
.shop-page {
	width: 100%;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.shop-page h1 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 0rem;
    color: var(--text-color);
}



.product-card {
    border: 1px solid var(--card-bg-color);
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--card-bg-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-info {
    padding: 0px;
    text-align: center;
}

.product-info h2 {
    margin: 0px;
    font-size: 1.2rem;
    color: var(--text-color);
}

.product-info .price {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: bold;
}

/* Product Detail Page */
.product-page {
    display: flex;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.product-images {
    flex: 1;
}

.product-images img {
    width: 100%;
    border-radius: 8px;
}

.color-options {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.color-option {
	padding: 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.color-option:hover {
    border-color: #007bff;
}

.color-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-details {
    flex: 1;
}

.product-details h1 {
    margin: 0 0 10px;
    font-size: 2rem;
    color: var(--text-color);
}

.product-details .price {
    margin: 0 0 20px;
    font-size: 1.5rem;
    color: #007bff;
    font-weight: bold;
}

.product-details .description {
    margin: 0 0 20px;
    font-size: 1rem;
    color: var(--text-color);
}

.product-details form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-details label {
    font-weight: bold;
    color: var(--text-color);
}

.product-details select,
.product-details input[type="number"] {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.product-details .button {
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.product-details .button:hover {
    background-color: #0056b3;
}


/* Shipping Address Section */
.shipping-address {
    margin: 0rem auto;
    max-width: 500px;
    margin-bottom: 2rem;
    padding: 1.5rem;
	background-color: var(--background-color);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.shipping-address h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--text-color);
}

.saved-address {
    margin-bottom: 1.5rem;
}

.saved-address p {
    margin: 0.5rem 0;
    font-size: 1rem;
    color: var(--text-color);
}

.saved-address strong {
    font-weight: 600;
    color: var(--text-color);
}

#edit-address-button {
    margin-top: 1rem;
    background-color: #007bff;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

#edit-address-button:hover {
    background-color: #0056b3;
}

/* Shipping Address Form */
#shipping-form {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

#shipping-form label {
    font-weight: 600;
    color: var(--text-color);
}

#shipping-form input {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

#shipping-form input:focus {
    border-color: #007bff;
    outline: none;
}

#shipping-form button {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 4px;
    cursor: pointer;
}

#shipping-form button:hover {
    background-color: #218838;
}

/* Hidden Class */
.hidden {
    display: none !important;
}

.page-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-bottom: 1rem;
	border-bottom: 1px solid #ddd;
}

.page-header h1 {
	font-size: 1.75rem;
	color: var(--text-color);
}

.table-responsive {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.orders-table {
	width: 100%;
	border-collapse: collapse;
}

.orders-table thead {

}

.orders-table th {
	padding: 1rem;
	text-align: left;
	font-weight: bold;
	text-transform: uppercase;
	font-size: 0.8rem;
	letter-spacing: 0.5px;
}

.orders-table td {
	padding: 1rem;
	border-bottom: 1px solid #eee;
	vertical-align: middle;
}

.orders-table tr:last-child td {
	border-bottom: none;
}

.orders-table tr:hover {

}

.orders-table tr {
	border: 1px solid #eee;
	border-radius: 8px;
}

.status-badge {
	display: inline-flex;
	align-items: center;
	font-weight: 600;
}

.status-completed {
	color: var(--success-color);
}

.status-pending {
	color: var(--danger-color);
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.5rem 1rem;
	border-radius: 4px;
	font-weight: 500;
	font-size: 0.875rem;
	cursor: pointer;
	transition: all 0.15s ease;
	text-decoration: none;
}

.btn-primary {
	background-color: #333;
	color: var(--navbar-text-color);
	border: none;
}

.btn-primary:hover {
	background-color: var(--navbar-hover-color);
}

.btn-sm {
	padding: 0.375rem 0.75rem;
	font-size: 0.75rem;
}

.no-orders {
	padding: 2rem;
	text-align: center;
	color: #777;
}

.no-orders i {
	color: #ddd;
	margin-bottom: 1rem;
}

.no-orders h3 {
	margin-bottom: 0.5rem;
	color: var(--text-color);
}

.admin-breadcrumbs a {
	color: #e0e0e0;
}

/* Mobile styles */
@media (max-width: 940px) {
	.orders-table {
		display: table;
	}
	
	.orders-table thead {
		display: none;
	}
	
	.orders-table tr {
		display: block;
		margin-bottom: 1rem;
		border: 1px solid #eee;
		border-radius: 8px;
	}
	
	.orders-table td {
		display: flex;
		flex-wrap: wrap;
		justify-content: space-between;
		align-items: center;
		padding: 0.75rem;
		border-bottom: 1px solid #eee;
	}
	
	.orders-table td:before {
		content: attr(data-label);
		font-weight: 600;
		margin-right: 1rem;
		color: #777;
		flex: 1;
	}
	
	.orders-table td:last-child {
		border-bottom: none;
	}
	
	.orders-table td .btn {
		width: 100%;
		justify-content: center;
	}
	
	.status-badge {
		margin-left: auto;
	}
}

/* favourites Button (Top Right) */
.fav-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 16px;
    pointer-events: auto; /* Enable clicks */
    transition: all 0.3s ease;
    z-index: 10;
}

.fav-button:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.fav-button.favourited {
    color: #ff6b6b;
}

.fav-button.favourited i {
    font-weight: 900;
}

/* PhotoSwipe action buttons */
.pswp__button--favorite-button,
.pswp__button--add-to-cart-button {
  background: none;
  color: #fff !important;
  font-size: 22px;
  transition: all 0.2s;
}

.pswp__button--favorite-button:hover,
.pswp__button--add-to-cart-button:hover {
  transform: scale(1.1);
}

/* Favorite button states */
.pswp__button--favorite-button.favourited {
  color: var(--danger-color) !important;
}

/* Cart button states */
.pswp__button--add-to-cart-button[data-action="remove"] {
  color: var(--danger-color) !important;
}

/* Icons */
.pswp__button--favorite-button i,
.pswp__button--add-to-cart-button i {
  display: block;
  pointer-events: none;
}

.pswp__top-bar {
  background: #1f1f1f99;
}