/* Custom styles for the Pillow Space page */
.pillow-space-main {
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.pillow-space-main .page-title {
    font-family: 'Lora', serif;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.pillow-space-main .page-intro {
    font-size: 1.15rem;
    color: #555;
    margin-bottom: 2.5rem;
}

/* Product Card Styling */
.card.product-card {
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Ensure cards in a row are same height if content varies */
}

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

.card.product-card .card-img-top {
    height: 220px; /* Adjusted height for better visual */
    object-fit: cover;
    border-bottom: 1px solid #e9ecef;
}

.card.product-card .card-body {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
}

.card.product-card .card-title {
    font-family: 'Lora', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #3c3c3c;
}

.card.product-card .card-text.product-description {
    font-size: 0.9rem;
    color: #666;
    flex-grow: 1; /* Allows description to take available space */
    margin-bottom: 1rem;
}

.card.product-card .product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #b08d57; /* Accent color for price */
    margin-bottom: 1rem;
}

.card.product-card .btn-primary {
    background-color: #b08d57;
    border-color: #b08d57;
    font-weight: 500;
}

.card.product-card .btn-primary:hover {
    background-color: #a07d47;
    border-color: #a07d47;
}

/* Featured Pillow Section */
.featured-pillow-section {
    background-color: #f8f9fa;
    padding: 3rem 0;
    margin-bottom: 2.5rem;
    border-radius: 8px;
}

.featured-pillow-section img {
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.featured-pillow-section .featured-title {
    font-family: 'Lora', serif;
    font-weight: 700;
    color: #b08d57;
}

.featured-pillow-section .featured-description {
    font-size: 1.1rem;
}

/* Pillow Buying Guide Section */
.buying-guide-section {
    background-color: #ffffff;
    padding: 2.5rem;
    margin-top: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}

.buying-guide-section .guide-title {
    font-family: 'Lora', serif;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
}

.buying-guide-section h5 {
    font-family: 'Lora', serif;
    font-weight: 600;
    color: #b08d57;
    margin-top: 1rem;
}

/* Generic Section Title for Pillow Space */
.section-title-ps {
    font-family: 'Lora', serif;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem; /* Matches buying guide title */
    padding-bottom: 0.5rem; /* Matches buying guide title */
    border-bottom: 2px solid #eee; /* Matches buying guide title */
}

/* Responsive Adjustments */

/* Medium devices (tablets, 768px and up) */
@media (max-width: 991.98px) {
    .pillow-space-main .page-title {
        font-size: 2.25rem; /* Slightly smaller title for tablets */
    }

    .featured-pillow-section img {
        max-height: 350px;
    }

    .featured-pillow-section .featured-title {
        font-size: 1.75rem;
    }

    .buying-guide-section .guide-title {
        font-size: 1.75rem;
    }

    .card.product-card .card-title {
        font-size: 1.1rem;
    }

    .card.product-card .product-price {
        font-size: 1.15rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 767.98px) {
    .pillow-space-main {
        padding-top: 1.5rem;
        padding-bottom: 2rem;
    }

    .pillow-space-main .page-title {
        font-size: 2rem; /* Smaller title for mobile */
        margin-bottom: 0.75rem;
    }

    .pillow-space-main .page-intro {
        font-size: 1rem; /* Smaller intro text */
        margin-bottom: 2rem;
    }

    .featured-pillow-section {
        padding: 2rem 0;
        text-align: center; /* Center align content on small screens */
    }

    .featured-pillow-section img {
        max-height: 300px;
        margin-bottom: 1.5rem;
    }

    .featured-pillow-section .featured-title {
        font-size: 1.6rem;
    }

    .featured-pillow-section .featured-description {
        font-size: 1rem;
    }

    .featured-pillow-section .btn-lg {
        width: 100%; /* Make button full width */
        font-size: 1rem;
        padding: 0.75rem;
    }

    .buying-guide-section {
        padding: 2rem 1rem; /* Reduce padding */
        margin-top: 2rem;
    }

    .buying-guide-section .guide-title {
        font-size: 1.5rem;
    }

    .buying-guide-section h5 {
        font-size: 1.1rem;
        margin-top: 1.5rem; /* Add some space when stacked */
    }

    .card.product-card .card-img-top {
        height: 180px; /* Slightly smaller image height on mobile */
    }

    .card.product-card .card-body {
        padding: 1rem;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .pillow-space-main .page-title {
        font-size: 1.75rem;
    }

    .featured-pillow-section .featured-title {
        font-size: 1.4rem;
    }

    .buying-guide-section .guide-title {
        font-size: 1.3rem;
    }

    .card.product-card .card-title {
        font-size: 1rem;
    }

    .card.product-card .card-text.product-description {
        font-size: 0.85rem;
    }

    .card.product-card .product-price {
        font-size: 1.1rem;
    }

    .card.product-card .btn {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }
}