.pm-navbar {
    position: sticky;
    top: 0;
    z-index: 60;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
    backdrop-filter: blur(6px);
    box-shadow: var(--box-shadow-sm)
}
.pm-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 8px
}

.brand {
    font-weight: 700;
    font-size: 18px;
    color: var(--gold-primary)
}

.pm-search {
    min-width: 280px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-primary)
}

.icon-btn{
    background: transparent;
    border: 0;
    color: var(--text-primary, #111);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px;               /* comfortable touch target */
    min-width: 40px;
    min-height: 40px;
    border-radius: 10px;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 160ms ease, transform 120ms ease, box-shadow 160ms ease;
    user-select: none;
    -webkit-user-select: none;
    position: relative;
    overflow: hidden;
}

/* hover and active visuals */
.icon-btn:hover{
    background-color: rgba(255,255,255,0.04);
}
.icon-btn:active{
    transform: translateY(1px) scale(0.995);
    background-color: rgba(255,255,255,0.06);
}

/* focus for keyboard and a11y */
.icon-btn:focus{
    outline: none;
    box-shadow: 0 0 0 3px var(--gold-primary);
    background-color: rgba(59,130,246,0.04);
    border-radius: 10px;
}

/* accessible label support when only icon is present */
.icon-btn[aria-label]:not([title]) { pointer-events: auto; }

/* optional small ripple effect without JS using pseudo element */
.icon-btn::after{
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    background: rgba(0,0,0,0.08);
    border-radius: 50%;
    transform: translate(-50%,-50%);
    opacity: 0;
    transition: width 260ms ease, height 260ms ease, opacity 200ms ease;
    pointer-events: none;
}
.icon-btn:active::after{
    width: 160%;
    height: 160%;
    opacity: 1;
    transition-duration: 160ms;
}

/* prevent motion for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce){
    .icon-btn{
        transition: none;
    }
    .icon-btn::after{
        transition: none;
    }
}

/* tighter appearance for desktop while keeping touch target for mobile */
@media (min-width: 768px){
    .icon-btn{
        padding: 8px;
        min-width: 36px;
        min-height: 36px;
    }
}

/* stack icon and label vertically on narrow screens when used in navbars */
@media (max-width: 480px){
    .icon-btn{
        gap: 4px;
        padding: 12px 10px;
        border-radius: 12px;
        min-width: 44px;
        min-height: 44px;
    }
    .icon-btn .label{
        font-size: 11px;
        line-height: 1;
        color: inherit;
        display: block;
    }
}

/* utility for icon sizing inside the button */
.icon-btn svg,
.icon-btn img,
.icon-btn i{
    width: 20px;
    height: 20px;
    display: block;
    pointer-events: none;
}

.pm-badge {
    background: var(--gold-primary);
    color: #111;
    padding: 4px 8px;
    border-radius: 999px;
    font-weight: 700;
    margin-left: 6px
}

.mobile-only {
    display: none
}

/* hero */
.hero {
    display: flex;
    gap: 20px;
    padding: 20px;
    align-items: center
}

.hero .lead {
    color: var(--text-secondary)
}

.hero-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px
}

.btn {
    border-radius: 10px;
    padding: 10px 14px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition-base)
}

.btn-primary {
    background: linear-gradient(90deg, var(--gold-primary), var(--gold-secondary));
    color: #111;
    font-weight: 700;
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.12)
}

.btn-ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-primary)
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-primary)
}

/* premium card */
.card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    border-radius: 12px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.pm-elevate {
    box-shadow: var(--box-shadow)
}

.muted {
    color: var(--text-secondary)
}

/* grid 2 columns */
.grid-2 {
    display: grid;
    grid-template-columns:1fr 1.25fr;
    gap: 20px
}

@media (max-width: 900px) {
    .grid-2 {
        grid-template-columns:1fr
    }

    .mobile-only {
        display: inline-block
    }

    .pm-search {
        min-width: 120px
    }
}

.products-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0.5rem 0;
}

.products-grid::-webkit-scrollbar {
    display: none;
}

@media (min-width: 576px) {
    .products-grid {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }
}

.product-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.04));
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    display: flex;
    flex-direction: column;
}

@media (min-width: 576px) {
    .product-card {
        width: calc(50% - 0.5rem);
        max-width: 280px;
    }
}

@media (min-width: 768px) {
    .product-card {
        width: calc(33.333% - 0.67rem);
        max-width: 300px;
    }
}

@media (min-width: 992px) {
    .product-card {
        width: calc(25% - 0.75rem);
        max-width: 280px;
    }
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.3);
}

.product-image-wrapper {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: var(--black-primary);
    aspect-ratio: 16 / 9;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.p-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.p-title {
    font-weight: 600;
    font-size: 15px;
    line-height: 1.4;
    color: var(--text-primary);
    cursor: pointer;
    transition: color 0.2s ease;
    min-height: 2.8em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.p-title:hover {
    color: var(--gold-primary);
}

.p-meta {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.p-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.price {
    font-weight: 700;
    font-size: 16px;
    color: var(--gold-primary);
    letter-spacing: 0.3px;
}

.controls {
    display: flex;
    gap: 8px;
    align-items: center
}

/* quantity widget */
.qty {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
}

.qty:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(212, 175, 55, 0.2);
}

.qty-btn {
    background: transparent;
    border: 0;
    padding: 8px 12px;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.2s ease;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold-primary);
}

.qty-btn:active {
    transform: scale(0.95);
    background: rgba(212, 175, 55, 0.15);
}

.qty-input {
    width: 50px;
    text-align: center;
    background: transparent;
    border: 0;
    color: var(--text-primary);
    padding: 8px 4px;
    font-size: 14px;
    font-weight: 600;
}

.qty-input:focus {
    outline: none;
    background: rgba(212, 175, 55, 0.05);
}

/* featured product */
.product-card.premium {
    display: flex;
    gap: 12px
}

.product-card.premium img {
    width: 220px;
    height: 140px;
    object-fit: cover
}

.p-info {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px
}

.p-actions {
    display: flex;
    gap: 8px;
    align-items: center
}

/* dropzone */
.dropzone {
    border: 1px dashed rgba(255, 255, 255, 0.06);
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer
}

.dropzone.dragover {
    background: rgba(212, 175, 55, 0.06);
    border-color: var(--gold-primary)
}

.file-list {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02)
}

/* cart panel */
.cart-panel {
    position: fixed;
    right: 20px;
    top: 80px;
    width: 340px;
    background: var(--black-secondary);
    border-radius: 12px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.02);
    transform: translateX(120%);
    transition: transform .28s;
    z-index: 80
}

.cart-panel.open {
    transform: translateX(0)
}

.cart-items {
    min-height: 80px;
    margin: 8px 0
}

.cart-items .item {
    display: flex;
    justify-content: space-between;
    padding: 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02)
}

.cart-summary {
    margin-top: 12px
}

/* modal */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
}

.modal[aria-hidden="false"] {
    display: flex
}

.modal-dialog {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    padding: 18px;
    border-radius: 12px;
    max-width: 900px;
    width: 96%;
}

.modal-close {
    position: absolute;
    right: 18px;
    top: 18px;
    border: 0;
    background: transparent;
    color: var(--text-primary);
    font-size: 18px
}
.toasts {
    position: fixed;
    left: 16px;
    bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 9999;
    pointer-events: none;
    width: 100%;
}

.toast {
    display: inline-block;
    margin: auto;
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(20px);
    animation: toast-in 0.3s forwards;
    pointer-events: auto;
}

/* Slide in */
@keyframes toast-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide out */
@keyframes toast-out {
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}
/* small screens */
@media (max-width: 520px) {
    .pm-search {
        display: none
    }

    .hero {
        flex-direction: column
    }
}

/* Purchase Details Page Styles */
.purchase-details-header {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.04));
    border-radius: var(--border-radius-lg);
    padding: var(--space-3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.detail-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.detail-value {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.purchase-items-section {
    margin-top: var(--space-4);
}

.section-title {
    color: var(--gold-primary);
    font-weight: 600;
    font-size: 1.25rem;
}

.purchase-items-table {
    background: transparent;
    border-collapse: separate;
    border-spacing: 0;
}

.purchase-items-table thead th {
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05));
    color: var(--gold-primary);
    font-weight: 600;
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: var(--space-2) var(--space-3);
    text-align: right;
}

.purchase-items-table tbody td {
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-2) var(--space-3);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.02);
}

.purchase-items-table tbody tr:hover {
    background: rgba(212, 175, 55, 0.05);
    transition: background 0.2s ease;
}

.purchase-summary {
    border-top: 2px solid rgba(212, 175, 55, 0.3);
}

.summary-row {
    padding: var(--space-2) 0;
}

.summary-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.summary-value {
    font-size: 1.25rem;
    color: var(--gold-primary);
    font-weight: 700;
}

.order-status-hero {
    width: 100%;
}

.status-card {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-4);
    border-radius: var(--border-radius-lg);
    border: 1px solid;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.status-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

.status-success {
    border-color: rgba(40, 167, 69, 0.3);
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.08), rgba(40, 167, 69, 0.02));
}

.status-pending {
    border-color: rgba(212, 175, 55, 0.3);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(212, 175, 55, 0.02));
}

.status-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-success .status-icon {
    color: var(--success);
    background: rgba(40, 167, 69, 0.1);
    border-color: rgba(40, 167, 69, 0.2);
}

.status-pending .status-icon {
    color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.2);
}

.status-icon svg {
    width: 24px;
    height: 24px;
}

.status-content-wrapper {
    flex: 1;
    min-width: 0;
}

.status-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--space-2);
    line-height: 1.4;
}

.status-success .status-title {
    color: var(--success);
}

.status-pending .status-title {
    color: var(--gold-primary);
}

.status-description {
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.8;
    white-space: pre-wrap;
    word-wrap: break-word;
    text-align: justify;
    opacity: 0.95;
}

@media (max-width: 576px) {
    .order-status-hero {
        margin-bottom: var(--space-3);
    }
    
    .status-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: var(--space-3);
        gap: var(--space-2);
    }
    
    .status-icon {
        width: 40px;
        height: 40px;
    }
    
    .status-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .status-title {
        font-size: 1rem;
        margin-bottom: var(--space-1);
    }
    
    .status-description {
        font-size: 0.875rem;
        line-height: 1.7;
        text-align: center;
    }
    
    .status-content-wrapper {
        width: 100%;
    }
    
    .purchase-items-table {
        font-size: 0.875rem;
    }
    
    .purchase-items-table thead th,
    .purchase-items-table tbody td {
        padding: var(--space-1) var(--space-2);
    }
    
    .detail-item {
        margin-bottom: var(--space-2);
    }
    
    .purchase-summary .col-md-6 {
        padding: 0;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .status-card {
        padding: var(--space-3);
    }
    
    .status-icon {
        width: 44px;
        height: 44px;
    }
}
