/* === PERRY'S MART - PUBLIC STYLESHEET (for index.php & shop.php) === */

/* --- Font Imports & Basic Setup --- */
body {
    font-family: 'Inter', sans-serif;
}
h1, h2, h3, .font-playfair {
    font-family: 'Playfair Display', serif;
}

/* --- Homepage Specific Styles --- */
.hero-section {
    background-image: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), url('https://images.pexels.com/photos/1034662/pexels-photo-1034662.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2');
    background-size: cover;
    background-position: center;
}

.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
    transform: translateY(-0.5rem);
}

/* --- Shop Page Specific Styles --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

.product-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}
.product-image-container {
    width: 100%;
    height: 280px;
    background-color: #f8f9fa;
}
.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.product-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.product-title {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    font-weight: 600;
}
.product-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #007bff;
    margin: 0 0 15px 0;
}
.product-price .gst-label {
    font-size: 0.9rem;
    font-weight: 400;
    color: #6c757d;
}
.product-description {
    margin: 0 0 25px 0;
    flex-grow: 1;
}
.product-button {
    display: inline-block;
    background-color: #007bff;
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    transition: background-color 0.3s ease;
    cursor: pointer;
    border: none;
}
.product-button:hover { background-color: #0056b3; }
.no-products {
    grid-column: 1 / -1;
}
.placeholder-image {
    width: 100%;
    height: 100%;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #868e96;
    font-size: 1rem;
    font-weight: 500;
}

/* "SOLD" Banner Styling */
.product-card.product-sold .product-image-container {
    position: relative;
}
.product-card.product-sold .product-image-container::after {
    content: "SOLD";
    position: absolute;
    top: 20px;
    left: -35px;
    background-color: rgba(220, 53, 69, 0.85);
    color: white;
    padding: 7px 40px;
    font-size: 0.9rem;
    font-weight: bold;
    text-align: center;
    transform: rotate(-45deg);
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.product-card.product-sold .product-image {
    opacity: 0.6;
}

/* Lightbox Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0; top: 0;
    width: 100%; height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.85);
    animation: fadeInModal 0.3s;
}
@keyframes fadeInModal {
    from { opacity: 0 }
    to { opacity: 1 }
}

.modal-content {
    margin: auto; display: block;
    max-width: 80%; max-height: 80vh;
    border-radius: 4px;
}
.modal-caption {
    margin: 15px auto; display: block;
    width: 80%; max-width: 700px;
    text-align: center; color: #ccc;
    padding: 10px 0; font-size: 1.1rem;
}
.close-button {
    position: absolute; top: 15px; right: 35px;
    color: #f1f1f1; font-size: 40px; font-weight: bold;
    transition: 0.3s; cursor: pointer;
}
.close-button:hover, .close-button:focus {
    color: #bbb; text-decoration: none;
}

/* --- Inquiry Modal Styling (REVISED) --- */
.inquiry-modal-content {
    background-color: #fff;
    margin: 8% auto; /* Adjusted margin for better vertical centering */
    padding: 30px 40px; /* Increased padding */
    border-radius: 12px;
    width: 90%;
    max-width: 550px; /* Increased max-width for a larger modal */
    position: relative;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}
.inquiry-modal-content h3 {
    margin-top: 0;
    margin-bottom: 25px; /* Increased space */
    font-size: 1.8rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 15px;
}
.inquiry-modal-content .form-group {
    margin-bottom: 20px; /* Increased space between fields */
}
.inquiry-modal-content .form-group label {
    display: block;
    margin-bottom: 0.5rem; /* 8px */
    font-size: 0.875rem; /* 14px */
    font-weight: 500;
    color: #374151; /* gray-700 */
}
.inquiry-modal-content .form-group input[type="text"],
.inquiry-modal-content .form-group input[type="email"],
.inquiry-modal-content .form-group input[type="tel"],
.inquiry-modal-content .form-group textarea {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem; /* py-2 px-3 */
    border: 1px solid #d1d5db; /* gray-300 */
    border-radius: 0.375rem; /* rounded-md */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); /* shadow-sm */
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.inquiry-modal-content .form-group input::placeholder,
.inquiry-modal-content .form-group textarea::placeholder {
    color: #9ca3af; /* gray-400 */
}
.inquiry-modal-content .form-group input:focus,
.inquiry-modal-content .form-group textarea:focus {
    outline: none;
    border-color: #3b82f6; /* blue-500 */
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25); /* focus ring */
}

.inquiry-modal-content .form-group textarea {
    min-height: 120px; /* Increased min-height */
}
.inquiry-modal-content .honeypot {
    display: none;
}
.inquiry-modal-content .inquiry-product-name {
    font-size: 1rem;
    font-weight: 600;
    color: #4a5568;
    background-color: #f7fafc;
    padding: 12px; /* Increased padding */
    border-radius: 8px; /* Increased radius */
    margin-bottom: 20px; /* Increased space */
}
.inquiry-modal-content .modal-message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-weight: 500;
}
.inquiry-modal-content .modal-message.success {
    background-color: #d4edda;
    color: #155724;
}
.inquiry-modal-content .modal-message.error {
    background-color: #f8d7da;
    color: #721c24;
}

