/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700&display=swap');

/* Basic Reset and Global Styles */
body {
    font-family: 'Hind Siliguri', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #343a40;
    line-height: 1.6;
}
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}
a {
    text-decoration: none;
    color: #007bff;
    transition: color 0.2s, background-color 0.2s, border-color 0.2s; /* Added more transitions */
}
a:hover {
    color: #0056b3;
}
img {
    max-width: 100%;
    height: auto;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: #007bff;
    color: white !important; /* Ensure text is white */
    border: none;
    border-radius: 6px; /* Slightly softer corners */
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Subtle shadow */
}
.btn:hover {
    background-color: #0056b3;
    transform: translateY(-1px); /* Lift effect */
    box-shadow: 0 4px 8px rgba(0,0,0,0.15); /* Enhanced shadow */
}
.btn:disabled {
    background-color: #cce5ff;
    color: #6c757d !important;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.btn-outline {
    background-color: transparent;
    color: #007bff !important; /* Ensure text color */
    border: 2px solid #007bff;
    padding: 10px 23px; /* Adjust padding for border */
}
.btn-outline:hover {
    background-color: #007bff;
    color: white !important;
}
.btn-outline:disabled {
    color: #6c757d !important;
    border-color: #ced4da;
    background-color: transparent;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}


.btn-primary {
    background-color: #ffc107;
    color: #333 !important; /* Ensure text color */
    font-weight: bold;
    border: none;
    padding: 12px 25px; /* Consistent padding */
}
.btn-primary:hover {
    background-color: #e0a800;
}
.btn-primary:disabled {
     background-color: #fff3cd;
     color: #856404 !important;
     cursor: not-allowed;
     box-shadow: none;
     transform: none;
}


.btn-danger {
    background-color: #dc3545;
}
.btn-danger:hover {
    background-color: #c82333;
}
.btn.large-btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
}
.btn i {
    margin-right: 8px;
}
.btn.full-width {
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
    box-sizing: border-box; /* Prevent padding issues */
}
.btn.small {
    padding: 6px 12px;
    font-size: 0.85rem;
}
.btn-primary.small { /* Style for small primary button */
     padding: 6px 12px;
     font-size: 0.85rem;
}
.btn-outline.small {
    padding: 6px 14px; /* Adjust for border */
    font-size: 0.85rem;
}


/* --- Top Bar --- */
.top-bar {
    background-color: #f1f1f1;
    padding: 8px 0;
    font-size: 13px;
    color: #555;
    border-bottom: 1px solid #e7e7e7;
}
/* Updated for countdown alignment */
.container.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping */
    gap: 10px; /* Add gap for wrapped items */
}
.top-bar-left {
    display: flex;
    align-items: center;
    gap: 15px; /* Space between left items */
}
.top-bar-countdown {
    color: #0056b3; /* Darker blue color */
    font-size: 0.9rem; /* Slightly smaller font */
    font-weight: 500;
    /* Removed text-align: right */
}
.top-bar-countdown i {
    margin-right: 5px;
    color: #007bff; /* Standard blue icon */
}
#countdown-timer { /* Target the span directly */
    font-weight: 600;
    margin-left: 3px;
    color: #dc3545; /* Red color for timer */
}


/* --- Main Header --- */
.main-header {
    background-color: #fff;
    padding: 15px 0; /* Adjusted padding */
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Vertically align items */
    gap: 20px;
    min-height: 70px; /* Ensure header has enough height */
}

/* --- Logo Styling --- */
.logo {
    flex-shrink: 0; /* Prevent logo from shrinking */
    line-height: 0; /* Remove extra space if link has line height */
}
.logo a {
    display: inline-block;
}
.logo img {
    height: 70px; /* Increased logo height */
    width: auto; /* Maintain aspect ratio */
    display: block; /* Remove extra space below image */
    max-height: 70px; /* Set a max-height as well */
}

/* Ensure Search Bar takes up appropriate space */
.search-bar {
    flex-grow: 1; /* Allow search bar to grow */
    display: flex;
    min-width: 200px; /* Prevent it from becoming too small */
    align-self: center; /* Ensure vertical centering */
}
.search-bar input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 6px 0 0 6px;
    font-size: 1rem;
    font-family: 'Hind Siliguri', sans-serif;
}
.search-bar button {
    border-radius: 0 6px 6px 0;
    padding: 12px 20px;
    font-size: 1rem;
}

/* Ensure Header Right doesn't shrink */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0; /* Prevent buttons from shrinking */
    align-self: center; /* Ensure vertical centering */
}
.btn-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: #333;
    font-weight: 500;
    border-radius: 5px;
    transition: background-color 0.2s;
    text-decoration: none;
     /* Ensure no underline */
}
.btn-nav:hover {
    background-color: #f1f1f1;
}
.cart-btn {
    position: relative;
}
.cart-count {
    position: absolute;
    top: -5px;
    right: -10px;
    background-color: #dc3545;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight: bold;
    border: 1px solid white; /* Add subtle border */
}

/* --- Navigation Menu --- */
.main-nav {
    background-color: #007bff;
    color: white;
}
.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: center;
}
.main-nav ul li a {
    display: flex; /* Align icon and text */
    align-items: center;
    gap: 8px;
    padding: 15px 25px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.3s, box-shadow 0.3s, border-bottom 0.3s, padding-bottom 0.3s; /* Added transitions */
    text-decoration: none;
    border-bottom: 3px solid transparent; /* Placeholder for active border */
    padding-bottom: 12px; /* Adjust padding for border */
}
.main-nav ul li a i {
    font-size: 1.1em; /* Make icon slightly larger */
}
.main-nav ul li a:hover {
    background-color: #0056b3;
}
/* --- Active Navigation Link Style --- */
.main-nav ul li a.active-nav {
    background-color: #0056b3; /* Darker blue for active link */
    border-bottom: 3px solid #ffc107; /* Yellow bottom border */
    color: #fff;
}
/* Style for active icon in header right (e.g., Cart, Dashboard) */
.header-right a.active-nav-icon {
     background-color: #e9ecef; /* Light grey background */
     border-radius: 5px;
}


/* --- General Page/Section Styles --- */
.page-container {
    padding: 60px 0;
}
.page-header {
    text-align: center;
    margin-bottom: 40px;
}
.page-header h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    display: flex; /* Align icon and title */
    align-items: center;
    justify-content: center;
    gap: 15px;
}
.page-header p {
    font-size: 1.1rem;
    color: #6c757d;
}

/* --- New Homepage Slider Styles --- */
.slider-container {
    position: relative;
    max-width: 100%;
    margin: auto;
    overflow: hidden;
    background-color: #eee; /* Background while images load */
}
.slide {
    display: none; /* Hidden by default */
    position: relative; /* Needed for slide content positioning */
}
.slide img {
    width: 100%;
    height: 500px; /* Consistent slider height */
    object-fit: cover; /* Cover the area */
    vertical-align: middle;
}
.slide-content {
    position: absolute;
    bottom: 15%; /* Adjust vertical position */
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.6); /* Slightly darker overlay */
    padding: 25px 45px;
    border-radius: 8px;
    max-width: 80%; /* Limit width on large screens */
}
.slide-content h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}
.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 25px;
}
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -25px; /* Adjust vertical center */
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 28px; /* Slightly larger arrows */
    transition: 0.6s ease;
    border-radius: 0 5px 5px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.4);
}
.next {
    right: 0;
    border-radius: 5px 0 0 5px;
}
.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}
.dots-container {
    text-align: center;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.6); /* Darker dots background */
    position: absolute; /* Position over the slider */
    bottom: 0;
    width: 100%;
    box-sizing: border-box;
}
.dot {
    cursor: pointer;
    height: 12px; /* Smaller dots */
    width: 12px;
    margin: 0 5px;
    background-color: #999; /* Inactive dot color */
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}
.active, .dot:hover {
    background-color: #fff; /* Active dot color */
}
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}
@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}

/* --- Homepage Main Features Section --- */
.features-wrapper {
    background-color: #fff;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    padding: 60px 0; /* Increased padding */
}
.section-header {
    text-align: center;
    margin-bottom: 50px; /* Increased margin */
}
.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}
.section-header p {
    font-size: 1.1rem;
    color: #6c757d;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.feature-card {
    text-align: center;
    padding: 30px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background-color: #fff; /* White background */
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); /* Base shadow */
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.feature-card .service-icon { /* Specific selector */
    font-size: 3rem; /* Larger icon */
    color: #007bff;
    margin-bottom: 25px;
}
.feature-card h3 {
    font-size: 1.4rem; /* Larger title */
    margin-bottom: 15px;
}
.feature-card p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 25px;
}

/* --- New Arrivals Section (Simple Product Card) --- */
.new-arrivals {
    padding: 60px 0;
}
.product-grid-simple {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px; /* Increased gap */
}
.product-card-simple {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s;
}
.product-card-simple:hover {
     box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.product-card-link {
    text-decoration: none;
    color: inherit;
    flex-grow: 1; /* Make link take space */
    display: flex; /* Allow inner flex */
    flex-direction: column;
}
.product-image-simple {
    width: 100%;
    height: 200px; /* Increased height */
    overflow: hidden;
    position: relative; /* Needed for availability badge */
    display: flex; /* Center image */
    justify-content: center;
    align-items: center;
    background-color: #f0f0f0; /* Light background */
}
.product-image-simple img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* *** FIX: Changed from cover to contain *** */
    transition: transform 0.4s ease; /* Smoother zoom */
}
.product-card-simple:hover .product-image-simple img {
    transform: scale(1.08); /* Slightly more zoom */
}
.product-info-simple {
    padding: 20px;
    text-align: center;
    flex-grow: 1; /* Take remaining space */
}
.product-info-simple h3 {
    font-size: 1.2rem; /* Larger name */
    margin: 0 0 10px 0;
}
.product-price-simple {
    font-size: 1.3rem; /* Larger price */
    font-weight: 700;
    color: #007bff;
}
.product-action-simple {
    padding: 0 20px 20px 20px; /* Adjust padding */
}
.btn.small-btn { /* Style for 'Details' button */
    padding: 10px 12px;
    font-size: 0.9rem;
    width: 100%;
}


/* --- Form Container (Register, Login, Add Product etc.) --- */
.form-container {
    max-width: 600px; /* Slightly wider */
    margin: 60px auto;
    padding: 40px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.form-container h2 {
    text-align: center;
    color: #007bff;
    margin-bottom: 30px;
    font-size: 1.8rem;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95rem;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px; /* Adjust padding */
    border: 1px solid #ced4da; /* Slightly darker border */
    border-radius: 6px; /* Match button radius */
    box-sizing: border-box;
    font-size: 1rem;
    font-family: 'Hind Siliguri', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}
.form-group small {
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
    color: #6c757d;
}
.form-message {
    text-align: center;
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-weight: 500;
}
.form-message.success {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}
.form-message.error {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}
.form-footer {
    text-align: center;
    margin-top: 25px;
}

/* --- Service Booking Form Grid --- */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px; /* Increased gap */
}

/* --- Dashboard Styles --- */
.dashboard-header {
    text-align: center;
    margin-bottom: 50px; /* Increased margin */
}
.dashboard-header h1 {
    font-size: 2.5rem;
}
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.dashboard-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    border-left: 5px solid #007bff; /* Default blue for customer */
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s;
}
.dashboard-card:hover {
     box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.dashboard-card h3 {
    margin-top: 0;
    font-size: 1.5rem;
    display: flex; /* Aligns icon and text */
    align-items: center;
    gap: 10px; /* Space between icon and text */
}
.dashboard-card h3 i {
    color: inherit; /* Inherit border color */
}
.dashboard-card p {
    flex-grow: 1; /* Makes description take available space */
    color: #555;
    margin-bottom: 25px; /* Increased margin */
    font-size: 0.95rem;
}
.dashboard-card a.btn-outline {
    margin-bottom: 5px; /* Spacing between buttons if multiple */
    text-align: center; /* Center text in button */
}
/* Specific color for Admin/Provider cards */
.dashboard-card.provider-card {
    border-left-color: #28a745; /* Green for admin/provider */
}
/* Badge styles */
.dashboard-card.card-with-badge {
    position: relative; /* Needed for badge positioning */
}
.dashboard-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #dc3545; /* Red badge */
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 700;
}
/* --- Dashboard Notification Dot --- */
.dashboard-card.card-with-notification {
    position: relative; /* Needed for dot positioning */
}
.notification-dot {
    position: absolute;
    top: 20px; /* Adjust position as needed */
    right: 20px;
    width: 12px;
    height: 12px;
    background-color: #dc3545; /* Red dot */
    border-radius: 50%;
    border: 2px solid white; /* Optional white border */
    box-shadow: 0 0 5px rgba(220, 53, 69, 0.7); /* Optional subtle glow */
}
/* --- Upcoming Booking & Countdown Section --- */
.upcoming-booking-section {
    background-color: #e3f2fd; /* Light blue background */
    border: 1px solid #bbdefb; /* Lighter blue border */
    border-left: 5px solid #007bff; /* Blue accent border */
    border-radius: 8px;
    padding: 25px 30px; /* Adjust padding */
    margin-bottom: 40px; /* Space below the section */
}
.upcoming-booking-section h3 {
    margin-top: 0;
    margin-bottom: 15px; /* Add space below heading */
    font-size: 1.6rem;
    color: #0056b3; /* Darker blue */
    display: flex;
    align-items: center;
    gap: 10px;
}
.booking-details p {
    margin: 8px 0;
    font-size: 1rem;
    color: #333;
}
/* Style countdown timer container inside the booking section */
.upcoming-booking-section #countdown-timer {
    margin-top: 20px;
    text-align: center;
}
.upcoming-booking-section #countdown-timer p {
    font-size: 1rem;
    color: #0056b3;
    font-weight: 500;
    margin-bottom: 10px;
}
.upcoming-booking-section .timer-elements {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 1.8rem; /* Larger timer numbers */
    font-weight: 600;
    color: #004085; /* Even darker blue */
}
.upcoming-booking-section .timer-elements span { /* Style individual number spans */
    display: inline-block;
    min-width: 50px; /* Ensure elements have some width */
    background-color: rgba(255, 255, 255, 0.6); /* Semi-transparent background */
    padding: 5px 10px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1); /* Subtle shadow */
}
/* --- Dashboard Chart Styles --- */
.chart-container-wrapper {
    margin-bottom: 40px; /* Space below charts */
    display: grid;
    grid-template-columns: 1fr; /* Default to one column */
    gap: 30px;
}
.chart-container {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    height: 400px; /* Fixed height for the chart canvas */
    border: 1px solid #e9ecef;
}
.chart-container h3 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.3rem;
    color: #495057;
}
/* --- Dashboard Overview Cards --- */
.dashboard-card.overview-card {
    border-left-color: #17a2b8; /* Teal color for overview */
    text-align: center;
}
.dashboard-card.overview-card h3 {
    font-size: 1.1rem; /* Smaller title */
    color: #6c757d; /* Gray title */
    justify-content: center; /* Center icon and text */
    margin-bottom: 10px;
}
.dashboard-card.overview-card h3 i {
    color: #17a2b8; /* Match border color */
    margin-right: 8px;
}
.overview-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #343a40;
    margin: 0;
}


/* --- Store Page Styles --- */
.product-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.product-card-full {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}
.product-card-full:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.product-image {
    width: 100%;
    height: 220px; /* Slightly taller image */
    overflow: hidden;
    display: flex; /* Center image */
    justify-content: center;
    align-items: center;
    background-color: #f0f0f0; /* Light background */
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* *** FIX: Changed from cover to contain *** */
    transition: transform 0.4s ease;
}
.product-card-full:hover .product-image img {
    transform: scale(1.08);
}
.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.product-info h3 {
    font-size: 1.25rem; /* Slightly larger name */
    margin-top: 0;
    margin-bottom: 10px;
    color: #343a40;
}
.product-description {
    font-size: 0.9rem;
    color: #6c757d;
    flex-grow: 1;
    margin-bottom: 15px;
    /* Limit description lines */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Show only 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: calc(1.6em * 2); /* Reserve space for 2 lines */
}
.product-price {
    font-size: 1.6rem; /* Slightly larger price */
    font-weight: 700;
    color: #007bff;
    margin-bottom: 20px;
}
.no-products-message {
    grid-column: 1 / -1; /* Span across all columns */
    text-align: center;
    font-size: 1.2rem;
    padding: 50px;
    background-color: #fff;
    border-radius: 8px;
}
/* --- Button styles in Product Actions (Store Page - New Layout) --- */
.product-actions {
    display: flex;
    flex-direction: column; /* Buttons stack vertically */
    gap: 8px; /* Space between button rows */
    margin-top: auto; /* Push buttons to the bottom */
}
.product-actions-top {
    display: flex;
    gap: 8px; /* Space between top two buttons */
}
.product-actions-top form {
    flex: 1; /* Top buttons share space equally */
    margin: 0;
}
.product-actions form .btn,
.product-actions form .btn-outline,
.product-actions a.btn { /* Target forms and anchor tags */
    width: 100%;
    box-sizing: border-box;
    padding: 10px 5px;
    font-size: 0.85rem; /* Slightly smaller font */
    text-align: center;
}
.product-actions .btn-full-width { /* Style for the bottom 'Details' button */
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    font-size: 0.9rem;
    padding: 10px 5px;
}
/* Primary button style (Yellow - Details button) */
.product-actions .btn-primary {
    background-color: #ffc107;
    color: #333 !important;
    border: none;
}
.product-actions .btn-primary:hover {
    background-color: #e0a800;
}
/* Ensure default blue for Add to Cart */
.product-actions-top form button.btn:not(.btn-primary) {
    background-color: #007bff;
    color: white !important;
}
.product-actions-top form button.btn:not(.btn-primary):hover {
     background-color: #0056b3;
}
/* Ensure yellow for Buy Now */
.product-actions-top form button.btn-primary {
     background-color: #ffc107;
     color: #333 !important;
}
 .product-actions-top form button.btn-primary:hover {
      background-color: #e0a800;
 }


/* --- Product Details Page Styles --- */
.product-details-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
}
.details-image-container img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #eee;
}
.product-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 15px;
    color: #343a40;
}
.details-price {
    font-size: 2rem;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 25px;
}
.section-title {
    font-size: 1.3rem; /* Slightly larger */
    font-weight: 600;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    margin-top: 25px;
    margin-bottom: 15px;
}
.product-full-description {
    line-height: 1.8;
    color: #555;
}
/* --- Pet Details Meta Info --- */
.pet-meta-box {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 15px 20px; /* Adjust padding */
    margin-bottom: 25px; /* Add space below */
}
ul.pet-meta-list {
    list-style: none; /* Remove default bullets */
    padding: 0;
    margin: 0;
    font-size: 1rem;
    color: #555;
}
ul.pet-meta-list li {
    padding: 5px 0; /* Add vertical spacing between items */
    display: flex; /* Align label and value */
    gap: 8px; /* Space between label and value */
}
ul.pet-meta-list li strong {
    color: #343a40;
    min-width: 60px; /* Give labels a minimum width */
    font-weight: 600;
}

/* --- Product Details Page - Final 3 Button Layout --- */
.details-actions.three-buttons {
    display: flex;
    flex-direction: column; /* Stack rows vertically */
    gap: 12px; /* Increased gap */
    margin-top: 30px;
    margin-bottom: 25px;
}
.details-actions.three-buttons .action-row {
    display: flex; /* Make buttons side-by-side within a row */
    gap: 12px; /* Increased gap */
}
.details-actions.three-buttons .action-row.single-button {
    /* Style for the row containing only the Contact button */
    justify-content: center; /* Center the single button if needed */
}
.details-actions.three-buttons .action-row .action-form,
.details-actions.three-buttons .action-row a.btn {
    flex: 1; /* Make buttons share space equally in a row */
    margin: 0;
}
.details-actions.three-buttons .btn-full-width {
    width: 100%;
    box-sizing: border-box;
    padding: 14px; /* Increased padding */
    font-size: 1rem; /* Slightly larger font */
    border-radius: 6px; /* Softer corners */
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease; /* Added transition */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Subtle base shadow */
}
.details-actions.three-buttons .btn-full-width:hover {
    transform: translateY(-2px); /* Lift effect */
    box-shadow: 0 4px 10px rgba(0,0,0,0.15); /* Enhanced shadow on hover */
}
/* Ensure primary button (Buy Now / Contact) styles are applied */
.details-actions.three-buttons .btn-primary {
    background-color: #ffc107;
    color: #333 !important;
    border: none;
}
.details-actions.three-buttons .btn-primary:hover {
    background-color: #e0a800;
}
/* Ensure outline button (Add to Cart) styles are applied */
.details-actions.three-buttons .btn-outline {
    background-color: transparent;
    color: #007bff !important;
    border: 2px solid #007bff;
}
.details-actions.three-buttons .btn-outline:hover {
    background-color: #007bff;
    color: white !important;
}
/* Ensure default blue for Contact button if not primary */
.details-actions.three-buttons .action-row.single-button a.btn:not(.btn-primary) {
     background-color: #007bff;
     color: white !important;
     border: none;
}
.details-actions.three-buttons .action-row.single-button a.btn:not(.btn-primary):hover {
     background-color: #0056b3;
}



/* --- Cart Page Styles --- */
.cart-container {
    background-color: #fff;
    padding: 30px 40px; /* More padding */
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
}
.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px; /* Increased margin */
}
.cart-table th, .cart-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}
.cart-table th {
    font-weight: 600;
    color: #343a40;
    background-color: #f8f9fa; /* Header background */
}
.cart-product-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
}
.cart-product-name {
    font-weight: 600;
}
.quantity-input {
    width: 70px;
    padding: 8px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 5px;
}
.remove-btn {
    color: #dc3545;
    font-size: 1.2rem; /* Slightly smaller */
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s;
}
.remove-btn:hover {
    color: #a71d2a;
}
.cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Align items */
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px; /* Increased gap */
}
.cart-summary {
    width: 100%; /* Full width on smaller screens */
    max-width: 400px; /* Max width */
    margin-left: auto;
    background-color: #f8f9fa;
    padding: 25px; /* Increased padding */
    border-radius: 8px;
    border: 1px solid #e9ecef;
}
.cart-summary h2 {
    margin-top: 0;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.5rem;
}
.cart-summary p {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem; /* Slightly smaller */
    margin-bottom: 10px;
}
.cart-summary p.total { /* Style for total row */
    font-size: 1.3rem;
    font-weight: 700;
    border-top: 2px solid #ddd;
    padding-top: 15px;
    margin-top: 15px;
}
.cart-summary .btn {
    width: 100%; /* Full width checkout button */
    margin-top: 20px;
    padding: 14px;
    font-size: 1.1rem;
}

/* --- Checkout Page Styles --- */
.checkout-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr; /* Adjust column ratio */
    gap: 40px; /* Increased gap */
}
.checkout-form, .order-summary-box { /* Added wrapper for summary */
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
}
.checkout-form h3, .order-summary-box h3 {
    font-size: 1.6rem; /* Larger heading */
    margin-top: 0;
    margin-bottom: 25px; /* Increased margin */
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}
.order-summary-box {
    height: fit-content; /* Adjust height based on content */
}
.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 1rem; /* Slightly larger text */
}
.item-name {
    color: #343a40;
    font-weight: 500;
}
.item-price {
    font-weight: 600;
}
.summary-total {
    display: flex;
    justify-content: space-between;
    margin-top: 25px; /* Increased margin */
    padding-top: 15px;
    border-top: 2px solid #ddd;
    font-size: 1.4rem; /* Larger total */
    font-weight: 700;
}

/* --- Order Success Page Styles --- */
.success-container {
    text-align: center;
    background-color: #fff;
    padding: 60px 40px; /* More padding */
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
}
.success-icon i {
    font-size: 6rem; /* Larger icon */
    color: #28a745; /* Green color for success icon */
    margin-bottom: 25px; /* Increased margin */
}
.success-container h1 {
    font-size: 2.5rem; /* Larger title */
    color: #28a745;
    margin-bottom: 15px;
}
.success-container p {
    font-size: 1.1rem;
    color: #555;
    max-width: 600px;
    margin: 15px auto 25px; /* Adjust margins */
}
.success-actions {
    margin-top: 35px; /* Increased margin */
    display: flex;
    justify-content: center;
    gap: 20px; /* Increased gap */
}

/* --- My Orders & My Bookings Page Styles --- */
.order-history-container {
    display: flex;
    flex-direction: column;
    gap: 30px; /* Increased gap */
}
.order-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    border: 1px solid #e9ecef;
    /* Removed margin-bottom here, using gap from container */
}
.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px; /* Adjust padding */
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    border-radius: 8px 8px 0 0;
}
.order-id {
    font-weight: 600;
    color: #343a40;
    margin-right: 20px;
}
.order-date {
    font-size: 0.9rem;
    color: #6c757d;
}
.order-status {
    font-weight: 600;
    padding: 6px 14px; /* Adjust padding */
    border-radius: 15px;
    font-size: 0.8rem;
    text-transform: uppercase;
    display: inline-block; /* Ensure padding is applied correctly */
}
/* Status Colors */
.order-status.pending {
    background-color: #fff3cd;
    color: #856404;
}
.order-status.confirmed,
.order-status.processing, /* Grouped processing/shipped with confirmed */
.order-status.shipped {
    background-color: #cce5ff;
    color: #004085;
}
.order-status.completed,
.order-status.delivered {
    background-color: #d4edda;
    color: #155724;
}
.order-status.cancelled {
    background-color: #f8d7da;
    color: #721c24;
}
.order-card-body {
    padding: 25px; /* Adjust padding */
}
.order-card-body h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.3rem; /* Slightly larger */
}
.order-item-list {
    list-style: none;
    padding-left: 0;
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0; /* Remove bottom margin */
}
.order-item-list li {
    padding: 10px 0; /* Increased padding */
    border-bottom: 1px dashed #eee;
}
.order-item-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.order-item-list li strong {
    color: #343a40;
    min-width: 120px; /* Align labels */
    display: inline-block;
}
.order-card-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 15px 25px; /* Adjust padding */
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 8px 8px;
    font-size: 1.2rem;
    font-weight: 700;
}
.total-amount {
    color: #007bff;
    margin-left: 10px;
}

/* --- Admin Panel Tables --- */
.admin-table-container {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    overflow-x: auto; /* Enable horizontal scrolling if needed */
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
}
.admin-table th, .admin-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
    vertical-align: middle;
    white-space: nowrap; /* Prevent text wrapping */
}
.admin-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}
.admin-table img.admin-table-image { /* Specific selector */
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    border: 1px solid #eee;
}
/* Action Buttons in Admin Tables */
.btn-action {
    padding: 6px 12px; /* Adjusted padding */
    border-radius: 4px;
    color: #fff !important;
    font-size: 0.85rem; /* Adjusted font size */
    font-weight: 500;
    margin-right: 5px;
    text-decoration: none; /* Ensure links look like buttons */
    display: inline-block; /* Proper alignment */
    transition: opacity 0.2s; /* Hover effect */
}
.btn-action:hover {
    opacity: 0.85;
}
.btn-action.edit {
    background-color: #ffc107; /* Yellow */
    color: #333 !important;
}
.btn-action.delete {
    background-color: #dc3545; /* Red */
    border: none; /* Ensure button looks right */
    cursor: pointer; /* Indicate it's clickable */
}
/* Status Update Form in Admin Table */
.status-update-form {
    display: flex;
    align-items: center;
    gap: 5px; /* Space between select and button */
}
.status-update-form select {
    padding: 6px 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 0.85rem; /* Match button size */
}
.status-update-form button {
    font-size: 0.8rem !important; /* Force smaller font size */
    padding: 6px 10px !important; /* Force smaller padding */
}


/* --- Adoption & Sales Page (Pet Card) Styles --- */
.pet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}
.pet-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}
.pet-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.pet-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
    display: flex; /* Center image */
    justify-content: center;
    align-items: center;
    background-color: #f0f0f0; /* Light background */
}
.pet-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* *** FIX: Changed from cover to contain *** */
    transition: transform 0.4s ease;
}
.pet-card:hover .pet-image img {
    transform: scale(1.08);
}
.pet-price-tag, .pet-adoption-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
}
.pet-price-tag {
    background-color: #007bff;
    color: white;
}
.pet-adoption-tag {
    background-color: #28a745;
    color: white;
}
.pet-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.pet-info h3 {
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 10px;
}
.pet-meta {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 15px;
}
.pet-description {
    font-size: 0.95rem;
    color: #555;
    flex-grow: 1;
    margin-bottom: 20px;
    line-height: 1.6;
     /* Limit description lines */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Show only 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: calc(1.6em * 2); /* Reserve space */
}
.pet-listing-type {
    font-size: 0.9rem;
    color: #343a40;
    margin-bottom: 15px;
}

/* --- Adoption Page - Final 4 Button Layout within Card --- */
.pet-actions.four-buttons.card-buttons {
    display: flex;
    flex-direction: column; /* Stack rows vertically */
    gap: 8px; /* Space between rows */
    margin-top: auto; /* Push buttons to bottom */
}
.pet-actions.four-buttons.card-buttons .action-row {
    display: flex; /* Make buttons side-by-side within a row */
    gap: 8px; /* Space between buttons in a row */
}
.pet-actions.four-buttons.card-buttons .action-row .action-form,
.pet-actions.four-buttons.card-buttons .action-row a.btn {
    flex: 1; /* Make buttons share space equally in a row */
    margin: 0;
}
/* Style for small full-width buttons in cards */
.pet-actions.four-buttons.card-buttons .btn-full-width.small {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 5px; /* Slightly increased padding */
    font-size: 0.85rem; /* Increased font size slightly */
    text-align: center;
    border-radius: 6px; /* Softer corners */
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease; /* Added transition */
    box-shadow: 0 1px 3px rgba(0,0,0,0.1); /* Subtle base shadow */
}
.pet-actions.four-buttons.card-buttons .btn-full-width.small:hover {
    transform: translateY(-1px); /* Subtle lift */
    box-shadow: 0 3px 6px rgba(0,0,0,0.15); /* Enhanced shadow */
}
.pet-actions.four-buttons.card-buttons .btn i {
    margin-right: 4px;
}
/* Ensure colors apply correctly */
.pet-actions.four-buttons.card-buttons .btn-primary {
    background-color: #ffc107;
    color: #333 !important;
    border: none;
}
.pet-actions.four-buttons.card-buttons .btn-primary:hover {
    background-color: #e0a800;
}
.pet-actions.four-buttons.card-buttons .btn-outline {
    background-color: transparent;
    color: #007bff !important;
    border: 2px solid #007bff;
}
.pet-actions.four-buttons.card-buttons .btn-outline:hover {
    background-color: #007bff;
    color: white !important;
}
/* Default blue button */
.pet-actions.four-buttons.card-buttons a.btn:not(.btn-outline):not(.btn-primary) {
     background-color: #007bff;
     color: white !important;
     border: none;
}
 .pet-actions.four-buttons.card-buttons a.btn:not(.btn-outline):not(.btn-primary):hover {
      background-color: #0056b3;
 }


/* --- Contact Page Styles --- */
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr; /* Adjust ratio */
    gap: 40px; /* Increased gap */
    background-color: #fff;
    padding: 40px; /* Increased padding */
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
}
.contact-info-container h3 {
    font-size: 1.6rem; /* Larger heading */
    margin-top: 0;
    margin-bottom: 25px; /* Increased margin */
}
.contact-info-container p {
    font-size: 1rem;
    color: #343a40;
    margin-bottom: 18px; /* Increased margin */
    display: flex;
    align-items: center;
}
.contact-info-container p i {
    color: #007bff;
    margin-right: 15px;
    width: 25px; /* Slightly larger icon area */
    text-align: center;
    font-size: 1.2em; /* Slightly larger icon */
}
.map-container {
    margin-top: 25px; /* Increased margin */
    border-radius: 8px;
    overflow: hidden;
    height: 350px; /* Taller map */
    border: 1px solid #eee;
}
.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- Admin Messages Styles --- */
/* (Uses .order-card styles) */
.order-card.unread-message {
    border-left: 5px solid #007bff;
    background-color: #f8f9fa; /* Slightly highlighted background for unread */
}

/* --- Reply Page Design Update --- */
.reply-container-grid {
    display: grid;
    grid-template-columns: 1fr; /* Default to one column */
    gap: 30px;
}

/* Common Card Styling */
.original-message-card,
.reply-form-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    border: 1px solid #e9ecef;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px; /* Adjust padding */
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    border-radius: 8px 8px 0 0;
}
.card-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.card-body {
    padding: 25px; /* Adjust padding */
}
.card-body p {
    margin-top: 0;
    margin-bottom: 12px; /* Adjust margin */
    font-size: 0.95rem;
    color: #343a40;
}
.card-body hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 20px 0; /* Adjust margin */
}
.message-body-simple {
    line-height: 1.7;
    color: #555;
    background-color: #fdfdfd;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 5px;
    white-space: pre-wrap; /* Preserve line breaks */
    max-height: 300px; /* Add max height */
    overflow-y: auto; /* Add scroll if needed */
}

/* --- Reply Page Wrapper Box Design --- */
.reply-wrapper-box {
    background-color: #ffffff; /* White background for the box */
    padding: 40px; /* Increased padding */
    border-radius: 12px; /* Rounded corners */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1); /* Soft shadow */
    border: 1px solid #e9ecef;
}

/* Remove individual card elements inside the wrapper, use direct styling */
.reply-wrapper-box .original-message-card,
.reply-wrapper-box .reply-form-card {
    border: none;
    box-shadow: none;
    background-color: transparent;
    padding: 0;
}

.reply-wrapper-box .reply-container-grid {
    gap: 30px; /* Ensure gap between columns */
}

/* Style headers inside the wrapper */
.reply-wrapper-box h3 {
     margin-top: 0;
    font-size: 1.5rem; /* Larger headers */
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

/* Ensure reply form elements have spacing */
.reply-wrapper-box .reply-form-card .form-group {
    margin-bottom: 20px;
}

/* --- New Professional Footer --- */
.main-footer {
    background-color: #212529; /* Dark Background */
    color: #adb5bd; /* Light Gray Text */
    padding: 60px 0 20px;
    margin-top: 60px;
}
.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Responsive columns */
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col .footer-logo { /* Target logo specifically */
    font-size: 1.8rem;
    color: #fff;
    margin-top: 0;
    margin-bottom: 15px;
    display: inline-block; /* Prevent full width */
}
.footer-col p { /* General text in footer */
    font-size: 0.95rem;
    line-height: 1.7;
}
.footer-title {
    font-size: 1.1rem;
    color: #fff;
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 600;
}
.footer-col.links ul {
    list-style: none;
    padding: 0;
}
.footer-col.links li {
    margin-bottom: 10px;
}
.footer-col.links a {
    color: #adb5bd;
    transition: color 0.3s;
}
.footer-col.links a:hover {
    color: #fff;
}
.newsletter-form {
    display: flex;
    margin-top: 10px;
}
.newsletter-form input {
    flex-grow: 1;
    padding: 12px;
    border: 1px solid #495057;
    background-color: #343a40;
    color: #fff;
    border-radius: 5px 0 0 5px;
    font-family: inherit;
}
.newsletter-form button {
    border-radius: 0 5px 5px 0;
}
.footer-bottom {
    border-top: 1px solid #495057;
    padding-top: 25px; /* Increased padding */
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping */
    gap: 15px; /* Add gap for wrapped items */
}
.copyright {
    font-size: 0.9rem;
}
.social-links a {
    color: #adb5bd;
    font-size: 1.3rem; /* Larger icons */
    margin-left: 18px; /* Increased spacing */
    transition: color 0.3s;
}
.social-links a:hover {
    color: #fff;
}


/* --- Login/Register Page Styles --- */
.login-body {
    background-color: #f0f4f8;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}
.login-wrapper {
    display: flex;
    max-width: 900px;
    width: 100%;
    margin: auto;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}
.login-image-side {
    width: 45%;
    display: none;
}
.login-image-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.login-form-side {
    width: 100%;
    padding: 40px 50px; /* Adjust padding */
}
.login-logo-header {
    text-align: center;
    margin-bottom: 25px; /* Increased margin */
}
.login-logo-header a {
    font-size: 2.2rem; /* Larger logo */
    font-weight: 700;
    color: #007bff;
    text-decoration: none;
}
.login-form-side h2 {
    margin-top: 0;
    text-align: center;
    margin-bottom: 10px;
    font-size: 1.8rem;
}
.login-form-side p.tagline { /* Style the tagline */
    color: #555;
    margin-bottom: 30px; /* Increased margin */
    text-align: center;
    font-size: 1rem;
}

/* --- Availability Badge Styles --- */
.product-image-simple .availability-badge,
.pet-image .availability-badge { /* Apply to both locations */
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.2);
    z-index: 5; /* Ensure badge is above image */
}
.availability-badge.status-in-stock {
    background-color: rgba(40, 167, 69, 0.85); /* Green */
}
.availability-badge.status-out-of-stock {
    background-color: rgba(220, 53, 69, 0.85); /* Red */
}
/* Style card if out of stock */
.product-card-simple.status-out-of-stock,
.pet-card.status-out-of-stock {
    opacity: 0.7;
}
.product-card-simple.status-out-of-stock .btn-primary,
.pet-card.status-out-of-stock .btn,
.pet-card.status-out-of-stock .btn-outline,
.pet-card.status-out-of-stock .btn-primary {
     background-color: #6c757d;
     border-color: #6c757d;
     color: white !important;
     cursor: default;
     pointer-events: none; /* Make buttons unclickable */
     opacity: 0.65;
     transform: none;
     box-shadow: none;
}
/* Style details page button if unavailable */
.details-actions button:disabled,
.details-actions a.btn[style*="cursor: not-allowed"] {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: white !important;
    cursor: not-allowed !important;
    opacity: 0.65;
    transform: none;
    box-shadow: none;
}
/* Ensure the Contact button text color is white when disabled */
.details-actions a.btn.btn-danger[style*="cursor: not-allowed"] {
     color: white !important;
}

/* --- Adoption Form Conditional Styling --- */
#adoption_options h4 {
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    font-size: 1.1rem;
}

#adoption_options label {
    font-weight: normal; /* Make radio labels normal weight */
}

#adoption_options input[type="radio"] {
    margin-right: 5px;
}


/* --- Responsive Design --- */
/* Make two columns on larger screens for login/register */
@media (min-width: 768px) {
    .login-image-side {
        display: block; /* Show image */
    }
    .login-form-side {
        width: 55%; /* Form side takes remaining space */
    }
}
/* Make two columns on larger screens for Reply Page */
@media (min-width: 992px) {
    .reply-wrapper-box .reply-container-grid {
        grid-template-columns: 1fr 1fr; /* Two equal columns */
    }
     /* Allow multiple charts side-by-side on larger screens */
    .chart-container-wrapper {
        grid-template-columns: 1fr 1fr; /* Example for two columns */
        /* Adjust based on how many charts you have */
    }

}

@media (max-width: 992px) {
    .main-header .container {
        flex-wrap: wrap; /* Allow wrapping */
        justify-content: center;
    }
     .logo {
        width: 100%;
        text-align: center;
        margin-bottom: 15px;
    }
    .search-bar {
        order: 3; /* Move below buttons */
        width: 100%;
        margin: 15px 0 0 0;
    }
    .header-right {
         order: 2; /* Below logo */
         width: 100%;
         justify-content: center;
    }
    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }
    .product-details-grid {
        grid-template-columns: 1fr;
    }
    .cart-summary {
        width: 100%;
        max-width: 100%; /* Override max-width */
        margin-left: 0;
        margin-top: 20px;
    }
    .checkout-grid {
        grid-template-columns: 1fr;
    }
    .order-summary-box { /* Apply to summary box */
        margin-top: 30px;
    }
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .slide img { height: 400px; } /* Shorter slider on mobile */
    .slide-content h1 { font-size: 2rem; }
    .product-grid-full, .pet-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    .cart-table { /* Allow horizontal scroll for cart table */
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    .cart-table th, .cart-table td {
        white-space: normal; /* Allow text wrapping within cells */
    }
    .category-grid {
        grid-template-columns: 1fr;
    }
    .footer-top {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }
     .top-bar-content {
        justify-content: center; /* Center items on small screens */
        text-align: center;
    }
    .top-bar-countdown {
        width: 100%; /* Take full width */
        margin-top: 5px;
    }
}
@media (max-width: 576px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    .page-header h1 { font-size: 2.2rem; }
    .slide img { height: 300px; } /* Even shorter slider */
    .slide-content { padding: 15px 25px; }
    .slide-content h1 { font-size: 1.8rem; }
    .slide-content p { font-size: 1rem; }
    /* Hide some less critical columns in admin tables on small screens */
    .admin-table th:nth-child(5), /* Hide 5th column (Date/Address etc.) */
    .admin-table td:nth-child(5),
    .admin-table th:nth-child(6), /* Hide 6th column */
    .admin-table td:nth-child(6),
    .admin-table th:nth-child(7), /* Hide 7th */
    .admin-table td:nth-child(7) {
        display: none;
    }
    /* Adjust Pet Management Table specifically */
    .admin-table th.col-pet-type, /* Hide Pet Type column */
    .admin-table td.col-pet-type,
    .admin-table th.col-adoption-details, /* Hide Adoption Details */
    .admin-table td.col-adoption-details {
        display: none;
    }
    /* Ensure action buttons are always visible */
    .admin-table td:last-child {
        white-space: normal; /* Allow action buttons to wrap if needed */
    }

}

