/* Ervalya — Enhanced Product Cards */

/* Stone badge — always visible, bottom of image */
.stone-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 6;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}
.stone-tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 20px;
    backdrop-filter: blur(6px);
    color: #fff;
    line-height: 1.4;
}
.stone-tag-turkuaz     { background: rgba(32, 140, 145, .82); }
.stone-tag-labradorit  { background: rgba(55, 75, 120, .82); }
.stone-tag-ay          { background: rgba(120, 130, 170, .80); }
.stone-tag-kuvars      { background: rgba(195, 100, 140, .82); }
.stone-tag-turmalin    { background: rgba(45, 130, 85, .82); }
.stone-tag-default     { background: rgba(80, 70, 55, .80); }
.stone-tag-el          { background: rgba(160, 120, 55, .85); }

/* Hover overlay — appears on card hover */
.product-hover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(20,18,14,.72) 0%, rgba(20,18,14,.0) 55%);
    opacity: 0;
    transition: opacity .35s ease;
    border-radius: 8px;
    z-index: 3;
    pointer-events: none;
    display: flex;
    align-items: flex-end;
    padding: 16px;
}
.product-img:hover .product-hover-overlay {
    opacity: 1;
}
.product-hover-text {
    color: #f5f0e8;
    font-size: 11px;
    line-height: 1.5;
    letter-spacing: .03em;
    max-width: 95%;
}

/* Shimmer on card load */
@keyframes ervalya-shimmer {
    0%   { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}
.product-item.loading .product-img {
    background: linear-gradient(90deg, #f0ece4 25%, #e8e2d6 50%, #f0ece4 75%);
    background-size: 800px 100%;
    animation: ervalya-shimmer 1.4s infinite linear;
}

/* Subtle card border glow on hover */
.product-item {
    border-radius: 10px;
    transition: transform .3s ease, box-shadow .3s ease;
}
.product-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(180, 145, 80, .18);
}

/* Product title — clamp for uniform height */
.product-title {
    font-size: 14px !important;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
}

/* Price styling */
.discount-price {
    font-size: 16px;
    font-weight: 700;
    color: #1a1916;
}
.old-price {
    font-size: 13px;
    text-decoration: line-through;
    color: #999;
    margin-left: 6px;
}

/* "El Yapimi" craft note under title */
.product-craft-note {
    font-size: 10px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #b8922a;
    font-weight: 600;
    margin-top: 3px;
    display: block;
}

/* Keep discount/new badges visible on hover */
.product-item:hover .product-badges {
    opacity: 1 !important;
}

/* Bestseller section title accent line */
.bestsellers .section-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 2px;
    background: #c9a96e;
    margin: 10px auto 0;
}
