/* ═══════════════════════════════════════════════════════════
   SHOP — HOME
   resources/css/shop/home.css
   ═══════════════════════════════════════════════════════════ */

:root {
    --pm-bg: #f5f5f7;
    --pm-surface: #ffffff;
    --pm-surface2: #f5f5f7;
    --pm-border: rgba(0, 0, 0, 0.08);
    --pm-text: #1d1d1f;
    --pm-muted: #6e6e73;
    --pm-teal: #006980;
    --pm-teal-light: #e6f6f8;
    --pm-teal-mid: #b3dde4;
}

/* ── SECTION HELPERS ── */
.pm-section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--pm-muted);
    margin-bottom: 6px;
}

.pm-section-title {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.8px;
    color: var(--pm-text);
    margin-bottom: 24px;
}

.pm-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 24px;
}

.pm-see-all {
    color: var(--pm-teal);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: 0.85;
    transition: opacity 0.2s, gap 0.2s;
}

.pm-see-all:hover {
    opacity: 1;
    gap: 8px;
}

/* ── CATEGORIES ── */
.pm-cats-section {
    padding: 0 5%;
    margin-bottom: 72px;
    margin-top: 40px;
}

.pm-cats-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
  padding-bottom: 12px; /* rrit pak */
    padding-top: 6px;     /* shtim */
    padding-left: 2px;  
    scrollbar-width: none;
}

.pm-cats-grid::-webkit-scrollbar {
    display: none;
}

.pm-cat-card {
    flex-shrink: 0;
    width: 160px;
    height: 160px;
    border-radius: 24px;
    background: var(--pm-surface);
    border: 1px solid var(--pm-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    color: var(--pm-text);
    transition: all 0.25s;
    cursor: pointer;
}

.pm-cat-card:hover {
    background: var(--pm-teal);
    border-color: var(--pm-teal);
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 105, 128, 0.25);
}

.pm-cat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--pm-teal-light);
    color: var(--pm-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: all 0.25s;
}

.pm-cat-card:hover .pm-cat-icon {
    background: rgba(255, 255, 255, 0.18);
    color: white;
    border-radius: 14px; /* eksplicit */
}

.pm-cat-name {
    font-size: 13px;
    font-weight: 600;
}

/* ── FEATURED PRODUCTS ── */
.pm-products-section {
    padding: 0 5%;
    margin-bottom: 72px;
}

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

.pm-product-card {
    background: var(--pm-surface);
    border-radius: 24px;
    overflow: hidden;
    text-decoration: none;
    color: var(--pm-text);
    border: 1px solid var(--pm-border);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.pm-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.10);
    border-color: transparent;
}

.pm-product-img {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--pm-surface2);
    position: relative;
}

.pm-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(.4, 0, .2, 1);
}

.pm-product-card:hover .pm-product-img img {
    transform: scale(1.06);
}

.pm-product-img-ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 48px;
}

.pm-product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
}

.pm-badge-featured {
    background: #1d1d1f;
    color: white;
}

.pm-badge-sale {
    background: rgba(0, 105, 128, 0.12);
    border: 1px solid rgba(0, 105, 128, 0.25);
    color: var(--pm-teal);
}

.pm-product-info {
        padding: 20px;

    flex: 1;
    display: flex;
    flex-direction: column;
}

.pm-product-cat {
    font-size: 10px;     /* nga 11px */
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--pm-teal);
    margin-bottom: 4px;
}

.pm-product-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--pm-text);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pm-product-brand {
    font-size: 13px;
    color: var(--pm-muted);
    margin-bottom: 14px;
    flex: 1;
}

.pm-product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.pm-product-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--pm-text);
    white-space: nowrap;
    display: flex;
    align-items: baseline;
    gap: 3px;
}


.pm-product-old {
    font-size: 13px;
    color: var(--pm-muted);
    text-decoration: line-through;
    display: block;
    font-weight: 400;
    line-height: 1;
}

.pm-add-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--pm-teal);
    border: none;
    color: white;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.pm-add-btn:hover {
    background: #005068;
    transform: scale(1.08);
}

/* ── NEW RELEASES ── */
.pm-releases {
    padding: 0 5%;
    margin-bottom: 72px;
}

.pm-releases-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 24px;
}

.pm-releases-label {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.6px;
    color: var(--pm-text);
    margin-bottom: 3px;
}

.pm-releases-sub {
    font-size: 13px;
    color: var(--pm-muted);
}

.pm-releases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.pm-nr-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: var(--pm-text);
    border: 1px solid rgba(0, 0, 0, .07);
    display: flex;
    flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}

.pm-nr-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .10);
    border-color: transparent;
}

.pm-nr-img {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--pm-surface2);
}

.pm-nr-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pm-nr-card:hover .pm-nr-img img {
    transform: scale(1.06);
}

.pm-nr-img-ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 36px;
}

.pm-nr-badge-new {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 8px;
    background: #1d1d1f;
    color: #fff;
    border-radius: 999px;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1px;
}

.pm-nr-badge-discount {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 3px 8px;
    background: #ff3b30;
    color: #fff;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
}

.pm-nr-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .32);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 12px;
    opacity: 0;
    transition: opacity .25s ease;
}

.pm-nr-card:hover .pm-nr-overlay {
    opacity: 1;
}

.pm-nr-quick-add {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #fff;
    color: #1d1d1f;
    border: none;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transform: translateY(6px);
    transition: transform .25s ease;
}

.pm-nr-card:hover .pm-nr-quick-add {
    transform: translateY(0);
}

.pm-nr-quick-add:hover {
    background: #f0f0f0;
}

.pm-nr-info {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.pm-nr-cat {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--pm-teal);
    margin-bottom: 3px;
}

.pm-nr-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--pm-text);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pm-nr-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.pm-nr-prices {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.pm-nr-old {
    font-size: 10px;
    color: #aeaeb2;
    text-decoration: line-through;
    font-weight: 400;
    line-height: 1;
}

.pm-nr-add-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--pm-teal);
    border: none;
    color: #fff;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, transform .2s;
    flex-shrink: 0;
}

.pm-nr-add-btn:hover {
    background: #005068;
    transform: scale(1.1);
}

/* ── BENTO ── */
.pm-bento {
    padding: 0 5%;
    margin-bottom: 56px;
}

.pm-bento-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 14px;
}

.pm-bento-hero {
    grid-row: 1 / 3;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    min-height: 340px;
    text-decoration: none;
    display: block;
    background: #1d1d1f;
}

.pm-bento-hero-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.pm-bento-hero-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, transparent 60%);
}

.pm-bento-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 28px;
    color: white;
    z-index: 1;
}

.pm-bento-hero-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.75;
    margin-bottom: 8px;
}

.pm-bento-hero-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin-bottom: 12px;
}

.pm-bento-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 980px;
    background: white;
    color: #1d1d1f;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.pm-bento-card {
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    min-height: 160px;
    transition: opacity 0.2s;
}

.pm-bento-card:hover {
    opacity: 0.9;
}

.pm-bento-card.blue {
    background: var(--pm-teal);
    color: white;
}

.pm-bento-card-title {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.3px;
    line-height: 1.2;
    margin-bottom: 6px;
}

.pm-bento-card-sub {
    font-size: 13px;
    opacity: 0.78;
    line-height: 1.4;
    margin-bottom: 14px;
}

.pm-bento-card-link {
    font-size: 13px;
    font-weight: 600;
    color: inherit;
    text-decoration: underline;
    opacity: 0.85;
}

/* ── ACCESSORIES ── */
.pm-more-cats-section {
    margin: 40px auto 56px;
    max-width: 1280px;
    padding: 0 24px;
}

.pm-more-products-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.pm-more-product-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 18px;
    padding: 10px;
    text-decoration: none;
    color: inherit;
    transition: transform .18s ease, box-shadow .18s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
}

.pm-more-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}

.pm-more-product-thumb {
    height: 170px;
    border-radius: 18px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 10px;
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.pm-more-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.pm-more-product-ph {
    color: #8e8e93;
    font-size: 20px;
}

.pm-more-product-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--pm-text);
    line-height: 1.35;
    min-height: 32px;
    margin-bottom: 6px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.pm-more-product-price {
    font-size: 13px;
    font-weight: 800;
    color: var(--pm-teal);
}

/* ── WISHLIST BTN ── */
.pm-wish-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.30);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: white;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(.4, 0, .2, 1);
    z-index: 3;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.pm-wish-btn:hover {
    background: rgba(255, 255, 255, 0.30);
    border-color: rgba(255, 255, 255, 0.50);
    transform: scale(1.10);
}

.pm-wish-btn.saved {
    background: #ff3b30;
    border-color: #ff3b30;
    color: white;
    text-shadow: none;
}

.pm-wish-btn.saved:hover {
    background: #e02d22;
    border-color: #e02d22;
    transform: scale(1.10);
}

@keyframes heartPop {
    0% { transform: scale(1); }
    40% { transform: scale(1.40); }
    70% { transform: scale(0.88); }
    100% { transform: scale(1); }
}

.pm-wish-btn.pop {
    animation: heartPop 0.32s cubic-bezier(.4, 0, .2, 1) forwards;
}

/* ── WISHLIST GRID ── */
#wishlistGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 220px));
    gap: 16px;
}

#wishlistGrid .pm-product-card .pm-product-img {
    aspect-ratio: 1;
    max-height: 220px;
    overflow: hidden;
}

#wishlistGrid .pm-product-card .pm-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pm-bento-card.upgrade {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #fff;
    position: relative;
    overflow: hidden;
    transition: all .3s ease;
}

.pm-bento-card.upgrade::before {
    content: "";
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 122, 0, 0.3), transparent);
    top: -40px;
    right: -40px;
}

.pm-bento-card.upgrade:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .25);
}

.pm-bento-card.support {
    background: linear-gradient(135deg, #006980, #004d5c);
    color: #fff;
    position: relative;
    overflow: hidden;
    transition: all .3s ease;
}

.pm-bento-card.support::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(0, 105, 128, 0.35), transparent);
    top: -40px;
    right: -40px;
}

.pm-bento-card.support:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .2);
}

.pm-upgrade-hero {
    position: relative;
    overflow: hidden;
    min-height: 270px;
    border-radius: 24px;
    background: linear-gradient(135deg, #0b1220 0%, #13213f 55%, #1e293b 100%);
}

.pm-upgrade-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transform: scale(1.01);
    z-index: 1;
}

.pm-upgrade-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(90deg, rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, .28) 45%, rgba(0, 0, 0, .14) 100%);
}

.pm-upgrade-hero .pm-bento-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 32px;
    z-index: 3;
    max-width: 100%;
}

.pm-upgrade-hero .pm-bento-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    margin-bottom: 14px;
}
.pm-upgrade-hero {
    position: relative;
    overflow: hidden;
    min-height: 360px;  /* nga 270px */
    border-radius: 24px;
    background: linear-gradient(135deg, #0b1220 0%, #13213f 55%, #1e293b 100%);
}

.pm-upgrade-hero .pm-bento-hero-title {
    color: #fff;
    font-size: 40px;
    line-height: 1.05;
    font-weight: 800;
    margin-bottom: 12px;
    max-width: 420px;
}

.pm-upgrade-hero-sub {
    color: rgba(255, 255, 255, .85);
    font-size: 15px;
    line-height: 1.6;
    max-width: 460px;
    margin-bottom: 18px;
}

.pm-upgrade-hero .pm-bento-hero-btn {
    background: #fff;
    color: #111827;
    border-radius: 999px;
    padding: 12px 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    text-decoration: none;
}

.pm-upgrade-hero:hover {
    transform: translateY(-2px);
    transition: all .25s ease;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
    .pm-more-products-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .pm-releases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .pm-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .pm-product-info {
        padding: 10px;
    }

    .pm-product-cat {
    font-size: 11px;
    margin-bottom: 5px;
}
    .pm-product-name {
        font-size: 12px;
        margin-bottom: 2px;
    }

    .pm-product-brand {
        font-size: 10px;
        margin-bottom: 6px;
    }

    .pm-product-price {
        font-size: 13px;
    }

    .pm-product-old {
        font-size: 10px;
    }

    .pm-add-btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .pm-releases-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .pm-more-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .pm-more-product-thumb {
        height: 80px;
        padding: 6px;
    }
}
