/* assets/css/shop.css */

.shop-page {
    background-image: url("../images/2bg.png");
    background-attachment: fixed;
    background-size: cover;
    background-position: center top;
}

/* Hero Section */
.shop-hero {
    text-align: center;
    margin-bottom: 20px;
    padding: 20px;
    position: relative;
    padding-top: 140px; /* Offset fixed header */
}

.shop-hero__content {
    position: relative;
    z-index: 3;
    text-align: center;
}

.shop-hero__title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: #A42C1E;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 25px;
    line-height: 1.1;
    text-shadow: none;
}

.shop-hero__subtitle {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: #4a5568;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Grid Section */
.shop-grid-section {
    padding: 60px 0 100px 0;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* Card */
.shop-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.shop-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
    background: rgba(255, 255, 255, 0.85);
}

.shop-card__link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.shop-card__img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    overflow: hidden;
}

.shop-card__img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.shop-card:hover .shop-card__img {
    transform: scale(1.05);
}

.shop-card__img-placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, #e0e0e0, #f8f8f8);
}

/* Badges */
.shop-card__badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.badge--own {
    background: rgba(45, 90, 39, 0.9);
    color: #fff;
}

.badge--partner {
    background: rgba(255, 255, 255, 0.9);
    color: #2D5A27;
}

/* Info */
.shop-card__info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.shop-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f1a1e;
    margin-bottom: 15px;
    line-height: 1.3;
}

.shop-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    margin-top: auto;
}

.shop-card__rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.9rem;
}

.star-icon {
    color: #f59e0b; /* Golden star */
}

.rating-val {
    font-weight: 700;
    color: #333;
}

.review-count {
    color: #999;
    font-size: 0.8rem;
    margin-left: 4px;
}

.shop-card__price {
    font-size: 1.25rem;
    font-weight: 800;
    color: #2D5A27;
}

.shop-card__cta {
    border-top: 1px solid #eee;
    padding-top: 15px;
    text-align: center;
}

.btn-primary-small {
    display: inline-block;
    padding: 10px 20px;
    background: transparent;
    color: #2D5A27;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .05em;
    border: 1px solid #2D5A27;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 100%;
}

.shop-card:hover .btn-primary-small {
    background: #2D5A27;
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .shop-hero {
        height: 40vh;
        min-height: 300px;
    }
    
    .shop-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .shop-grid {
        grid-template-columns: 1fr;
    }
    
    .shop-hero__title {
        font-size: 2rem;
    }
}
