/* style.css content starts here */

body {
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f8f9fa; /* Original light background for the overall page */
    color: #212529; /* Original text color */
}
.navbar {
    background-color: #f8f9fa; /* Original light background for navbar */
    box-shadow: 0 2px 4px rgba(0,0,0,.05);
}
.navbar-brand {
    color: #007bff !important; /* Original primary color for brand */
    font-weight: bold; /* Ensure the text title is bold */
    font-size: 1.5rem; /* Adjust font size as needed */
}
/* Removed .navbar-brand img and .navbar-brand .logo-img styles as they are no longer needed */

.navbar-nav .nav-link {
    color: rgba(0,0,0,.55) !important; /* Original text color for nav links */
    transition: color 0.2s ease-in-out;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #007bff !important; /* Original primary color on hover/active */
}
.main-content {
    flex: 1;
}
.hero-carousel {
    background-color: #e9ecef; /* Original light grey background for carousel section */
    padding: 2rem 0;
    color: #212529; /* Original text color on background */
}
.carousel-item img {
    max-height: 500px;
    object-fit: cover;
    width: 100%;
}
.poster-card {
    border: none;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,.05); /* Original shadow */
    transition: transform 0.2s ease-in-out;
    position: relative;
    background-color: #FFFFFF; /* Original white card background */
}
.poster-card:hover {
    transform: translateY(-5px); /* Original lift on hover */
    box-shadow: 0 4px 8px rgba(0,0,0,.1); /* Lighter shadow on hover */
}
.poster-card img {
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
    object-fit: cover;
    width: 100%;
    height: 250px;
}
.poster-card .card-body {
    padding: 1rem;
}
.poster-card .card-title {
    font-weight: 600; /* Original font weight */
    font-size: 1.15rem; /* Original font size */
    color: #212529; /* Original text color */
}
.poster-card .card-text {
    font-size: 0.9rem; /* Original font size */
    color: #6c757d; /* Original grey for body text */
}
.item-number-color {
    color: #6c757d; /* Original grey for item number */
    font-weight: bold;
    font-size: 0.95rem;
}
.price {
    font-size: 1.25rem; /* Original font size */
    font-weight: 700; /* Original font weight */
    color: #007bff; /* Original primary color for price */
}
.label {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #dc3545; /* Original red for new */
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
}
.label.new {
    background-color: #28a745; /* Original green for new */
}
.label.sold {
    background-color: #6c757d; /* Original grey for sold */
    color: white;
}
.footer {
    background-color: #343a40; /* Original dark background for footer */
    color: white;
    padding: 2rem 0;
    text-align: center;
    width: 100%;
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
    margin-top: auto;
}
.footer a {
    color: #007bff; /* Original primary color links in footer */
    text-decoration: none;
}
.footer a:hover {
    text-decoration: underline;
}
.btn-add-to-cart, .btn-primary {
    background-color: #007bff; /* Original primary color for buttons */
    color: white;
    border-radius: 0.5rem;
    font-weight: 500; /* Original font weight */
    transition: background-color 0.2s ease-in-out;
    border: none; /* Keep border removed for consistency */
}
.btn-add-to-cart:hover, .btn-primary:hover {
    background-color: #0056b3; /* Original darker primary color on hover */
    transform: none; /* No lift on hover for original theme */
}
.btn-add-to-cart:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    transform: none;
}
.btn-secondary {
    background-color: #6c757d; /* Original secondary grey */
    color: white;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: background-color 0.2s ease-in-out;
    border: none;
}
.btn-secondary:hover {
    background-color: #5a6268;
}

/* Message box styling */
.message-box-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Original overlay opacity */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}
.message-box-overlay.show {
    opacity: 1;
    visibility: visible;
}
.message-box {
    background: white; /* Original white background */
    padding: 2rem; /* Original padding */
    border-radius: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); /* Original shadow */
    text-align: center;
    max-width: 400px; /* Original width */
    width: 90%;
    transform: translateY(-20px); /* Original entry animation */
    transition: transform 0.3s ease-in-out;
    color: #212529; /* Original text color */
}
.message-box-overlay.show .message-box {
    transform: translateY(0);
}
.message-box h5 {
    margin-bottom: 1rem;
    font-weight: 600;
    color: #212529; /* Original title color */
}
.message-box button {
    margin-top: 1.5rem;
    padding: 0.75rem 1.5rem; /* Original button size */
    border-radius: 0.5rem; /* Original border radius */
    font-weight: 500;
    background-color: #007bff; /* Original primary button color */
    color: white;
}
.message-box button:hover {
    background-color: #0056b3; /* Original darker primary on hover */
}

/* Cart page specific styles */
#cart-page {
    display: none;
    background-color: white; /* Original white background for cart page */
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 8px rgba(0,0,0,.05);
}
.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee; /* Original lighter border */
    padding-bottom: 1rem;
}
.cart-item:last-child {
    border-bottom: none;
}
.cart-item img {
    width: 80px; /* Original image size */
    height: 80px;
    object-fit: cover;
    border-radius: 0.5rem; /* Original border radius */
    margin-right: 1rem;
    border: none; /* Removed border */
}
.cart-item-details {
    flex-grow: 1;
}
.cart-item-details h6 {
    margin-bottom: 0.25rem;
    font-weight: 600;
    color: #212529; /* Original text color */
}
.cart-item-details p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: #6c757d;
}
.cart-total {
    font-size: 1.5rem; /* Original total font size */
    font-weight: 700;
    color: #212529; /* Original total color */
}
.remove-item-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem; /* Original padding */
    font-size: 0.8rem;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}
.remove-item-btn:hover {
    background-color: #c82333;
}
.shipping-disclaimer {
    font-size: 0.9rem; /* Original font size */
    color: #6c757d; /* Original grey for disclaimer */
    text-align: right;
    margin-top: 0.5rem;
}
.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem; /* Reduced spacing between buttons */
    justify-content: center;
    margin-bottom: 3rem; /* Increased spacing between filter section and tiles */
    padding: 1rem 0; /* Added padding for better visual separation */
}
.filter-buttons .btn {
    border-radius: 0.5rem; /* Original border radius */
    padding: 0.5rem 1rem; /* Original padding */
    font-size: 0.9rem;
    transition: all 0.2s ease-in-out;
    border: 1px solid #007bff; /* Original border */
    color: #007bff; /* Original text color for inactive filters */
    background-color: transparent;
}
.filter-buttons .btn:hover {
    background-color: #007bff; /* Original background on hover */
    color: white;
}
.filter-buttons .btn.active {
    background-color: #007bff; /* Original primary for active filter */
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,.1); /* Original shadow */
    border-color: #007bff; /* Original border color for active filter */
}
.filter-buttons .btn.all-filter-button {
    font-weight: bold;
    padding: 0.75rem 1.5rem; /* Larger padding for "All" button */
    border-width: 2px; /* Thicker border for "All" button */
}

/* Social media share icons styling */
.social-share-container {
    display: flex;
    justify-content: center;
    gap: 0.75rem; /* Spacing between social media icons */
    margin-top: 1rem;
}
.social-share-container a {
    color: #6c757d; /* Default icon color */
    font-size: 1.25rem; /* Icon size */
    transition: color 0.2s ease-in-out;
}
.social-share-container a:hover {
    color: #007bff; /* Hover color */
}
.social-share-container .fa-pinterest:hover {
    color: #E60023; /* Pinterest brand color */
}
.social-share-container .fa-x-twitter:hover {
    color: #000000; /* X (Twitter) brand color */
}
.social-share-container .fa-facebook-f:hover {
    color: #1877F2; /* Facebook brand color */
}
.social-share-container .fa-instagram:hover {
    color: #C13584; /* Instagram brand color */
}

/* Styles for clickable image/title */
.poster-card .clickable-area {
    cursor: pointer;
    display: block; /* Make the whole area clickable */
    text-decoration: none; /* Remove underline from title link */
    color: inherit; /* Inherit color for title */
}
.poster-card .clickable-area:hover .card-title {
    color: #007bff; /* Highlight title on hover */
}

/* Full-screen image modal adjustments */
#imageModal .modal-dialog {
    margin: 0; /* Remove default margin */
    width: 100vw; /* Full viewport width */
    max-width: 100vw; /* Ensure it takes full width */
    height: 100vh; /* Full viewport height */
    max-height: 100vh; /* Ensure it takes full height */
}

#imageModal .modal-content {
    height: 100%;
    border-radius: 0; /* Remove border-radius for full screen */
    display: flex; /* Use flexbox for modal content */
    flex-direction: column; /* Stack header, body, footer vertically */
}

#imageModal .modal-body {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1; /* Allow body to take available space */
    padding: 0; /* Remove padding to allow image to fill */
    overflow: hidden; /* Hide overflow if image is larger than viewport */
}

#imageModal #modalImage {
    max-width: 100%;
    max-height: 100%;
    width: auto; /* Allow image to scale down */
    height: auto; /* Allow image to scale down */
    object-fit: contain; /* Ensure the image is fully visible within the modal */
}

#imageModal .modal-footer {
    display: flex;
    justify-content: space-between; /* Space out buttons */
    align-items: center;
    padding: 1rem;
}

/* Custom styles for mobile cart link */
.navbar .nav-link.mobile-cart-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 1.1rem;
    color: rgba(0,0,0,.55) !important; /* Match default nav-link color */
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.navbar .nav-link.mobile-cart-link:hover {
    color: #007bff !important; /* Match nav-link hover color */
}

/* Ensure vertical alignment of items within the navbar, important for flexbox */
.navbar-brand,
.navbar-toggler,
.nav-link {
    align-self: center;
}

/* New styles for How to Order modal content */
.how-to-order-step {
    background-color: #f2f7fc; /* Light blue background for steps */
    border-left: 5px solid #007bff; /* Blue left border */
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.how-to-order-step .step-icon {
    font-size: 1.8rem;
    color: #007bff;
    flex-shrink: 0; /* Prevent icon from shrinking */
    padding-top: 0.2rem; /* Adjust icon alignment */
}

.how-to-order-step h6 {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #007bff; /* Blue for step titles */
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.how-to-order-step ul {
    list-style: none; /* Remove default bullet points */
    padding-left: 0; /* Remove default padding */
    margin-bottom: 0;
}

.how-to-order-step ul li {
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.how-to-order-step ul li:last-child {
    margin-bottom: 0;
}

.how-to-order-important {
    background-color: #fff3cd; /* Light yellow background for important section */
    border-left: 5px solid #ffc107; /* Yellow left border */
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.how-to-order-important h6 {
    color: #dc3545; /* Red for important title */
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.how-to-order-important ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.how-to-order-important ul li {
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.how-to-order-important ul li:last-child {
    margin-bottom: 0;
}

.how-to-order-important .fw-bold.text-danger {
    color: #dc3545 !important; /* Ensure red color for bold text */
}

/* What Happens Next section */
.what-happens-next-section {
    background-color: #e9f7ef; /* Light green background */
    border-left: 5px solid #28a745; /* Green left border */
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.what-happens-next-section h6 {
    color: #28a745; /* Green for title */
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.what-happens-next-section ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.what-happens-next-section ul li {
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.what-happens-next-section ul li:last-child {
    margin-bottom: 0;
}

/* Other Inquiries section */
.other-inquiries-section {
    background-color: #e6f7ff; /* Light blue background */
    border-left: 5px solid #17a2b8; /* Teal left border */
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    margin-top: 1.5rem;
}

.other-inquiries-section h6 {
    color: #17a2b8; /* Teal for title */
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.other-inquiries-section ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.other-inquiries-section ul li {
    margin-bottom: 0;
    line-height: 1.4;
}

/* Scroll to Top Button Styles */
#scrollToTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.8); /* Light, slightly transparent */
    color: #007bff; /* Arrow color */
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    z-index: 1000;
    font-size: 1.5rem; /* Size of the arrow icon */
}

#scrollToTopBtn.show {
    opacity: 1;
    visibility: visible;
}

/* Hide button on larger screens (desktop) */
@media (min-width: 992px) {
    #scrollToTopBtn {
        display: none !important;
    }
}
