/** Global **/
:root {
    --amazon-orange: #FF9900;
    --amazon-orange-hover: #e68a00;
    --pro-pink: #e91e63;
    --bg-light: #fdf6f4;
}

/** Home Pro Grid Styling **/
.home-pro-grid {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}

.home-pro-grid-cols-1 { grid-template-columns: 1fr; }
.home-pro-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.home-pro-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.home-pro-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

.home-pro-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure equal height */
}

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

.home-pro-card-image img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    display: block;
    background: #fff;
    padding: 10px;
}

.home-pro-card-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.home-pro-card-title {
    font-size: 1.1rem;
    margin: 0 0 15px 0;
    line-height: 1.3;
    text-align: left;
}

.home-pro-card-title a {
    text-decoration: none;
    color: #333;
    font-weight: 700;
}

.home-pro-spacer {
    flex-grow: 1; /* Pushes button to bottom */
}

.home-pro-cta-button {
    display: block;
    text-align: center;
    background: var(--amazon-orange);
    color: #fff !important;
    text-decoration: none;
    padding: 12px;
    border-radius: 6px;
    font-weight: bold;
    transition: background 0.2s;
}

/** Featured Block **/
.home-pro-featured-block {
    display: flex;
    align-items: center;
    background: var(--bg-light);
    border-radius: 12px;
    padding: 40px;
    margin: 30px 0;
    gap: 30px;
}

.home-pro-featured-content {
    flex: 1;
}

.home-pro-featured-badge {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 20px;
}

.home-pro-featured-title {
    font-size: 2.2rem;
    margin: 0 0 20px 0;
    color: #222;
    line-height: 1.2;
}

.home-pro-featured-desc {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
}

.home-pro-featured-btn {
    display: inline-block;
    background: var(--amazon-orange);
    color: #fff !important;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}

.home-pro-featured-media {
    flex: 1;
    display: flex;
    justify-content: center;
}

.home-pro-featured-media img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/** Category List Pro **/
.home-pro-cat-list-pro {
    margin: 40px 0;
}

.home-pro-cat-list-header h3 {
    font-size: 1.4rem;
    margin: 0 0 5px 0;
    color: #333;
}

.home-pro-cat-list-header hr {
    border: 0;
    border-top: 1px solid #eee;
    margin-bottom: 25px;
}

.home-pro-cat-list-items {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
}

.home-pro-cat-item {
    text-align: center;
    text-decoration: none;
    flex: 1;
    min-width: 100px;
}

.home-pro-cat-img-wrap {
    width: 80px;
    height: 80px;
    margin: 0 auto 10px;
    overflow: hidden;
}

.home-pro-cat-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.home-pro-cat-label {
    display: block;
    color: var(--pro-pink);
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 2px solid transparent;
    transition: border 0.3s;
}

.home-pro-cat-item:hover .home-pro-cat-label {
    border-bottom: 2px solid var(--pro-pink);
}

/** Responsive **/
@media (max-width: 768px) {
    .home-pro-featured-block {
        flex-direction: column-reverse;
        padding: 20px;
        text-align: center;
    }
    .home-pro-grid-cols-3, .home-pro-grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .home-pro-grid-cols-2, .home-pro-grid-cols-3, .home-pro-grid-cols-4 {
        grid-template-columns: 1fr;
    }
    .home-pro-cat-list-items {
        justify-content: center;
    }
}