:root {
    --pv-bg-base: #0f172a;
    --pv-bg-card: rgba(30, 41, 59, 0.7);
    --pv-bg-input: rgba(15, 23, 42, 0.6);
    --pv-text-main: #f8fafc;
    --pv-text-muted: #94a3b8;
    --pv-text-placeholder: #64748b;
    --pv-accent: #38bdf8;
    --pv-accent-hover: #0ea5e9;
    --pv-accent-glow: rgba(56, 189, 248, 0.15);
    --pv-success: #34d399;
    --pv-success-bg: rgba(52, 211, 153, 0.1);
    --pv-warning: #fbbf24;
    --pv-danger: #f87171;
    --pv-border: rgba(255, 255, 255, 0.08);
    --pv-border-focus: rgba(56, 189, 248, 0.5);
    --pv-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --pv-radius: 1rem;
    --pv-radius-sm: 0.75rem;
}

.printful-vendor-wrapper {
    font-family: 'Outfit', sans-serif;
    background: transparent;
    color: var(--pv-text-main);
    line-height: 1.6;
    position: relative;
    padding: 0;
    border-radius: var(--pv-radius);
    overflow: visible;
}

.printful-vendor-wrapper * {
    box-sizing: border-box;
}

.pv-content {
    position: relative;
    z-index: 1;
}

/* ──── PAGE HEADER ──── */
.pv-header {
    text-align: center;
    margin-bottom: 3rem;
}
.pv-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f8fafc, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}
.pv-header p {
    color: var(--pv-text-muted);
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto;
}

/* ──── FORM LAYOUT ──── */
.pv-form-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.pv-form-panel {
    background: var(--pv-bg-card);
    border: 1px solid var(--pv-border);
    border-radius: 1.5rem;
    padding: 2rem;
    backdrop-filter: blur(16px);
    animation: pvFadeSlideUp 0.5s ease-out forwards;
    opacity: 0;
}
.pv-form-panel:nth-child(2) { animation-delay: 0.1s; }

.pv-panel-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--pv-text-main);
}
.pv-panel-title .icon {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--pv-accent), #818cf8);
    border-radius: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.pv-panel-title .icon svg {
    width: 18px; height: 18px;
    stroke: white;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ──── FORM FIELDS ──── */
.pv-form-group {
    margin-bottom: 1.5rem;
}
.pv-form-group:last-child { margin-bottom: 0; }

.pv-form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--pv-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
}
.pv-form-label .required {
    color: var(--pv-danger);
    margin-left: 2px;
}

.pv-form-input,
.pv-form-textarea,
.pv-form-select {
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--pv-bg-input);
    border: 1.5px solid var(--pv-border);
    border-radius: var(--pv-radius-sm);
    color: var(--pv-text-main);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    outline: none;
}
.pv-form-input::placeholder,
.pv-form-textarea::placeholder {
    color: var(--pv-text-placeholder);
}
.pv-form-input:focus,
.pv-form-textarea:focus,
.pv-form-select:focus {
    border-color: var(--pv-border-focus);
    box-shadow: 0 0 0 3px var(--pv-accent-glow);
    background: rgba(15, 23, 42, 0.8);
}

.pv-form-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

/* ──── PRODUCT SEARCH / DROPDOWN ──── */
.pv-product-selector {
    position: relative;
}

.pv-product-search-input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.75rem;
    background: var(--pv-bg-input);
    border: 1.5px solid var(--pv-border);
    border-radius: var(--pv-radius-sm);
    color: var(--pv-text-main);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    outline: none;
}
.pv-product-search-input::placeholder {
    color: var(--pv-text-placeholder);
}
.pv-product-search-input:focus {
    border-color: var(--pv-border-focus);
    box-shadow: 0 0 0 3px var(--pv-accent-glow);
    background: rgba(15, 23, 42, 0.8);
}

.pv-search-icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--pv-text-placeholder);
    z-index: 3;
}
.pv-search-icon svg {
    width: 16px; height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pv-product-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0; right: 0;
    background: rgba(15, 23, 42, 0.97);
    border: 1.5px solid var(--pv-border-focus);
    border-radius: var(--pv-radius-sm);
    max-height: 340px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    display: none;
    backdrop-filter: blur(20px);
}
.pv-product-dropdown.open { display: block; }

.pv-product-dropdown::-webkit-scrollbar { width: 6px; }
.pv-product-dropdown::-webkit-scrollbar-track { background: transparent; }
.pv-product-dropdown::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.pv-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.pv-dropdown-item:last-child { border-bottom: none; }
.pv-dropdown-item:hover,
.pv-dropdown-item.active {
    background: rgba(56, 189, 248, 0.08);
}
.pv-dropdown-item img {
    width: 44px; height: 44px;
    border-radius: 0.5rem;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    flex-shrink: 0;
}
.pv-dropdown-item-info {
    flex: 1;
    min-width: 0;
}
.pv-dropdown-item-title {
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pv-dropdown-item-type {
    font-size: 0.75rem;
    color: var(--pv-text-muted);
}

.pv-dropdown-empty {
    padding: 1.5rem;
    text-align: center;
    color: var(--pv-text-muted);
    font-size: 0.9rem;
}

/* ──── SELECTED PRODUCT PREVIEW ──── */
.pv-selected-product {
    display: none;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--pv-success-bg);
    border: 1.5px solid rgba(52, 211, 153, 0.25);
    border-radius: var(--pv-radius-sm);
    margin-top: 0.75rem;
    animation: pvFadeSlideUp 0.3s ease-out;
}
.pv-selected-product.visible { display: flex; }

.pv-selected-product img {
    width: 56px; height: 56px;
    border-radius: 0.6rem;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
}
.pv-selected-product-info { flex: 1; min-width: 0; }
.pv-selected-product-info .name {
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pv-selected-product-info .type {
    font-size: 0.8rem;
    color: var(--pv-success);
}
.pv-selected-product .remove-btn {
    background: none;
    border: none;
    color: var(--pv-text-muted);
    cursor: pointer;
    padding: 0.35rem;
    border-radius: 0.4rem;
    transition: all 0.2s;
    display: flex;
}
.pv-selected-product .remove-btn:hover {
    background: rgba(248, 113, 113, 0.15);
    color: var(--pv-danger);
}

/* ──── IMAGE UPLOAD ──── */
.pv-upload-area {
    border: 2px dashed var(--pv-border);
    border-radius: var(--pv-radius);
    padding: 2.5rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.pv-upload-area:hover,
.pv-upload-area.dragover {
    border-color: var(--pv-accent);
    background: var(--pv-accent-glow);
}
.pv-upload-area .pv-upload-icon {
    width: 56px; height: 56px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(129, 140, 248, 0.15));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}
.pv-upload-area:hover .pv-upload-icon { transform: scale(1.08); }
.pv-upload-area .pv-upload-icon svg {
    width: 24px; height: 24px;
    stroke: var(--pv-accent);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.pv-upload-area .pv-upload-text {
    font-size: 0.95rem;
    color: var(--pv-text-muted);
    margin-bottom: 0.35rem;
}
.pv-upload-area .pv-upload-text strong {
    color: var(--pv-accent);
}
.pv-upload-area .pv-upload-hint {
    font-size: 0.8rem;
    color: var(--pv-text-placeholder);
}
.pv-upload-area input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

/* Preview Grid */
.pv-image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}
.pv-image-preview-grid:empty { display: none; }
.pv-image-preview-item {
    position: relative;
    border-radius: var(--pv-radius-sm);
    overflow: hidden;
    border: 1.5px solid var(--pv-border);
    animation: pvFadeSlideUp 0.3s ease;
    aspect-ratio: 1;
    background: rgba(0, 0, 0, 0.3);
}
.pv-image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.pv-image-preview-item .remove-preview {
    position: absolute;
    top: 0.35rem; right: 0.35rem;
    width: 24px; height: 24px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid var(--pv-border);
    border-radius: 0.4rem;
    color: var(--pv-text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}
.pv-image-preview-item .remove-preview:hover {
    background: rgba(248, 113, 113, 0.3);
    border-color: var(--pv-danger);
}
.pv-image-preview-item .image-badge {
    position: absolute;
    bottom: 0.35rem; left: 0.35rem;
    background: rgba(15, 23, 42, 0.8);
    color: var(--pv-text-muted);
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.15rem 0.4rem;
    border-radius: 0.3rem;
    backdrop-filter: blur(4px);
}
.pv-upload-count {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--pv-text-muted);
}
.pv-upload-count strong {
    color: var(--pv-accent);
}

/* ──── PRICE INPUT ──── */
.pv-price-input-wrap {
    position: relative;
}
.pv-price-input-wrap .currency-sign {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--pv-text-muted);
    font-weight: 600;
    font-size: 1rem;
    pointer-events: none;
}
.pv-price-input-wrap .pv-form-input {
    padding-left: 2rem;
}

/* ──── SUBMIT ──── */
.pv-form-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 0.5rem;
    animation: pvFadeSlideUp 0.5s ease-out 0.2s forwards;
    opacity: 0;
}

.pv-btn-secondary {
    padding: 0.85rem 1.5rem;
    background: transparent;
    border: 1.5px solid var(--pv-border);
    border-radius: var(--pv-radius-sm);
    color: var(--pv-text-muted);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
}
.pv-btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--pv-text-main);
    background: rgba(255, 255, 255, 0.03);
}

.pv-btn-primary {
    padding: 0.85rem 2rem;
    background: linear-gradient(135deg, var(--pv-accent), #818cf8);
    border: none;
    border-radius: var(--pv-radius-sm);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.25);
    position: relative;
    overflow: hidden;
}
.pv-btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}
.pv-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.35);
}
.pv-btn-primary:hover::before { opacity: 1; }
.pv-btn-primary:active { transform: translateY(0); }

.pv-btn-primary svg {
    width: 18px; height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ──── SUCCESS TOAST ──── */
.pv-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(15, 23, 42, 0.95);
    border: 1.5px solid rgba(52, 211, 153, 0.3);
    border-radius: var(--pv-radius);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(14px);
    transform: translateY(120%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}
.pv-toast.show { transform: translateY(0); }
.pv-toast .pv-toast-icon {
    width: 32px; height: 32px;
    background: var(--pv-success-bg);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.pv-toast .pv-toast-icon svg {
    width: 16px; height: 16px;
    stroke: var(--pv-success);
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.pv-toast .pv-toast-msg {
    font-size: 0.9rem;
    font-weight: 500;
}

.pv-error-msg {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    text-align: center;
    margin-bottom: 2rem;
    backdrop-filter: blur(4px);
}

/* ──── PRODUCT DETAILS PANEL ──── */
.pv-detail-panel {
    display: none;
    grid-column: 1 / -1;
    background: var(--pv-bg-card);
    border: 1px solid var(--pv-border);
    border-radius: 1.5rem;
    padding: 2rem;
    backdrop-filter: blur(16px);
    animation: pvFadeSlideUp 0.4s ease-out forwards;
}
.pv-detail-panel.visible {
    display: block;
}
.pv-detail-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 3rem 1rem;
    color: var(--pv-text-muted);
    font-size: 0.95rem;
}
.pv-detail-loading svg {
    animation: pvSpin 0.8s linear infinite;
}
.pv-detail-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--pv-border);
}
.pv-detail-header img {
    width: 100px;
    height: 100px;
    border-radius: 1rem;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.04);
    padding: 8px;
    flex-shrink: 0;
}
.pv-detail-header-info {
    flex: 1;
    min-width: 0;
}
.pv-detail-header-info h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--pv-text-main);
    margin: 0 0 0.35rem;
    line-height: 1.3;
}
.pv-detail-header-info .pv-detail-brand {
    font-size: 0.85rem;
    color: var(--pv-text-muted);
    margin-bottom: 0.75rem;
}
.pv-detail-meta-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.pv-detail-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.7rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--pv-border);
    border-radius: 2rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--pv-text-muted);
}
.pv-detail-chip .chip-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}
.pv-detail-chip.accent { color: var(--pv-accent); border-color: rgba(56, 189, 248, 0.2); background: rgba(56, 189, 248, 0.06); }
.pv-detail-chip.success { color: var(--pv-success); border-color: rgba(52, 211, 153, 0.2); background: rgba(52, 211, 153, 0.06); }
.pv-detail-chip.warning { color: var(--pv-warning); border-color: rgba(251, 191, 36, 0.2); background: rgba(251, 191, 36, 0.06); }

/* Detail sections */
.pv-detail-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.pv-detail-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--pv-border);
    border-radius: 1rem;
    padding: 1.25rem;
}
.pv-detail-section-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--pv-text-muted);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.pv-detail-section-title svg {
    width: 16px;
    height: 16px;
    stroke: var(--pv-accent);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Price range */
.pv-price-range {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.pv-price-range .pv-price-big {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--pv-accent), #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.pv-price-range .pv-price-sep {
    color: var(--pv-text-placeholder);
    font-size: 1rem;
}
.pv-price-range .pv-price-label {
    font-size: 0.8rem;
    color: var(--pv-text-muted);
}

/* Colors grid */
.pv-colors-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.pv-color-swatch {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.12);
    cursor: default;
    transition: transform 0.15s, border-color 0.15s;
}
.pv-color-swatch:hover {
    transform: scale(1.15);
    border-color: var(--pv-accent);
}
.pv-color-swatch .swatch-tooltip {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.95);
    color: var(--pv-text-main);
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.3rem 0.5rem;
    border-radius: 0.4rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s;
    z-index: 10;
}
.pv-color-swatch:hover .swatch-tooltip {
    opacity: 1;
}

/* Sizes */
.pv-sizes-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.pv-size-badge {
    padding: 0.35rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--pv-border);
    border-radius: 0.5rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--pv-text-main);
    transition: all 0.15s;
}
.pv-size-badge:hover {
    background: rgba(56, 189, 248, 0.08);
    border-color: rgba(56, 189, 248, 0.3);
    color: var(--pv-accent);
}

/* Variants table */
.pv-variants-table-wrap {
    max-height: 260px;
    overflow-y: auto;
    border-radius: 0.75rem;
    border: 1px solid var(--pv-border);
}
.pv-variants-table-wrap::-webkit-scrollbar { width: 5px; }
.pv-variants-table-wrap::-webkit-scrollbar-track { background: transparent; }
.pv-variants-table-wrap::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
.pv-variants-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}
.pv-variants-table th {
    position: sticky;
    top: 0;
    background: rgba(15, 23, 42, 0.95);
    color: var(--pv-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.72rem;
    padding: 0.65rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--pv-border);
    z-index: 2;
}
.pv-variants-table td {
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--pv-text-main);
    vertical-align: middle;
}
.pv-variants-table tr:last-child td { border-bottom: none; }
.pv-variants-table tr:hover td {
    background: rgba(56, 189, 248, 0.04);
}
.pv-variant-color-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.15);
    vertical-align: middle;
    margin-right: 0.4rem;
}
.pv-variant-stock {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 600;
    font-size: 0.75rem;
}
.pv-variant-stock.in-stock { color: var(--pv-success); }
.pv-variant-stock.out-of-stock { color: var(--pv-danger); }
.pv-variant-stock .stock-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

/* Size chart table */
.pv-size-chart {
    grid-column: 1 / -1;
}
.pv-size-chart-tabs {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.pv-size-chart-tab {
    padding: 0.4rem 0.85rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--pv-border);
    border-radius: 2rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--pv-text-muted);
    cursor: pointer;
    transition: all 0.15s;
}
.pv-size-chart-tab:hover {
    background: rgba(56, 189, 248, 0.06);
    border-color: rgba(56, 189, 248, 0.2);
}
.pv-size-chart-tab.active {
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.35);
    color: var(--pv-accent);
}
.pv-size-chart-content {
    display: none;
}
.pv-size-chart-content.active {
    display: block;
}
.pv-size-chart-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    border: 1px solid var(--pv-border);
    border-radius: 0.75rem;
    overflow: hidden;
}
.pv-size-chart-table th {
    background: rgba(15, 23, 42, 0.8);
    color: var(--pv-text-muted);
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.6rem 0.75rem;
    text-align: center;
    border-bottom: 1px solid var(--pv-border);
}
.pv-size-chart-table th:first-child {
    text-align: left;
}
.pv-size-chart-table td {
    padding: 0.5rem 0.75rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--pv-text-main);
}
.pv-size-chart-table td:first-child {
    text-align: left;
    font-weight: 600;
    color: var(--pv-accent);
}
.pv-size-chart-table tr:last-child td { border-bottom: none; }
.pv-size-chart-table tr:hover td { background: rgba(56, 189, 248, 0.03); }

.pv-detail-section.full-width {
    grid-column: 1 / -1;
}

/* ──── PRODUCT LIST STYLES ──── */
.pv-product-list-wrapper {
    font-family: 'Outfit', sans-serif;
    margin-top: 1rem;
}
.pv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.pv-card {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(16px);
}
.pv-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    border-color: rgba(56, 189, 248, 0.3);
}
.pv-card-img {
    height: 200px;
    background: rgba(15, 23, 42, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.pv-card-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}
.pv-card-status {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(15, 23, 42, 0.9);
    color: #f8fafc;
    padding: 0.25rem 0.6rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.pv-card-status.publish { background: rgba(16, 185, 129, 0.2); color: #34d399; border-color: rgba(16, 185, 129, 0.3); }
.pv-card-status.pending { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border-color: rgba(245, 158, 11, 0.3); }
.pv-card-status.draft { background: rgba(100, 116, 139, 0.2); color: #94a3b8; border-color: rgba(100, 116, 139, 0.3); }

.pv-card-body {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.pv-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f8fafc;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}
.pv-card-price {
    font-size: 1rem;
    font-weight: 500;
    color: #38bdf8;
    margin-bottom: 1rem;
}
.pv-card-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.pv-card-btn {
    text-decoration: none;
    color: #38bdf8;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
}
.pv-card-btn:hover {
    color: #0ea5e9;
}
.pv-delete-btn {
    color: #f87171;
}
.pv-delete-btn:hover {
    color: #ef4444;
}

/* ──── ANIMATIONS ──── */
@keyframes pvFadeSlideUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes pvShake {
    0%, 100% { transform: translateX(0); }
    20%      { transform: translateX(-6px); }
    40%      { transform: translateX(6px); }
    60%      { transform: translateX(-4px); }
    80%      { transform: translateX(4px); }
}

@keyframes pvSpin {
    to { transform: rotate(360deg); }
}
.pv-spin {
    animation: pvSpin 0.8s linear infinite;
}
.pv-btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

/* ──── RESPONSIVE ──── */
@media (max-width: 768px) {
    .printful-vendor-wrapper { padding: 1.5rem 1rem 3rem; }
    .pv-header h2 { font-size: 1.75rem; }
    .pv-form-container {
        grid-template-columns: 1fr;
    }
    .pv-form-actions {
        flex-direction: column;
    }
    .pv-btn-primary, .pv-btn-secondary {
        width: 100%;
        justify-content: center;
    }
    .pv-detail-sections {
        grid-template-columns: 1fr;
    }
    .pv-detail-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .pv-detail-meta-chips {
        justify-content: center;
    }
}

/* ──── WOOCOMMERCE FRONTEND VARIATION SELECTS FIX ──── */
.woocommerce div.product form.cart .variations select,
.woocommerce-page div.product form.cart .variations select {
    background-color: #0f172a !important;
    color: #f8fafc !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 0.5rem !important;
    padding: 0.5rem 1rem !important;
    min-height: 2.5rem;
    appearance: auto !important;
}

.woocommerce div.product form.cart .variations select option,
.woocommerce-page div.product form.cart .variations select option {
    background-color: #0f172a !important;
    color: #f8fafc !important;
}

.woocommerce div.product form.cart .variations select option:disabled,
.woocommerce-page div.product form.cart .variations select option:disabled {
    color: #64748b !important;
    background-color: rgba(0, 0, 0, 0.2) !important;
}
