/* gallery.css */

main h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 600 !important;
    margin-bottom: 2rem;
    text-align: center;
}

.card {
    border: 2px solid var(--accent1-color);
    border-radius: 14px;
    box-shadow: 0 4px 16px #23345733;
    background: rgba(255, 255, 255, 0.97);
    transition: transform 0.15s, box-shadow 0.15s;
}

.card:hover,
.card:focus-within {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 8px 32px #23345744;
    border-color: var(--accent2-color);
}

.card-img-top {
    border-radius: 12px 12px 0 0;
    border-bottom: 2px solid var(--accent1-color);
    background: #fff;
    object-fit: cover;
    width: 100%;
    height: 300px;
}

.card-text {
    color: var(--accent3-color);
    font-size: 1rem;
}

@media (max-width: 768px) {
    .card-img-top {
        height: 200px;
    }

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

    .card-text {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .card-img-top {
        height: 140px;
    }

    main h2 {
        font-size: 1.8rem;
        font-weight: 600 !important;
    }
}

.shop-card {
    transition: transform 0.18s cubic-bezier(.4, 2, .6, 1), box-shadow 0.18s cubic-bezier(.4, 2, .6, 1);
}

.shop-card.rise-up {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 8px 32px 0 rgba(35, 52, 87, 0.35), 0 2px 8px 0 rgba(35, 52, 87, 0.15);
    z-index: 2;
}

.shop-card,
.card {
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.45), 0 2px 8px 0 rgba(0, 0, 0, 0.25) !important;
    transition: transform 0.18s cubic-bezier(.4, 2, .6, 1), box-shadow 0.18s cubic-bezier(.4, 2, .6, 1);
}

.shop-card.rise-up,
.card:hover,
.card:focus-within {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 16px 48px 0 rgba(0, 0, 0, 0.55), 0 4px 16px 0 rgba(0, 0, 0, 0.25) !important;
    z-index: 2;
}

.card-img-top,
.shop-card img {
    display: block;
    margin-left: 0;
    margin-right: 0;
    /* Optionally, add these for consistent sizing: */
    max-width: 80%;
    height: auto;
    margin-bottom: 0;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {

    .card,
    .shop-card {
        width: 100%;
        max-width: 100%;
        margin: 0 auto 1.5rem auto;
    }

    .card-img-top,
    .shop-card img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {

    .card,
    .shop-card {
        width: 100%;
        max-width: 100%;
        margin-bottom: 1.5rem;
    }

    .card-img-top,
    .shop-card img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        margin: 0 auto;
    }
}

.rounded-pill {
    border-radius: 50px !important;
    background: var(--accent4-color) !important;
}

.ticker-banner {
    background: rgb(225, 179, 62);
    overflow: hidden;
    min-height: 48px;
    z-index: 10;
}

.ticker-text {
    display: inline-block;
    animation: wave 2.5s infinite linear alternate;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
}

@keyframes sewing-bounce {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-6px);
    }
}

h2 {
    font-weight: 600 !important;
}

.card-title {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 600 !important;
    margin-bottom: 0.5rem;
}

.modal a {
    font-size: 0.7rem;
    padding: 0.2rem 0.2rem;
    word-break: break-all;
    display: inline-block;
    max-width: 100%;
}

.sold-banner {
    position: absolute;
    top: 18px;
    left: -38px;
    background:rgb(225, 179, 62);
    color: #fff;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 4px 40px;
    transform: rotate(-25deg);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    z-index: 2;
    pointer-events: none;
    letter-spacing: 0.1em;
}
