/* Premium product card (.pcard) – shared by products.php & index.php */
.pcard {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    border: 1px solid #f0f2f7;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.28s cubic-bezier(.4,0,.2,1), box-shadow 0.28s ease;
    position: relative;
}
.pcard:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}

.pcard__img-wrap {
    position: relative;
    overflow: hidden;
    background: #f7f9fc;
    aspect-ratio: 1/1;
}
.pcard__img-wrap a {
    display: block;
    width: 100%;
    height: 100%;
}
.pcard__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    transition: transform 0.4s ease;
}
.pcard:hover .pcard__img-wrap img {
    transform: scale(1.06);
}

.pcard__rating-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #fff;
    padding: 4px 9px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.10);
    border: 1px solid rgba(0,0,0,0.05);
    z-index: 3;
    pointer-events: none;
}
.pcard__rating-badge span {
    font-size: 11px;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1;
}
.pcard__rating-badge i {
    color: #f59e0b !important;
    font-size: 10px !important;
}

.pcard__delivery-badges {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    flex-direction: row;
    gap: 5px;
    z-index: 3;
    pointer-events: none;
}
.pcard__delivery-badges .dbadge {
    font-size: 10.5px;
    font-weight: 900;
    padding: 4px 12px;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    line-height: 1.4;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.pcard__delivery-badges .dbadge-cod {
    background: #f0fdf4;
    color: #166534;
    border: 1.5px solid #15803d;
}
.pcard__delivery-badges .dbadge-free {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1.5px solid #1d4ed8;
}

.pcard__body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.pcard__brand {
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
}

.pcard__name {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
    margin-bottom: 0;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pcard__name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
.pcard__name a:hover { color: var(--tg-theme-primary, #0d9488); }

.pcard__category {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    margin-top: 4px;
    margin-bottom: 8px;
    line-height: 1.35;
    text-decoration: none;
    transition: color 0.2s ease;
}
.pcard__category:hover {
    color: var(--tg-theme-primary, #0d9488);
}

.pcard__divider {
    height: 1px;
    background: #f1f5f9;
    margin: 14px 0;
}

.pcard__btn-group {
    display: flex;
    gap: 8px;
    width: 100%;
    margin-top: auto;
}

.pcard__cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
    padding: 10px 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
    text-align: center;
}

.pcard__cart-btn.active-btn {
    background: linear-gradient(135deg, #0d9488 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(13,148,136,0.25);
}
.pcard__cart-btn.active-btn:hover {
    background: linear-gradient(135deg, #0f766e 0%, #047857 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(13,148,136,0.35);
    color: #fff;
}

.pcard__cart-btn.view-btn {
    background: #f8fafc;
    color: #334155;
    border: 1px solid #e2e8f0;
}
.pcard__cart-btn.view-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.pcard__cart-btn.active-btn:active, .pcard__cart-btn.view-btn:active { transform: translateY(0); }
.pcard__cart-btn.inactive-btn {
    background: #f1f5f9;
    color: #94a3b8;
    border: 1px solid #e2e8f0;
    cursor: not-allowed;
    width: 100%;
}
.pcard__cart-btn i {
    font-size: 14px;
}

.pcard__price-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 5px;
    margin: 8px 0 6px;
}
.pcard__price {
    font-size: 16px;
    font-weight: 800;
    color: #0d9488;
    letter-spacing: -0.3px;
}
.pcard__price-mrp {
    font-size: 12px;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 500;
}
.pcard__price-save {
    font-size: 10px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #10b981, #0d9488);
    padding: 1px 6px;
    border-radius: 20px;
}

.pcard__swatches {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 6px;
}
.pcard__swatch-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}
.pcard__swatch-label {
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    margin-right: 2px;
}
.pcard__size-tag {
    font-size: 10px;
    font-weight: 700;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    padding: 1px 6px;
    background: #f8fafc;
    line-height: 1.6;
}
.pcard__color-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1.5px rgba(0,0,0,0.15);
    flex-shrink: 0;
}
.pcard__more-tag {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    border: 1px dashed #cbd5e1;
    border-radius: 5px;
    padding: 1px 5px;
    line-height: 1.6;
}

.pcard__variant-section {
    margin-top: 8px;
    margin-bottom: 8px;
}
.pcard__variant-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.pcard__vcard {
    position: relative;
    cursor: pointer;
    flex: 0 0 auto;
    padding: 4px 8px 4px 16px;
    border-radius: 6px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.pcard__vcard:hover {
    border-color: #0d9488;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13,148,136,0.08);
}
.pcard__vcard--active {
    border-color: #0d9488 !important;
    background: linear-gradient(145deg, #f0fdf9, #e6fffa) !important;
    box-shadow: 0 0 0 2px rgba(13,148,136,0.12), 0 4px 12px rgba(13,148,136,0.1) !important;
    transform: translateY(-1px);
}
.pcard__vcard-tick {
    position: absolute;
    top: -1px;
    left: -1px;
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, #0d9488, #10b981);
    border-radius: 6px 0 6px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
    pointer-events: none;
    z-index: 2;
}
.pcard__vcard-tick svg {
    width: 8px;
    height: 8px;
}
.pcard__vcard--active .pcard__vcard-tick {
    opacity: 1;
    transform: scale(1);
}
.pcard__vcard-name {
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    line-height: 1.2;
    white-space: nowrap;
}
.pcard__vcard--active .pcard__vcard-name {
    color: #0f766e;
}
.pcard__vcard-stock-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 1.5px rgba(16,185,129,0.2);
    flex-shrink: 0;
}

/* Featured grid on homepage */
.product__area-four .row > .col.d-flex {
    display: flex;
}
