.shop-category-section {
    background-color: #111; /* Dark background */
    padding: 60px 20px;
    font-family: sans-serif;
    width: 100%;
}

.shop-category-header {
    text-align: center;
    color: #fff;
    margin-top: 0;
    margin-bottom: 50px;
    font-size: 2.5rem;
    font-weight: 600;
}

.shop-category-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    justify-items: center;
}

.shop-card-link {
    text-decoration: none;
    display: block;
    width: 100%;
    max-width: 350px;
}

.shop-card {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4; /* Vertical rectangular cards by default */
    border-radius: 15px; /* Rounded corners */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    border: 4px solid transparent;
    transition: border-color 0.4s ease, transform 0.4s ease;
    cursor: pointer;
    box-sizing: border-box;
}

.shop-card-overlay {
    position: absolute;
    inset: 0;
    /* Dark gradient overlay at the bottom so text is highly legible */
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 40%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 30px 20px;
}

.shop-card-content {
    color: #fff;
    text-align: center;
    /* Push content down initially */
    transform: translateY(80px);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%;
}

.shop-card-title {
    font-size: 2rem;
    margin: 0 0 15px 0;
    font-weight: bold;
    text-transform: capitalize;
    transition: margin 0.4s ease;
}

.shop-card-hidden {
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateY(20px);
}

.shop-card-desc {
    font-size: 0.95rem;
    margin: 5px 0;
    color: #e0e0e0;
}

.shop-card-btn {
    margin-top: 20px;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 50px; /* Pill-shaped */
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.shop-card-btn:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

/* -----------------------------
   Interactive Hover State
------------------------------ */
.shop-card-link:hover .shop-card {
    border-color: var(--hover-color, #d81bd8); /* Fallback to magenta if variable not set */
}

.shop-card-link:hover .shop-card-content {
    /* Main category text slides up */
    transform: translateY(0);
}

.shop-card-link:hover .shop-card-hidden {
    /* Reveal pseudo-description and button */
    opacity: 1;
    transform: translateY(0);
}


/* -----------------------------
   Secondary Circular Style 
------------------------------ */
.style-circle .shop-card {
    aspect-ratio: 1 / 1; /* Perfect circle requires 1:1 ratio */
    border-radius: 50%; /* Perfect circle */
}

.style-circle .shop-card-content {
    /* Adjust initial position for the circular shape constraint */
    transform: translateY(60px); 
}

.style-circle .shop-card-link:hover .shop-card-content {
    transform: translateY(-10px);
}

.style-circle .shop-card-overlay {
    padding: 20px;
    /* Adjust gradient slightly for circle geometry */
    background: linear-gradient(to top, rgba(0,0,0,0.95) 10%, rgba(0,0,0,0.6) 50%, transparent 100%);
}