/* ========================================
   MODERN PROFILE PAGE
   ======================================== */
.pcshop-profile {
    width: 100%;
    max-width: 100%;
}

/* ============================================================
   MY ACCOUNT NAVIGATION — MODERN
   ============================================================ */
/* Layout handled by style.css — do not override */

.pcshop-myaccount-nav {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0,0,0,.06);
    overflow: visible;
}

/* Nav List */
.pcshop-myaccount-nav__list {
    list-style: none;
    padding: 8px;
    margin: 0;
    display: flex;
    overflow-x: auto;
    gap: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.pcshop-myaccount-nav__list::-webkit-scrollbar { display: none; }
.pcshop-myaccount-nav__item {
    margin: 0;
    flex-shrink: 0;
    border-bottom: none !important;
}
.pcshop-myaccount-nav__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    white-space: nowrap;
    border-radius: 12px;
    text-decoration: none;
    color: #555;
    font-size: 14px;
    font-weight: 500;
    transition: all .2s ease;
    position: relative;
}
.pcshop-myaccount-nav__link svg {
    flex-shrink: 0;
    opacity: .6;
    transition: all .2s;
}
.pcshop-myaccount-nav__link span {
    flex: 0 0 auto;
}
.pcshop-myaccount-nav__link:hover {
    background: #f8f9fa;
    color: var(--pcshop-primary);
}
.pcshop-myaccount-nav__link:hover svg {
    opacity: 1;
    color: var(--pcshop-primary);
}

/* Active */
.pcshop-myaccount-nav__item--active .pcshop-myaccount-nav__link {
    background: linear-gradient(135deg, var(--pcshop-primary), #ff6b6b);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(255,71,71,.25);
}
.pcshop-myaccount-nav__item--active .pcshop-myaccount-nav__link svg {
    opacity: 1;
    color: #fff;
}

/* Badge */
.pcshop-myaccount-nav__badge {
    background: rgba(255,255,255,.25);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    min-width: 22px;
    text-align: center;
}
.pcshop-myaccount-nav__item:not(.pcshop-myaccount-nav__item--active) .pcshop-myaccount-nav__badge {
    background: #f0f0f0;
    color: #888;
}

/* Logout */
.pcshop-myaccount-nav__item--logout {
    margin-left: auto;
}
.pcshop-myaccount-nav__item--logout .pcshop-myaccount-nav__link {
    color: #999;
}
.pcshop-myaccount-nav__item--logout .pcshop-myaccount-nav__link:hover {
    color: var(--pcshop-danger);
    background: #fff5f5;
}

/* Content */
.woocommerce-account .woocommerce-MyAccount-content {
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
    min-height: auto;
}

/* --- Profile Header / Cover --- */
.pcshop-profile-header {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    margin-bottom: 24px;
}
.pcshop-profile-cover {
    height: 160px;
    background: linear-gradient(135deg, var(--pcshop-primary) 0%, #ff6b6b 50%, #ee5a24 100%);
    position: relative;
}
.pcshop-profile-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.pcshop-profile-info {
    display: flex;
    align-items: flex-end;
    gap: 24px;
    padding: 0 32px 28px;
    margin-top: -50px;
    position: relative;
    z-index: 1;
}
.pcshop-profile-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}
.pcshop-profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    object-fit: cover;
}
.pcshop-profile-avatar-edit {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 30px;
    height: 30px;
    background: var(--pcshop-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    text-decoration: none;
    transition: background 0.2s;
}
.pcshop-profile-avatar-edit:hover {
    background: #e03e3e;
}
.pcshop-profile-text {
    flex: 1;
    padding-bottom: 4px;
}
.pcshop-profile-text h2 {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 700;
    color: #222;
}
.pcshop-profile-email {
    margin: 0 0 4px;
    color: #666;
    font-size: 14px;
}
.pcshop-profile-member {
    margin: 0;
    color: #999;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* --- Stats Cards --- */
.pcshop-profile-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.pcshop-stat-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.pcshop-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.1);
}
.pcshop-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pcshop-stat-icon--red { background: #fff0f0; color: #ff4747; }
.pcshop-stat-icon--green { background: #f0fdf4; color: #16a34a; }
.pcshop-stat-icon--blue { background: #eff6ff; color: #2563eb; }
.pcshop-stat-icon--pink { background: #fdf2f8; color: #db2777; }
.pcshop-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #222;
}
.pcshop-stat-label {
    font-size: 13px;
    color: #888;
}

/* --- Profile Grid --- */
.pcshop-profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.pcshop-profile-grid--edit {
    grid-template-columns: 1fr;
}
.pcshop-profile-section {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}
.pcshop-profile-section--full {
    grid-column: 1 / -1;
}
.pcshop-profile-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.pcshop-profile-section-title {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 600;
    color: #222;
    display: flex;
    align-items: center;
    gap: 8px;
}
.pcshop-profile-section-header .pcshop-profile-section-title {
    margin-bottom: 0;
}
.pcshop-profile-view-all {
    font-size: 13px;
    color: var(--pcshop-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}
.pcshop-profile-view-all:hover {
    text-decoration: underline;
}

/* --- Quick Actions --- */
.pcshop-profile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.pcshop-profile-action {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    text-decoration: none;
    color: #444;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}
.pcshop-profile-action:hover {
    background: #f8f8f8;
}
.pcshop-profile-action-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.pcshop-profile-action-icon--red { background: #fff0f0; color: #ff4747; }
.pcshop-profile-action-icon--blue { background: #eff6ff; color: #2563eb; }
.pcshop-profile-action-icon--green { background: #f0fdf4; color: #16a34a; }
.pcshop-profile-action-icon--gray { background: #f5f5f5; color: #666; }

/* --- Order List --- */
.pcshop-profile-orders {
    display: flex;
    flex-direction: column;
}
.pcshop-profile-orders--full {
    gap: 0;
}
.pcshop-profile-order {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    transition: background 0.15s;
    gap: 12px;
}
.pcshop-profile-order:last-child {
    border-bottom: none;
}
.pcshop-profile-order:hover {
    background: #fafafa;
    margin: 0 -24px;
    padding-left: 24px;
    padding-right: 24px;
}
.pcshop-profile-order-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}
.pcshop-profile-order-items {
    display: flex;
    align-items: center;
    gap: 14px;
}
.pcshop-profile-order-img {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    overflow: hidden;
    background: #f5f5f5;
    flex-shrink: 0;
    position: relative;
    border: 1px solid #eee;
}
.pcshop-profile-order-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pcshop-profile-order-more {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pcshop-profile-order-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.pcshop-profile-order-name {
    font-weight: 600;
    color: #222;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pcshop-profile-order-id {
    font-weight: 500;
    color: #888;
    font-size: 12px;
}
.pcshop-profile-order-date {
    font-size: 12px;
    color: #999;
}
.pcshop-profile-order-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.pcshop-profile-order-total {
    font-weight: 600;
    color: #222;
    font-size: 14px;
}

/* --- Status Badge --- */
.pcshop-status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}
.pcshop-status-badge--completed { background: #f0fdf4; color: #16a34a; }
.pcshop-status-badge--processing { background: #eff6ff; color: #2563eb; }
.pcshop-status-badge--on-hold { background: #fffbeb; color: #d97706; }
.pcshop-status-badge--pending { background: #fff7ed; color: #ea580c; }
.pcshop-status-badge--cancelled { background: #fef2f2; color: #dc2626; }
.pcshop-status-badge--refunded { background: #f5f5f5; color: #666; }
.pcshop-status-badge--failed { background: #fef2f2; color: #dc2626; }

/* --- Empty State --- */
.pcshop-profile-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}
.pcshop-profile-empty svg {
    margin-bottom: 12px;
    opacity: 0.4;
}
.pcshop-profile-empty p {
    margin-bottom: 16px;
    font-size: 14px;
}

/* --- Edit Profile Cards --- */
.pcshop-profile-edit {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.pcshop-edit-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    overflow: hidden;
}
.pcshop-edit-card-header {
    padding: 20px 28px;
    border-bottom: 1px solid #f0f0f0;
}
.pcshop-edit-card-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #222;
    display: flex;
    align-items: center;
    gap: 8px;
}
.pcshop-edit-avatar-section {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 28px;
}
.pcshop-edit-avatar-preview img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f0f0f0;
}
.pcshop-edit-avatar-name {
    font-weight: 600;
    font-size: 16px;
    color: #222;
    margin: 0 0 2px;
}
.pcshop-edit-avatar-email {
    font-size: 14px;
    color: #666;
    margin: 0 0 8px;
}
.pcshop-edit-avatar-hint {
    font-size: 12px;
    color: #999;
    margin: 0;
}

/* --- Edit Form --- */
.pcshop-edit-form {
    padding: 28px;
}
.pcshop-edit-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.pcshop-edit-field {
    margin-bottom: 20px;
}
.pcshop-edit-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
}
.pcshop-edit-field .pcshop-form-input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fafafa;
}
.pcshop-edit-field .pcshop-form-input:focus {
    outline: none;
    border-color: var(--pcshop-primary);
    box-shadow: 0 0 0 3px rgba(255,71,71,0.1);
    background: #fff;
}
.pcshop-edit-field-hint {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}
.pcshop-edit-form-actions {
    padding-top: 4px;
}

/* --- Buttons --- */
.pcshop-btn--primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    background: var(--pcshop-primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}
.pcshop-btn--primary:hover {
    background: #e03e3e;
}
.pcshop-btn--outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    background: #fff;
    color: var(--pcshop-primary);
    border: 1.5px solid var(--pcshop-primary);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}
.pcshop-btn--outline:hover {
    background: var(--pcshop-primary);
    color: #fff;
}
.pcshop-btn--sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* --- Wishlist Grid (inside profile section) --- */
.pcshop-wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.pcshop-wishlist-item {
    background: #fafafa;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.pcshop-wishlist-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.pcshop-wishlist-item-img {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f0f0f0;
}
.pcshop-wishlist-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pcshop-wishlist-item-info {
    padding: 14px;
}
.pcshop-wishlist-item-info h4 {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}
.pcshop-wishlist-item-info h4 a {
    color: #222;
    text-decoration: none;
}
.pcshop-wishlist-item-info h4 a:hover {
    color: var(--pcshop-primary);
}
.pcshop-wishlist-item-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--pcshop-primary);
    margin-bottom: 10px;
}
.pcshop-wishlist-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.pcshop-wishlist-item-actions .button,
.pcshop-wishlist-item-actions .single_add_to_cart_button {
    flex: 1;
    margin: 0;
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 8px;
}
.pcshop-wishlist-remove {
    width: 32px;
    height: 32px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    color: #999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s;
    flex-shrink: 0;
}
.pcshop-wishlist-remove:hover {
    border-color: #dc2626;
    color: #dc2626;
    background: #fef2f2;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .pcshop-profile-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 20px 24px;
    }
    .pcshop-profile-text {
        padding-bottom: 0;
    }
    .pcshop-profile-member {
        justify-content: center;
    }
    .pcshop-profile-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .pcshop-profile-grid {
        grid-template-columns: 1fr;
    }
    .pcshop-profile-actions {
        grid-template-columns: 1fr;
    }
    .pcshop-edit-form-row {
        grid-template-columns: 1fr;
    }
    .pcshop-profile-order {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .pcshop-profile-order-left {
        width: 100%;
    }
    .pcshop-profile-order-img {
        width: 44px;
        height: 44px;
    }
    .pcshop-profile-order-right {
        width: 100%;
        justify-content: space-between;
    }
    .pcshop-wishlist-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

/* ========================================
   CART PAGE
   ======================================== */
.woocommerce-cart-form {
    width: 100%;
}
.pcshop-cart-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px 32px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    margin-bottom: 24px;
}
.pcshop-cart-table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
}
.pcshop-cart-items {
    display: flex;
    flex-direction: column;
}
.pcshop-cart-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #f5f5f5;
}
.pcshop-cart-item:last-child {
    border-bottom: none;
}
.pcshop-cart-item-thumb {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f8f8f8;
    display: block;
}
.pcshop-cart-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pcshop-cart-item-name {
    font-weight: 600;
    color: #222;
    text-decoration: none;
    font-size: 14px;
}
.pcshop-cart-item-name:hover {
    color: var(--pcshop-primary);
}
.pcshop-cart-item .pcshop-cart-col-price {
    font-weight: 600;
    color: #222;
}
.pcshop-qty-wrap {
    display: inline-flex;
    align-items: center;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
}
.pcshop-qty-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    color: #555;
    transition: background 0.2s;
}
.pcshop-qty-btn:hover {
    background: #f0f0f0;
}
.pcshop-qty-wrap input[type="number"] {
    width: 48px;
    height: 36px;
    border: none;
    border-left: 1px solid #e8e8e8;
    border-right: 1px solid #e8e8e8;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    padding: 0;
    -moz-appearance: textfield;
    outline: none;
}
.pcshop-qty-wrap input[type="number"]::-webkit-outer-spin-button,
.pcshop-qty-wrap input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.pcshop-cart-item .pcshop-cart-col-subtotal {
    font-weight: 700;
    color: var(--pcshop-primary);
}
.pcshop-cart-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #fff5f5;
    color: #e74c3c;
    text-decoration: none;
    transition: all 0.2s;
}
.pcshop-cart-remove:hover {
    background: #e74c3c;
    color: #fff;
}
.pcshop-cart-actions {
    width: 100%;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.pcshop-cart-coupon form {
    display: flex;
    gap: 8px;
}
.pcshop-cart-collaterals {
    width: 100%;
    margin-bottom: 24px;
}
.pcshop-cart-collaterals-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 16px;
    color: #222;
}
.woocommerce-cart .cart-subtotal,
.woocommerce-cart .cart-shipping,
.woocommerce-cart .order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}
.woocommerce-cart .order-total {
    border-bottom: none;
    padding-top: 16px;
    border-top: 2px solid #f0f0f0;
}
.woocommerce-cart .order-total .amount,
.woocommerce-cart .cart-subtotal .amount {
    font-weight: 700;
    font-size: 18px;
    color: var(--pcshop-primary);
}
.pcshop-cart-checkout-btn {
    width: 100%;
    margin-bottom: 40px;
}
.pcshop-btn-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}
.pcshop-btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}
.woocommerce-cart .cross-sells,
.woocommerce-cart .cart-collaterals .related {
    display: none;
}
@media (max-width: 768px) {
    .pcshop-cart-table-header {
        display: none;
    }
    .woocommerce-cart-form .cart_item {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 20px 0;
    }
    .woocommerce-cart-form .product-name {
        gap: 12px;
    }
    .woocommerce-cart-form .product-price::before {
        content: 'Price: ';
        font-weight: 400;
        color: #888;
        font-size: 12px;
    }
    .woocommerce-cart-form .product-quantity::before {
        content: 'Qty: ';
        font-weight: 400;
        color: #888;
        font-size: 12px;
    }
    .woocommerce-cart-form .product-subtotal::before {
        content: 'Subtotal: ';
        font-weight: 400;
        color: #888;
        font-size: 12px;
    }
    .woocommerce-cart-form .product-remove {
        position: absolute;
        right: 0;
        top: 0;
    }
    .woocommerce-cart-form .cart_item {
        position: relative;
    }
    .pcshop-cart-actions {
        flex-direction: column;
    }
    .pcshop-cart-coupon form {
        width: 100%;
    }
    .pcshop-cart-coupon .pcshop-input {
        flex: 1;
    }
}

/* ============================================================
   STEP INDICATORS (Cart / Checkout)
   ============================================================ */
.pcshop-steps {
    max-width: 560px;
    margin: 0 auto 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}
.pcshop-step {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: .45;
    transition: opacity .2s;
}
.pcshop-step--active { opacity: 1; }
.pcshop-step__circle {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex; align-items: center; justify-content: center;
    color: #999;
    flex-shrink: 0;
}
.pcshop-step--active .pcshop-step__circle {
    background: var(--pcshop-primary);
    color: #fff;
}
.pcshop-step__circle--done {
    background: #16a34a !important;
    color: #fff !important;
}
.pcshop-step__label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
}
.pcshop-step--active .pcshop-step__label { color: var(--pcshop-dark); }
.pcshop-step__line {
    width: 40px; height: 2px;
    background: #ddd;
    margin: 0 8px;
    flex-shrink: 0;
}
.pcshop-step__line--done { background: #16a34a; }

/* ============================================================
   CART PAGE — MODERN LAYOUT
   ============================================================ */
.woocommerce-cart .woocommerce-cart-form { margin-bottom: 0; }
.woocommerce-cart .woocommerce-notices-wrapper { max-width: 1100px; margin: 0 auto; }

.pcshop-cart-layout {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    align-items: start;
}
@media (max-width: 860px) {
    .pcshop-cart-layout { grid-template-columns: 1fr; }
}

.pcshop-cart-main { display: flex; flex-direction: column; gap: 20px; }
.pcshop-cart-layout .pcshop-cart-sidebar { position: sticky; top: 100px; }

.pcshop-cart-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    overflow: hidden;
}
.pcshop-cart-card__header {
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.pcshop-cart-card__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--pcshop-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.pcshop-cart-card__link {
    font-size: 13px;
    color: var(--pcshop-primary);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color .2s;
}
.pcshop-cart-card__link:hover { color: #d33; }

/* Cart Items */
.pcshop-cart-items { padding: 0; }
.pcshop-cart-item {
    display: grid;
    grid-template-columns: 90px 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
    transition: all .2s ease;
}
.pcshop-cart-item:last-child { border-bottom: none; }
.pcshop-cart-item:hover { background: #fafbfc; }

.pcshop-cart-item__image {
    width: 90px; height: 90px;
    border-radius: 14px;
    overflow: hidden;
    background: #f4f5f7;
    flex-shrink: 0;
    border: 1px solid #eee;
    position: relative;
}
.pcshop-cart-item__image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}
.pcshop-cart-item:hover .pcshop-cart-item__image img { transform: scale(1.05); }

.pcshop-cart-item__details { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pcshop-cart-item__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pcshop-cart-item__name {
    font-weight: 600;
    font-size: 15px;
    color: var(--pcshop-dark);
    text-decoration: none;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pcshop-cart-item__name:hover { color: var(--pcshop-primary); }
.pcshop-cart-item__variants {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    color: #667eea;
    background: rgba(102,126,234,0.08);
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 4px;
    line-height: 1.4;
}
.pcshop-cart-item__price-mobile { display: none; }

.pcshop-cart-item__bottom {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.pcshop-cart-item__unit-price {
    font-size: 13px;
    color: #999;
    background: #f5f5f5;
    padding: 4px 10px;
    border-radius: 6px;
}
.pcshop-cart-item__subtotal {
    font-weight: 700;
    font-size: 16px;
    color: var(--pcshop-primary);
    white-space: nowrap;
}
.pcshop-cart-item__right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}
.pcshop-cart-item__remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    border-radius: 10px;
    color: #ccc;
    transition: all .2s;
    background: transparent;
}
.pcshop-cart-item__remove:hover {
    background: #fef2f2;
    color: #ef4444;
}

@media (max-width: 860px) {
    .pcshop-cart-item { grid-template-columns: 1fr; gap: 12px; padding: 16px 20px; }
    .pcshop-cart-item__image { width: 100%; height: 200px; border-radius: 14px; }
    .pcshop-cart-item__top { flex-direction: column; gap: 4px; }
    .pcshop-cart-item__price-mobile { display: block; font-size: 16px; font-weight: 700; color: var(--pcshop-primary); }
    .pcshop-cart-item__unit-price { display: none; }
    .pcshop-cart-item__bottom { margin-top: 0; }
    .pcshop-cart-item__right { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; }
    .pcshop-cart-item__subtotal { font-size: 18px; }
}
}

/* Quantity Control (Cart) */
.woocommerce-cart .pcshop-qty-wrap {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}
.woocommerce-cart .pcshop-qty-btn {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: transparent;
    border: none;
    font-size: 18px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all .15s;
}
.woocommerce-cart .pcshop-qty-btn:hover {
    background: var(--pcshop-primary);
    color: #fff;
}
.woocommerce-cart .pcshop-qty-wrap input[type="number"] {
    width: 48px;
    height: 36px;
    border: none;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: var(--pcshop-dark);
    background: transparent;
    -moz-appearance: textfield;
    padding: 0;
}
.woocommerce-cart .pcshop-qty-wrap input::-webkit-outer-spin-button,
.woocommerce-cart .pcshop-qty-wrap input::-webkit-inner-spin-button {
    -webkit-appearance: none; margin: 0;
}

/* Coupon Toggle */
.pcshop-cart-coupon-card { padding: 20px 24px; }
.pcshop-coupon-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #666;
    font-size: 14px;
}
.pcshop-coupon-expand-btn {
    background: none; border: none;
    color: var(--pcshop-primary);
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    margin-left: 4px;
    padding: 0;
}
.pcshop-coupon-expand-btn:hover { color: #d33; }
.pcshop-coupon-form-wrap { padding-top: 16px; }
.pcshop-coupon-form-wrap .woocommerce-cart-coupon-form { width: 100%; }
.pcshop-coupon-input-group {
    display: flex;
    gap: 8px;
}
.pcshop-coupon-input {
    flex: 1;
    padding: 12px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: border .2s;
}
.pcshop-coupon-input:focus { border-color: var(--pcshop-primary); }
.pcshop-coupon-apply-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 12px 20px;
    background: var(--pcshop-primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
    white-space: nowrap;
}
.pcshop-coupon-apply-btn:hover { background: #d33; }

/* Cart Summary (Sidebar) */
.pcshop-cart-summary {
    padding: 24px;
}
.pcshop-cart-summary__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--pcshop-dark);
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}
.pcshop-cart-summary__rows { display: flex; flex-direction: column; gap: 0; }
.pcshop-cart-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 14px;
    color: #666;
}
.pcshop-cart-summary__row--discount { color: #16a34a; }
.pcshop-cart-summary__free {
    background: #ecfdf5;
    color: #16a34a;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 13px;
}
.pcshop-cart-summary__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0 0;
    margin-top: 8px;
    border-top: 2px solid #f0f0f0;
    font-size: 16px;
    font-weight: 700;
    color: var(--pcshop-dark);
}
.pcshop-cart-summary__total-value {
    font-size: 22px;
    color: var(--pcshop-primary);
}
.pcshop-cart-checkout-btn {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    background: var(--pcshop-primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s, transform .15s;
    width: 100%;
}
.pcshop-cart-checkout-btn:hover {
    background: #d33;
    color: #fff;
    transform: translateY(-1px);
}
.pcshop-cart-summary__secure {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* ============================================================
   CHECKOUT PAGE — MODERN LAYOUT
   ============================================================ */
.pcshop-checkout-layout {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 24px;
    align-items: start;
}
@media (max-width: 860px) {
    .pcshop-checkout-layout { grid-template-columns: 1fr; }
    .pcshop-checkout-sidebar { order: -1; }
}
.pcshop-checkout-main { display: flex; flex-direction: column; gap: 20px; }
.pcshop-checkout-form { border: none; padding: 0; background: transparent; box-shadow: none; }

.pcshop-checkout-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    overflow: hidden;
}
.pcshop-checkout-card__header {
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 12px;
}
.pcshop-checkout-card__number {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--pcshop-primary);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}
.pcshop-checkout-card__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--pcshop-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.pcshop-checkout-card__body { padding: 24px; }

.pcshop-checkout-login-notice {
    max-width: 1100px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: #fff7ed;
    border-radius: 12px;
    color: #92400e;
    font-size: 14px;
}
.pcshop-checkout-login-notice a {
    color: var(--pcshop-primary);
    font-weight: 600;
    text-decoration: none;
    margin-left: auto;
}

/* WooCommerce form fields inside checkout */
.pcshop-checkout-card__body .form-row { margin-bottom: 16px; }
.pcshop-checkout-card__body label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
}
.pcshop-checkout-card__body label .required {
    color: var(--pcshop-primary);
    text-decoration: none;
}
.pcshop-checkout-card__body input[type="text"],
.pcshop-checkout-card__body input[type="email"],
.pcshop-checkout-card__body input[type="tel"],
.pcshop-checkout-card__body input[type="number"],
.pcshop-checkout-card__body select,
.pcshop-checkout-card__body textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    color: var(--pcshop-dark);
    background: #fff;
    outline: none;
    transition: border .2s, box-shadow .2s;
    box-sizing: border-box;
}
.pcshop-checkout-card__body input:focus,
.pcshop-checkout-card__body select:focus,
.pcshop-checkout-card__body textarea:focus {
    border-color: var(--pcshop-primary);
    box-shadow: 0 0 0 3px rgba(255,71,71,.1);
}
.pcshop-checkout-card__body .col-1,
.pcshop-checkout-card__body .col-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 860px) {
    .pcshop-checkout-card__body .col-1,
    .pcshop-checkout-card__body .col-2 { grid-template-columns: 1fr; }
}

/* Checkout Summary Card (Sidebar) */
.pcshop-checkout-summary-card {
    position: sticky;
    top: 100px;
}
.pcshop-checkout-summary-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.pcshop-checkout-summary-badge {
    background: var(--pcshop-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
}
.pcshop-checkout-summary-items {
    padding: 16px 24px;
    max-height: 280px;
    overflow-y: auto;
    border-bottom: 1px solid #f5f5f5;
}
.pcshop-checkout-summary-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #f8f8f8;
}
.pcshop-checkout-summary-item:last-child { border-bottom: none; }
.pcshop-checkout-summary-item__image {
    width: 56px; height: 56px;
    border-radius: 10px;
    overflow: hidden;
    background: #f9f9f9;
    flex-shrink: 0;
    position: relative;
}
.pcshop-checkout-summary-item__image img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.pcshop-checkout-summary-item__qty {
    position: absolute;
    bottom: -4px; right: -4px;
    background: var(--pcshop-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    width: 20px; height: 20px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid #fff;
}
.pcshop-checkout-summary-item__info { flex: 1; min-width: 0; }
.pcshop-checkout-summary-item__name {
    font-size: 13px;
    font-weight: 600;
    color: var(--pcshop-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}
.pcshop-checkout-summary-item__price {
    font-size: 14px;
    font-weight: 600;
    color: var(--pcshop-primary);
    white-space: nowrap;
}

/* Checkout Coupon */
.pcshop-checkout-summary-coupon {
    padding: 12px 24px;
    border-bottom: 1px solid #f5f5f5;
}
.pcshop-checkout-summary-coupon .pcshop-coupon-toggle { font-size: 13px; }
.pcshop-checkout-summary-coupon .pcshop-coupon-form-wrap { padding-top: 10px; }
.pcshop-checkout-summary-coupon .pcshop-coupon-input-group { gap: 6px; }
.pcshop-checkout-summary-coupon .pcshop-coupon-input { padding: 10px 14px; font-size: 13px; }
.pcshop-checkout-summary-coupon .pcshop-coupon-apply-btn { padding: 10px 16px; font-size: 13px; }

/* Checkout Totals */
.pcshop-checkout-summary-totals { padding: 16px 24px; }
.pcshop-checkout-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    color: #666;
}
.pcshop-checkout-summary-row--discount { color: #16a34a; }
.pcshop-checkout-summary-row--total {
    padding-top: 12px;
    margin-top: 4px;
    border-top: 2px solid #f0f0f0;
    font-size: 16px;
    font-weight: 700;
    color: var(--pcshop-dark);
}
.pcshop-checkout-summary-row--total span:last-child {
    font-size: 20px;
    color: var(--pcshop-primary);
}

/* Payment Methods */
.pcshop-checkout-summary-payment {
    padding: 16px 24px;
    border-top: 1px solid #f5f5f5;
}
.pcshop-checkout-summary-payment h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--pcshop-dark);
    margin: 0 0 12px;
}
.pcshop-payment-methods {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.pcshop-payment-method {
    padding: 12px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    transition: all .2s;
}
.pcshop-payment-method.active {
    border-color: var(--pcshop-primary);
    background: #fff5f5;
}
.pcshop-payment-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--pcshop-dark);
    margin: 0;
}
.pcshop-payment-label input[type="radio"] { display: none; }
.pcshop-payment-radio {
    width: 18px; height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    transition: border .2s;
}
.pcshop-payment-method.active .pcshop-payment-radio {
    border-color: var(--pcshop-primary);
}
.pcshop-payment-method.active .pcshop-payment-radio::after {
    content: '';
    position: absolute;
    top: 3px; left: 3px;
    width: 8px; height: 8px;
    background: var(--pcshop-primary);
    border-radius: 50%;
}
.pcshop-payment-description {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
    padding-left: 28px;
}
.pcshop-payment-fields {
    margin-top: 12px;
    padding-left: 28px;
}
.pcshop-payment-fields input[type="text"] {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    outline: none;
}
.pcshop-payment-fields input:focus {
    border-color: var(--pcshop-primary);
}

/* Place Order Button */
.pcshop-checkout-summary-place {
    padding: 20px 24px;
    border-top: 1px solid #f5f5f5;
}
.pcshop-place-order-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    background: linear-gradient(135deg, var(--pcshop-primary) 0%, #d33 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .15s, box-shadow .2s;
    width: 100%;
}
.pcshop-place-order-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255,71,71,.3);
    color: #fff;
}
.pcshop-checkout-summary-secure {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* ============================================================
   EDIT-ADDRESS / ADDRESS DISPLAY COMPONENTS
   ============================================================ */
.pcshop-address-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 860px) {
    .pcshop-address-grid { grid-template-columns: 1fr; }
}
.pcshop-address-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    overflow: hidden;
}
.pcshop-address-card__header {
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.pcshop-address-card__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--pcshop-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.pcshop-address-card__toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: transparent;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all .2s;
}
.pcshop-address-card__toggle:hover {
    border-color: var(--pcshop-primary);
    color: var(--pcshop-primary);
}
.pcshop-address-card__body { padding: 24px; }

.pcshop-address-display__row {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px solid #f8f8f8;
}
.pcshop-address-display__row:last-child { border-bottom: none; }
.pcshop-address-display__label {
    width: 120px;
    font-size: 13px;
    font-weight: 600;
    color: #888;
    flex-shrink: 0;
}
.pcshop-address-display__value {
    font-size: 14px;
    color: var(--pcshop-dark);
    font-weight: 500;
}
.pcshop-address-display__value--empty {
    color: #ccc;
    font-style: italic;
    font-weight: 400;
}

.pcshop-address-edit-wrap { display: none; }
.pcshop-address-edit-wrap.active { display: block; }

.pcshop-address-form__actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}
.pcshop-address-form__actions .pcshop-btn--save {
    padding: 10px 24px;
    background: var(--pcshop-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}
.pcshop-address-form__actions .pcshop-btn--save:hover { background: #d33; }
.pcshop-address-form__actions .pcshop-btn--cancel {
    padding: 10px 24px;
    background: transparent;
    color: #666;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
}
.pcshop-address-form__actions .pcshop-btn--cancel:hover {
    border-color: #999;
    color: #333;
}

.pcshop-profile-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 14px;
}
.pcshop-profile-empty svg {
    display: block;
    margin: 0 auto 12px;
    opacity: .4;
}
.pcshop-profile-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}
.pcshop-profile-section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--pcshop-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ============================================================
   THANKYOU / ORDER-RECEIVED PAGE
   ============================================================ */
.pcshop-thankyou-layout {
    width: 100%;
}
.pcshop-thankyou-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    overflow: hidden;
    margin-bottom: 24px;
}
.pcshop-thankyou-card__header {
    padding: 32px 24px;
    text-align: center;
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
    border-bottom: 1px solid #d1fae5;
}
.pcshop-thankyou-check {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: #16a34a;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
}
.pcshop-thankyou-card__title {
    font-size: 24px;
    font-weight: 700;
    color: var(--pcshop-dark);
    margin: 0 0 8px;
}
.pcshop-thankyou-card__subtitle {
    font-size: 14px;
    color: #666;
    margin: 0;
}
.pcshop-thankyou-card__subtitle strong {
    color: var(--pcshop-primary);
}
.pcshop-thankyou-card__body { padding: 24px; }

.pcshop-thankyou-info__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f8f8f8;
    font-size: 14px;
}
.pcshop-thankyou-info__row:last-child { border-bottom: none; }
.pcshop-thankyou-info__label { color: #888; font-weight: 500; }
.pcshop-thankyou-info__value { color: var(--pcshop-dark); font-weight: 600; }

.pcshop-thankyou-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.pcshop-thankyou-actions a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
}
.pcshop-thankyou-actions .pcshop-btn--primary {
    background: var(--pcshop-primary);
    color: #fff;
}
.pcshop-thankyou-actions .pcshop-btn--primary:hover {
    background: #d33;
    color: #fff;
}
.pcshop-thankyou-actions .pcshop-btn--secondary {
    background: transparent;
    color: #666;
    border: 1.5px solid #e5e7eb;
}
.pcshop-thankyou-actions .pcshop-btn--secondary:hover {
    border-color: var(--pcshop-primary);
    color: var(--pcshop-primary);
}

/* ============================================================
   VIEW ORDER — MODERN LAYOUT
   ============================================================ */

/* Back Link */
.pcshop-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    text-decoration: none;
    margin-bottom: 20px;
    padding: 8px 16px;
    border-radius: 10px;
    transition: all .2s;
    background: #fff;
    border: 1px solid #eee;
}
.pcshop-back-link:hover { color: var(--pcshop-primary); border-color: var(--pcshop-primary); }

/* Order Header */
.pcshop-order-header {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0,0,0,.06);
    padding: 28px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}
.pcshop-order-header__left {
    display: flex;
    align-items: center;
    gap: 16px;
}
.pcshop-order-header__icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--pcshop-primary), #ff6b6b);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.pcshop-order-header__title {
    font-size: 24px;
    font-weight: 800;
    color: var(--pcshop-dark);
    margin: 0;
}
.pcshop-order-header__date {
    font-size: 13px;
    color: #999;
    margin: 4px 0 0;
}
.pcshop-order-header__right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Status Badge */
.pcshop-order-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.pcshop-order-status-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    animation: pcshop-pulse 2s infinite;
}
@keyframes pcshop-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Order Progress */
.pcshop-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0,0,0,.06);
    overflow: hidden;
    margin-bottom: 20px;
}
.pcshop-card__header {
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.pcshop-card__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--pcshop-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pcshop-order-progress {
    padding: 32px 24px;
}
.pcshop-order-progress__track {
    height: 6px;
    background: #f0f0f0;
    border-radius: 10px;
    margin-bottom: 24px;
    overflow: hidden;
}
.pcshop-order-progress__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--pcshop-primary), #ff6b6b);
    border-radius: 10px;
    transition: width 0.6s ease;
}
.pcshop-order-progress__steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}
.pcshop-order-progress__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
}
.pcshop-order-progress__step-circle {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: #f5f5f5;
    color: #bbb;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s ease;
    border: 3px solid #f0f0f0;
}
.pcshop-order-progress__step--done .pcshop-order-progress__step-circle {
    background: linear-gradient(135deg, var(--pcshop-primary), #ff6b6b);
    color: #fff;
    border-color: var(--pcshop-primary);
    box-shadow: 0 4px 12px rgba(255,71,71,.3);
}
.pcshop-order-progress__step--current .pcshop-order-progress__step-circle {
    background: #fff;
    color: var(--pcshop-primary);
    border-color: var(--pcshop-primary);
    box-shadow: 0 0 0 4px rgba(255,71,71,.15);
}
.pcshop-order-progress__step-label {
    font-size: 12px;
    font-weight: 600;
    color: #bbb;
    text-align: center;
}
.pcshop-order-progress__step--done .pcshop-order-progress__step-label,
.pcshop-order-progress__step--current .pcshop-order-progress__step-label {
    color: var(--pcshop-dark);
}

/* Tracking */
.pcshop-tracking-info {
    padding: 20px 24px;
}
.pcshop-tracking-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f8f8f8;
}
.pcshop-tracking-row:last-child { border-bottom: none; }
.pcshop-tracking-label {
    font-size: 13px;
    color: #999;
    font-weight: 500;
}
.pcshop-tracking-value {
    font-size: 14px;
    color: var(--pcshop-dark);
    font-weight: 600;
}
.pcshop-tracking-number {
    font-family: 'SF Mono', 'Fira Code', monospace;
    background: #f5f5f5;
    padding: 4px 12px;
    border-radius: 6px;
    letter-spacing: 1px;
}

/* Order Details Grid */
.pcshop-order-details-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 20px;
    align-items: start;
}
@media (max-width: 900px) {
    .pcshop-order-details-grid { grid-template-columns: 1fr; }
}

/* Order Items */
.pcshop-order-items-count {
    font-size: 13px;
    color: #999;
    font-weight: 500;
}
.pcshop-order-items-list {
    padding: 0;
}
.pcshop-order-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    border-bottom: 1px solid #f5f5f5;
    transition: background .15s;
}
.pcshop-order-item:last-child { border-bottom: none; }
.pcshop-order-item:hover { background: #fafbfc; }
.pcshop-order-item__image {
    width: 64px; height: 64px;
    border-radius: 12px;
    overflow: hidden;
    background: #f4f5f7;
    flex-shrink: 0;
    border: 1px solid #eee;
    position: relative;
}
.pcshop-order-item__image img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.pcshop-order-item__qty {
    position: absolute;
    bottom: -4px; right: -4px;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--pcshop-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}
.pcshop-order-item__placeholder {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
}
.pcshop-order-item__info { flex: 1; min-width: 0; }
.pcshop-order-item__name {
    font-weight: 600;
    font-size: 14px;
    color: var(--pcshop-dark);
    margin-bottom: 4px;
    line-height: 1.3;
}
.pcshop-order-item__sku {
    font-size: 12px;
    color: #999;
}
.pcshop-order-item__price {
    font-weight: 700;
    font-size: 15px;
    color: var(--pcshop-dark);
    white-space: nowrap;
}

/* Order Totals */
.pcshop-order-totals {
    padding: 20px 24px;
    background: #fafbfc;
    border-top: 1px solid #f0f0f0;
}
.pcshop-order-totals__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    color: #666;
}
.pcshop-order-totals__row--discount { color: #16a34a; }
.pcshop-order-totals__row--total {
    padding-top: 12px;
    margin-top: 8px;
    border-top: 2px solid #e5e7eb;
    font-size: 18px;
    font-weight: 800;
    color: var(--pcshop-dark);
}

/* Order Sidebar */
.pcshop-order-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.pcshop-order-sidebar .pcshop-card {
    margin-bottom: 0;
}

/* Order Info List */
.pcshop-order-info-list {
    padding: 8px 24px 16px;
}
.pcshop-order-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f8f8f8;
}
.pcshop-order-info-row:last-child { border-bottom: none; }
.pcshop-order-info-label {
    font-size: 13px;
    color: #999;
    font-weight: 500;
}
.pcshop-order-info-value {
    font-size: 14px;
    color: var(--pcshop-dark);
    font-weight: 600;
}

/* Order Address */
.pcshop-order-address {
    padding: 8px 24px 16px;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}
.pcshop-order-address__detail {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 13px;
}
.pcshop-order-address__detail a {
    color: var(--pcshop-primary);
    text-decoration: none;
}
.pcshop-order-address__detail a:hover { text-decoration: underline; }

/* Order Note */
.pcshop-order-note {
    padding: 16px 24px;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    background: #fffbe6;
    border-left: 3px solid #faad14;
    margin: 8px 24px 16px;
    border-radius: 0 8px 8px 0;
}

/* Order Notes List */
.pcshop-order-notes-count {
    background: #f0f0f0;
    color: #666;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}
.pcshop-order-notes-list {
    padding: 0;
}
.pcshop-order-note-item {
    padding: 16px 24px;
    border-bottom: 1px solid #f5f5f5;
    transition: background .15s;
}
.pcshop-order-note-item:last-child { border-bottom: none; }
.pcshop-order-note-item:hover { background: #fafbfc; }
.pcshop-order-note-item__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}
.pcshop-order-note-item__author {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--pcshop-dark);
}
.pcshop-order-note-item__date {
    font-size: 12px;
    color: #999;
}
.pcshop-order-note-item__content {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}
.pcshop-order-note-item__content p {
    margin: 0 0 8px;
}
.pcshop-order-note-item__content p:last-child {
    margin-bottom: 0;
}

/* Confirm Order Section */
.pcshop-order-confirm-section {
    margin-top: 24px;
}

/* --- Payment Methods (Account) --- */
.pcshop-payment-methods-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.pcshop-payment-method-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #fafbfc;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    transition: all 0.2s;
}
.pcshop-payment-method-card:hover {
    background: #f5f6f8;
    border-color: #e0e0e0;
}
.pcshop-payment-method-card__icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--pcshop-primary);
}
.pcshop-payment-method-card__info {
    flex: 1;
    min-width: 0;
}
.pcshop-payment-method-card__title {
    display: block;
    font-weight: 600;
    font-size: 15px;
    color: #222;
    margin-bottom: 2px;
}
.pcshop-payment-method-card__desc {
    display: block;
    font-size: 13px;
    color: #888;
}
.pcshop-order-confirm-card {
    overflow: hidden;
    border: 2px solid #e6f7ff;
    background: linear-gradient(135deg, #f0f9ff 0%, #fff 100%);
}
.pcshop-order-confirm-body {
    padding: 32px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.pcshop-order-confirm-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1890ff, #40a9ff);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.pcshop-order-confirm-text { flex: 1; min-width: 200px; }
.pcshop-order-confirm-text h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--pcshop-dark);
    margin: 0 0 6px;
}
.pcshop-order-confirm-text p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}
.pcshop-confirm-order-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #52c41a, #73d13d);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all .3s;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(82,196,26,.3);
}
.pcshop-confirm-order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(82,196,26,.4);
}
.pcshop-confirm-order-btn:disabled {
    opacity: .7;
    cursor: not-allowed;
    transform: none;
}
.pcshop-order-confirmed {
    border-color: #b7eb8f;
    background: linear-gradient(135deg, #f6ffed 0%, #fff 100%);
}
.pcshop-order-confirmed .pcshop-order-confirm-icon {
    background: linear-gradient(135deg, #52c41a, #73d13d);
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (max-width: 600px) {
    .pcshop-order-confirm-body {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
    }
    .pcshop-order-confirm-icon { width: 52px; height: 52px; }
}

/* Profile Avatar Upload */
.pcshop-edit-avatar-section {
    flex-wrap: wrap;
}
.pcshop-edit-avatar-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.pcshop-btn-text {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 13px;
    text-decoration: underline;
}
.pcshop-btn-text:hover {
    opacity: 0.8;
}
.pcshop-btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}
