* {
    box-sizing: border-box;
}

body {
    background: #f4f6f9;
}

.px-product-page {
    min-height: 100vh;
    padding: 48px 20px 80px;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.07), transparent 30%),
        #f4f6f9;
}

.px-product-container {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
}

.px-page-heading {
    margin-bottom: 28px;
}

.px-page-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    margin-bottom: 14px;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 13px;
    font-weight: 700;
}

.px-page-heading h1 {
    margin: 0;
    color: #111827;
    font-size: 34px;
    line-height: 1.2;
    letter-spacing: -0.8px;
}

.px-page-heading p {
    max-width: 620px;
    margin: 10px 0 0;
    color: #6b7280;
    font-size: 16px;
    line-height: 1.7;
}

.px-product-card {
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    background: #ffffff;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.03),
        0 18px 50px rgba(15, 23, 42, 0.07);
}

.px-form-section {
    padding: 32px;
}

.px-section-heading,
.px-options-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.px-section-heading h2,
.px-options-header h2 {
    margin: 0;
    color: #111827;
    font-size: 19px;
}

.px-section-heading p,
.px-options-header p {
    margin: 7px 0 0;
    color: #6b7280;
    font-size: 14px;
}

.px-divider {
    height: 1px;
    background: #edf0f4;
}





.px-image-upload input {
    display: none;
}

.px-upload-icon {
    display: flex;
    width: 54px;
    height: 54px;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    border-radius: 16px;
    background: #2563eb;
    color: #ffffff;
    font-size: 30px;
    font-weight: 300;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}

.px-image-upload strong {
    color: #111827;
    font-size: 15px;
}

.px-image-upload small {
    color: #94a3b8;
    font-size: 13px;
}

.px-field {
    margin-bottom: 24px;
}

.px-field:last-child {
    margin-bottom: 0;
}

.px-field label {
    display: block;
    margin-bottom: 9px;
    color: #1f2937;
    font-size: 14px;
    font-weight: 700;
}

.px-field input,
.px-field textarea,
.px-field select {
    width: 100%;
    border: 1px solid #dce1e8;
    border-radius: 13px;
    background: #ffffff;
    color: #111827;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: 0.2s ease;
}

.px-field input {
    height: 52px;
    padding: 0 16px;
}

.px-field textarea {
    min-height: 150px;
    padding: 15px 16px;
    resize: vertical;
    line-height: 1.6;
}

.px-field input:focus,
.px-field textarea:focus,
.px-field select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.px-field input::placeholder,
.px-field textarea::placeholder {
    color: #a0a8b5;
}

.px-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.px-label-row span {
    margin-bottom: 9px;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 600;
}

.px-price-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px;
    gap: 12px;
}

.px-price-field select {
    height: 52px;
    padding: 0 14px;
    cursor: pointer;
}

.px-add-option-btn {
    flex-shrink: 0;
    padding: 11px 16px;
    border: 1px solid #dbe3ee;
    border-radius: 11px;
    background: #ffffff;
    color: #2563eb;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.px-add-option-btn:hover {
    border-color: #2563eb;
    background: #eff6ff;
}

.px-empty-options {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    border: 1px solid #edf0f4;
    border-radius: 15px;
    background: #fafbfc;
}

.px-empty-options-icon {
    display: flex;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #eef2f7;
    font-size: 18px;
}

.px-empty-options strong {
    display: block;
    margin-bottom: 4px;
    color: #1f2937;
    font-size: 14px;
}

.px-empty-options p {
    margin: 0;
    color: #7c8798;
    font-size: 13px;
    line-height: 1.5;
}

.px-card-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 22px 32px;
    border-top: 1px solid #edf0f4;
    background: #fbfcfe;
}

.px-cancel-btn,
.px-save-btn {
    min-height: 48px;
    padding: 0 22px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.px-cancel-btn {
    border: 1px solid #dce1e8;
    background: #ffffff;
    color: #4b5563;
}

.px-cancel-btn:hover {
    background: #f3f4f6;
}

.px-save-btn {
    border: 1px solid #2563eb;
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 9px 20px rgba(37, 99, 235, 0.2);
}

.px-save-btn:hover {
    border-color: #1d4ed8;
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.27);
}

@media (max-width: 640px) {
    .px-product-page {
        padding: 28px 14px 55px;
    }

    .px-page-heading h1 {
        font-size: 27px;
    }

    .px-form-section {
        padding: 22px 18px;
    }

    .px-section-heading,
    .px-options-header {
        flex-direction: column;
    }

    .px-add-option-btn {
        width: 100%;
    }

    .px-price-field {
        grid-template-columns: 1fr;
    }

    .px-card-footer {
        padding: 18px;
    }

    .px-cancel-btn,
    .px-save-btn {
        flex: 1;
        padding: 0 14px;
    }
}
#px-options-list {
    display: grid;
    gap: 16px;
}

.px-option-item {
    padding: 20px;
    border: 1px solid #e4e9f0;
    border-radius: 16px;
    background: #ffffff;
    transition: 0.2s ease;
}

.px-option-item:hover {
    border-color: #cfd8e6;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.px-option-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 18px;
}

.px-option-number {
    color: #111827;
    font-size: 14px;
    font-weight: 700;
}

.px-remove-option {
    padding: 8px 12px;
    border: 1px solid #fee2e2;
    border-radius: 9px;
    background: #fff7f7;
    color: #dc2626;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.px-remove-option:hover {
    border-color: #fecaca;
    background: #fef2f2;
}

.px-option-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
    gap: 16px;
}

.px-option-grid .px-field {
    margin-bottom: 0;
}

.px-field-help {
    display: block;
    margin-top: 7px;
    color: #8b95a5;
    font-size: 12px;
}

@media (max-width: 640px) {
    .px-option-grid {
        grid-template-columns: 1fr;
    }

    .px-option-item {
        padding: 17px;
    }
}
.px-product-page {
    width: 100%;
}

.px-product-container {
    width: 100%;
    max-width: 920px;
    margin-left: auto !important;
    margin-right: auto !important;
}

.px-product-form,
.px-product-card {
    width: 100%;
}

@media (min-width: 768px) {
    .px-product-page {
        display: flex;
        justify-content: center;
    }

    .px-product-container {
        flex: 0 1 920px;
    }
}
.px-image-upload{
    position:relative;
    overflow:hidden;
}



.px-image-upload.has-image{
    padding:0;
    border:none;
    background:#fff;
}





.px-image-upload.has-image:hover{

    transform:none;

}

.px-image-upload.has-image .px-image-preview{

    display:block;

}

.px-image-upload.has-image #px-upload-placeholder{

    display:none;

}
#px-upload-placeholder{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:12px;

    width:100%;
    height:100%;
}
.px-image-upload,
.px-image-upload *{
    cursor:pointer;
    user-select:none;
}
/* Product image uploader */
.px-image-upload {
    position: relative;

    width: 100%;
    max-width: 520px;
    height: 300px;

    margin: 30px auto 0;

    overflow: hidden;

    border: 2px dashed #4d7cff;
    border-radius: 18px;

    background: #f7f9ff;
}

#px-product-image {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;
    pointer-events: none;
}

#px-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    gap: 10px;

    cursor: pointer;
    user-select: none;
}

#px-upload-placeholder,
#px-upload-placeholder * {
    cursor: pointer;
    user-select: none;
}

.px-image-preview {
    display: none;

    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    border-radius: 16px;
}

.px-image-upload.has-image {
    border-style: solid;
    border-color: #d9e0ec;

    background: #ffffff;
}

.px-image-upload.has-image #px-upload-placeholder {
    display: none;
}

.px-image-upload.has-image .px-image-preview {
    display: block;
}

/* Image action bar */


.px-image-upload.has-image .px-image-actions {
    display: flex;
}

.px-image-upload.has-image:hover .px-image-actions {
    opacity: 1;
}

.px-image-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;
    padding: 10px 16px;

    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 10px;

    background: rgba(255, 255, 255, 0.94);
    color: #172033;

    font-size: 14px;
    font-weight: 600;
    line-height: 1;

    cursor: pointer;
    user-select: none;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.px-image-action-btn:hover {
    background: #ffffff;
    transform: translateY(-1px);
}

.px-remove-image-btn {
    border-color: rgba(255, 255, 255, 0.4);

    background: rgba(190, 35, 35, 0.9);
    color: #ffffff;
}

.px-remove-image-btn:hover {
    background: #b91c1c;
    color: #ffffff;
}

/* Mobile */
@media (max-width: 600px) {
    .px-image-upload {
        height: 240px;
    }

    .px-image-actions {
        opacity: 1;
        padding: 12px;
    }

    .px-image-action-btn {
        flex: 1;
        padding: 10px 12px;
    }
}
/* ==================================================
   Project X - Final product image uploader
   ================================================== */

.px-product-page .px-image-section {
    width: 100%;
}

.px-product-page .px-image-upload {
    position: relative !important;

    display: block !important;

    width: 100% !important;
    max-width: 520px !important;
    height: 300px !important;

    margin: 30px auto 0 !important;
    padding: 0 !important;

    overflow: hidden !important;

    border: 2px dashed #4d7cff !important;
    border-radius: 18px !important;

    background: #f7f9ff !important;

    box-sizing: border-box !important;

    cursor: default !important;
}

/* Hide real file input */


/* Upload placeholder */
.px-product-page .px-upload-placeholder {
    position: absolute !important;
    inset: 0 !important;

    z-index: 2 !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    height: 100% !important;

    margin: 0 !important;
    padding: 20px !important;

    gap: 10px !important;

    box-sizing: border-box !important;

    cursor: pointer !important;
    user-select: none !important;
}

.px-product-page .px-upload-placeholder *,
.px-product-page .px-upload-placeholder strong,
.px-product-page .px-upload-placeholder small,
.px-product-page .px-upload-placeholder span {
    cursor: pointer !important;
    user-select: none !important;
}

.px-product-page .px-upload-placeholder strong {
    display: block !important;

    margin: 0 !important;

    text-align: center !important;
}

.px-product-page .px-upload-placeholder small {
    display: block !important;

    margin: 0 !important;

    text-align: center !important;
}

/* Plus button */
.px-product-page .px-upload-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 54px !important;
    height: 54px !important;

    margin: 0 0 4px !important;

    border-radius: 15px !important;

    background: #2563eb !important;
    color: #ffffff !important;

    font-size: 29px !important;
    font-weight: 300 !important;
    line-height: 1 !important;

    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.22) !important;
}

/* Preview image */
.px-product-page .px-image-preview {
    position: absolute !important;
    inset: 0 !important;

    z-index: 1 !important;

    display: none !important;

    width: 100% !important;
    height: 100% !important;

    min-width: 100% !important;
    min-height: 100% !important;
    max-width: none !important;
    max-height: none !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 16px !important;

    object-fit: cover !important;
    object-position: center center !important;

    box-sizing: border-box !important;
}

/* Image selected */
.px-product-page .px-image-upload.has-image {
    border-style: solid !important;
    border-color: #d5dce8 !important;

    background: #ffffff !important;
}

.px-product-page .px-image-upload.has-image .px-upload-placeholder {
    display: none !important;
}

.px-product-page .px-image-upload.has-image .px-image-preview {
    display: block !important;
}

/* Action buttons */
.px-product-page .px-image-actions {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;

    z-index: 5 !important;

    display: none !important;
    align-items: center !important;
    justify-content: center !important;

    gap: 10px !important;

    width: 100% !important;

    padding: 38px 16px 16px !important;

    box-sizing: border-box !important;

    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.72),
        rgba(0, 0, 0, 0)
    ) !important;

    opacity: 0 !important;

    transition: opacity 0.2s ease !important;
}

.px-product-page .px-image-upload.has-image .px-image-actions {
    display: flex !important;
}

.px-product-page .px-image-upload.has-image:hover .px-image-actions,
.px-product-page .px-image-upload.has-image:focus-within .px-image-actions {
    opacity: 1 !important;
}

.px-product-page .px-image-action-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    min-width: 130px !important;
    min-height: 42px !important;

    margin: 0 !important;
    padding: 10px 16px !important;

    border: 1px solid rgba(255, 255, 255, 0.7) !important;
    border-radius: 10px !important;

    background: rgba(255, 255, 255, 0.95) !important;
    color: #172033 !important;

    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    text-decoration: none !important;

    box-sizing: border-box !important;

    cursor: pointer !important;
    user-select: none !important;

    transition:
        background 0.2s ease,
        transform 0.2s ease !important;
}

.px-product-page .px-image-action-btn:hover {
    background: #ffffff !important;
    color: #172033 !important;

    transform: translateY(-1px) !important;
}

.px-product-page .px-remove-image-btn {
    background: rgba(185, 28, 28, 0.92) !important;
    color: #ffffff !important;
}

.px-product-page .px-remove-image-btn:hover {
    background: #b91c1c !important;
    color: #ffffff !important;
}

/* Mobile */
@media (max-width: 600px) {
    .px-product-page .px-image-upload {
        max-width: 100% !important;
        height: 240px !important;
    }

    .px-product-page .px-image-actions {
        padding: 32px 12px 12px !important;

        opacity: 1 !important;
    }

    .px-product-page .px-image-action-btn {
        flex: 1 !important;

        min-width: 0 !important;

        padding: 10px 8px !important;

        font-size: 13px !important;
    }
}
/* Show the complete product image without cropping */
.px-product-page .px-image-preview {
    object-fit: contain !important;
    object-position: center center !important;
    background: #f7f8fa !important;
}
/* Product form messages */
.px-form-message {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;

    width: 100%;

    margin: 0 0 24px;
    padding: 16px 18px;

    border: 1px solid;
    border-radius: 14px;

    box-sizing: border-box;
}

.px-form-message strong {
    font-weight: 700;
}

.px-form-message span {
    flex: 1;
}

.px-form-message a {
    font-weight: 700;
    text-decoration: none;
}

.px-form-success {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.px-form-success a {
    color: #166534;
}

.px-form-error {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}
/* ==================================================
   Project X - Multiple product images
   ================================================== */

.px-product-page #px-product-images {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    overflow: hidden !important;

    opacity: 0 !important;
    pointer-events: none !important;
}

.px-product-page .px-images-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 14px;

    width: 100%;
    max-width: 760px;

    margin: 28px auto 0;
}

.px-product-page .px-add-images-box,
.px-product-page .px-image-preview-item {
    position: relative;

    width: 100%;
    aspect-ratio: 1 / 1;

    overflow: hidden;

    border-radius: 16px;

    box-sizing: border-box;
}

.px-product-page .px-add-images-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 9px;

    padding: 18px;

    border: 2px dashed #4d7cff;

    background: #f7f9ff;

    text-align: center;

    cursor: pointer;
    user-select: none;
}

.px-product-page .px-add-images-box,
.px-product-page .px-add-images-box * {
    cursor: pointer;
    user-select: none;
}

.px-product-page .px-add-images-box strong {
    margin: 0;

    font-size: 14px;
    font-weight: 700;
}

.px-product-page .px-add-images-box small {
    margin: 0;

    color: #8491a8;

    font-size: 12px;
}

.px-product-page .px-add-images-box .px-upload-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    margin: 0;

    border-radius: 14px;

    background: #2563eb;
    color: #ffffff;

    font-size: 27px;
    font-weight: 300;
    line-height: 1;

    box-shadow:
        0 6px 14px
        rgba(37, 99, 235, 0.22);
}

.px-product-page .px-image-preview-item {
    border: 1px solid #d9e0ec;

    background: #f7f8fa;
}

.px-product-page .px-image-preview-item img {
    display: block;

    width: 100%;
    height: 100%;

    margin: 0;
    padding: 0;

    object-fit: contain;
    object-position: center;

    background: #f7f8fa;
}

.px-product-page .px-image-position-badge {
    position: absolute;
    left: 10px;
    bottom: 10px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 34px;
    min-height: 28px;

    padding: 5px 9px;

    border-radius: 8px;

    background: rgba(17, 24, 39, 0.82);
    color: #ffffff;

    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.px-product-page .px-remove-preview-image {
    position: absolute;
    top: 9px;
    right: 9px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;

    margin: 0;
    padding: 0;

    border: 0;
    border-radius: 50%;

    background: rgba(17, 24, 39, 0.82);
    color: #ffffff;

    font-family: Arial, sans-serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.px-product-page .px-remove-preview-image:hover {
    background: #b91c1c;
    color: #ffffff;

    transform: scale(1.05);
}

.px-product-page .px-images-counter {
    max-width: 760px;

    margin: 10px auto 0;

    color: #8491a8;

    font-size: 13px;
    text-align: right;
}

/* Category select */
.px-product-page .px-field select {
    width: 100%;
    min-height: 52px;

    padding: 0 15px;

    border: 1px solid #d6deea;
    border-radius: 13px;

    background: #ffffff;
    color: #172033;

    font-family: inherit;
    font-size: 15px;

    box-sizing: border-box;
}

/* Prices */
.px-product-page .px-price-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;
}

.px-product-page .px-money-input {
    display: flex;
    align-items: stretch;

    width: 100%;
}

.px-product-page .px-money-input input {
    flex: 1;

    min-width: 0;

    border-radius:
        13px 0 0 13px !important;
}

.px-product-page .px-money-input > span {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 54px;

    padding: 0 13px;

    border: 1px solid #d6deea;
    border-left: 0;
    border-radius: 0 13px 13px 0;

    background: #f7f9fc;
    color: #536178;

    font-size: 14px;
    font-weight: 700;

    box-sizing: border-box;
}

/* Messages */
.px-product-page .px-form-message {
    display: flex;
    align-items: center;

    gap: 10px;
    flex-wrap: wrap;

    width: 100%;

    margin: 0 0 24px;
    padding: 16px 18px;

    border: 1px solid;
    border-radius: 14px;

    box-sizing: border-box;
}

.px-product-page .px-form-message span {
    flex: 1;
}

.px-product-page .px-form-message a {
    font-weight: 700;
    text-decoration: none;
}

.px-product-page .px-form-success {
    border-color: #bbf7d0;

    background: #f0fdf4;
    color: #166534;
}

.px-product-page .px-form-success a {
    color: #166534;
}

.px-product-page .px-form-error {
    border-color: #fecaca;

    background: #fef2f2;
    color: #991b1b;
}

.px-product-page .px-save-btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

/* Tablet */
@media (max-width: 800px) {
    .px-product-page .px-images-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

/* Mobile */
@media (max-width: 600px) {
    .px-product-page .px-price-grid {
        grid-template-columns: 1fr;
    }

    .px-product-page .px-images-grid {
        gap: 10px;
    }

    .px-product-page .px-add-images-box {
        padding: 12px;
    }

    .px-product-page .px-add-images-box strong {
        font-size: 12px;
    }

    .px-product-page .px-add-images-box small {
        font-size: 10px;
    }
}
/* Keep variation choices visible, hide purchasing only */
.single-product .woocommerce-variation-add-to-cart,
.single-product .single_add_to_cart_button,
.single-product .quantity {
    display: none !important;
}