/**
 * Pure Fur - Premium Frontend Styles
 * Accent: #ba865b
 * Theme: Luxury Atelier / Light Tones
 */

:root {
    --pf-accent: #ba865b;
    --pf-accent-hover: #a37248;
    --pf-accent-rgb: 186, 134, 91;
    --pf-accent-light: #f9f5f0;
    --pf-accent-border: #ebdccf;
    --pf-bg-main: #fdfcfb;
    --pf-bg-card: #ffffff;
    --pf-text-main: #2b2420;
    --pf-text-muted: #736962;
    --pf-border-color: #ede5dd;
    --pf-border-focus: #ba865b;
    --pf-radius-lg: 16px;
    --pf-radius-md: 12px;
    --pf-radius-sm: 8px;
    --pf-shadow-sm: 0 2px 8px rgba(60, 40, 20, 0.04);
    --pf-shadow-md: 0 8px 24px rgba(60, 40, 20, 0.08);
    --pf-shadow-hover: 0 12px 32px rgba(186, 134, 91, 0.16);
    --pf-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.pure-fur-wrapper {
    width: 100%;
    max-width: 1260px;
    margin: 0 auto;
    padding: 20px 15px 50px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--pf-text-main);
    line-height: 1.5;
    box-sizing: border-box;
    overflow: visible;
    /* Must be visible so position:sticky is never blocked on desktop */
}

.pure-fur-wrapper * {
    box-sizing: border-box;
}

/* ==========================================================================
   1. TOP STEP NAVIGATION
   ========================================================================== */
.pf-steps-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--pf-bg-card);
    border: 1px solid var(--pf-border-color);
    border-radius: var(--pf-radius-lg);
    padding: 10px 16px;
    margin-bottom: 28px;
    box-shadow: var(--pf-shadow-sm);
    gap: 10px;
    width: 100%;
}

.pf-step-tab {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: 1px solid transparent;
    padding: 10px 16px;
    border-radius: var(--pf-radius-md);
    cursor: pointer;
    text-align: left;
    transition: var(--pf-transition);
    color: var(--pf-text-muted);
}

.pf-step-tab:hover {
    background: var(--pf-accent-light);
    color: var(--pf-text-main);
}

.pf-step-tab.pf-active {
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(186, 134, 91, 0.14);
    color: var(--pf-text-main);
    border-color: var(--pf-accent-border);
}

.pf-step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f0e9e1;
    color: var(--pf-text-muted);
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--pf-transition);
    flex-shrink: 0;
}

.pf-step-tab.pf-active .pf-step-num {
    background: var(--pf-accent);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(186, 134, 91, 0.4);
}

.pf-step-tab.pf-completed .pf-step-num {
    background: #46b450;
    color: #fff;
}

.pf-step-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.pf-step-title {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pf-step-sub {
    font-size: 12px;
    color: var(--pf-text-muted);
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pf-step-divider {
    width: 24px;
    height: 1px;
    background: var(--pf-border-color);
    flex-shrink: 0;
}

/* ==========================================================================
   2. MAIN TWO-COLUMN LAYOUT (Sticky Preview Supported)
   ========================================================================== */
.pf-layout {
    display: grid;
    grid-template-columns: 350px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    /* Grid items align to top, so preview doesn't stretch and has space to slide down */
    position: relative;
    width: 100%;
}

/* Left Column: Sticky (Offset 90px from top to clear site sticky header) */
.pf-col-preview {
    position: -webkit-sticky;
    position: sticky;
    top: 90px;
    align-self: start;
    height: auto;
    min-width: 0;
    z-index: 15;
}

/* Offset when WordPress Admin Bar is present */
.admin-bar .pf-col-preview {
    top: 120px;
}

.pf-preview-sticky {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    will-change: transform;
}

/* Sketch Card */
.pf-sketch-card {
    background: var(--pf-bg-card);
    border: 1px solid var(--pf-border-color);
    border-radius: var(--pf-radius-lg);
    padding: 16px;
    box-shadow: var(--pf-shadow-md);
    position: relative;
}

.pf-sketch-canvas {
    position: relative;
    width: 100%;
    height: 440px;
    background: #ffffff;
    border-radius: var(--pf-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--pf-border-color);
}

.pf-sketch-img {
    max-height: 96%;
    max-width: 96%;
    object-fit: contain;
    transition: opacity 0.25s ease, transform 0.3s ease;
    filter: none;
}

.pf-sketch-loader {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.pf-sketch-loader.pf-loading {
    opacity: 1;
    pointer-events: auto;
}

.pf-zoom-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid var(--pf-border-color);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    color: var(--pf-text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--pf-transition);
}

.pf-zoom-btn:hover {
    background: var(--pf-accent);
    color: #fff;
    border-color: var(--pf-accent);
}

.pf-sketch-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}

.pf-tag {
    font-size: 11px;
    font-weight: 500;
    background: #faf6f1;
    color: var(--pf-text-muted);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid var(--pf-border-color);
}

/* Price Summary Card */
.pf-price-card {
    background: var(--pf-bg-card);
    border: 1px solid var(--pf-border-color);
    border-radius: var(--pf-radius-lg);
    padding: 16px 20px;
    box-shadow: var(--pf-shadow-md);
    border-left: 4px solid var(--pf-accent);
}

.pf-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.pf-price-label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.pf-price-title-text {
    font-size: 13px;
    color: var(--pf-text-muted);
}

/* Stylish "Детализация" Pill Button */
.pf-details-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #faf6f1;
    border: 1px solid var(--pf-accent-border);
    color: var(--pf-accent);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--pf-transition);
    margin-top: 5px;
    line-height: 1.2;
}

.pf-details-btn:hover,
.pf-details-btn.pf-open {
    background: var(--pf-accent);
    color: #ffffff;
    border-color: var(--pf-accent);
    box-shadow: 0 2px 8px rgba(186, 134, 91, 0.3);
}

.pf-chevron-icon {
    transition: transform 0.25s ease;
}

.pf-details-btn.pf-open .pf-chevron-icon {
    transform: rotate(180deg);
}

.pf-price-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--pf-accent);
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.pf-from-text {
    font-size: 13px;
    font-weight: 400;
    color: var(--pf-text-muted);
}

.pf-currency {
    font-size: 18px;
    font-weight: 600;
    margin-left: 2px;
}

.pf-price-breakdown {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed var(--pf-border-color);
    display: none;
    font-size: 12px;
    flex-direction: column;
    gap: 6px;
}

.pf-price-breakdown.pf-open {
    display: flex;
}

.pf-breakdown-row {
    display: flex;
    justify-content: space-between;
    color: var(--pf-text-muted);
}

.pf-breakdown-row span:last-child {
    font-weight: 600;
    color: var(--pf-text-main);
}

/* ==========================================================================
   3. RIGHT COLUMN: WIZARD STEPS
   ========================================================================== */
.pf-col-wizard {
    background: var(--pf-bg-card);
    border: 1px solid var(--pf-border-color);
    border-radius: var(--pf-radius-lg);
    padding: 30px 34px;
    box-shadow: var(--pf-shadow-sm);
    min-width: 0;
}

.pf-wizard-step {
    display: none;
}

.pf-wizard-step.pf-active {
    display: block;
    animation: pfFadeIn 0.3s ease;
}

@keyframes pfFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Intro */
.pf-section-intro {
    margin-bottom: 26px;
    border-bottom: 1px solid var(--pf-border-color);
    padding-bottom: 16px;
}

.pf-badge-sub {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--pf-accent);
    font-weight: 700;
}

.pf-section-title {
    font-size: 22px;
    font-weight: 700;
    margin: 6px 0 8px;
    color: var(--pf-text-main);
    letter-spacing: -0.4px;
}

.pf-section-desc {
    font-size: 14px;
    color: var(--pf-text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Block inside step */
.pf-block {
    margin-bottom: 30px;
}

.pf-block-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.pf-block-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--pf-accent);
    background: var(--pf-accent-light);
    border: 1px solid var(--pf-accent-border);
    padding: 3px 8px;
    border-radius: 6px;
    line-height: 1.2;
    flex-shrink: 0;
}

.pf-block-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    padding: 0;
    line-height: 1.2;
    color: var(--pf-text-main);
    display: flex;
    align-items: center;
}

/* Cards Grids */
.pf-cards-grid {
    display: grid;
    gap: 14px;
    width: 100%;
}

.pf-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.pf-grid-4 {
    grid-template-columns: repeat(2, 1fr);
}

.pf-grid-collars {
    grid-template-columns: repeat(3, 1fr);
}

/* Choice Cards (Silhouette, Length, Collar) */
.pf-choice-card {
    background: var(--pf-bg-card);
    border: 2px solid var(--pf-border-color);
    border-radius: var(--pf-radius-md);
    padding: 16px;
    cursor: pointer;
    transition: var(--pf-transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    min-width: 0;
}

.pf-choice-card:hover {
    border-color: #d1b8a3;
    transform: translateY(-2px);
    box-shadow: var(--pf-shadow-hover);
}

.pf-choice-card.pf-selected {
    border-color: var(--pf-accent);
    background: #fdfaf7;
    box-shadow: 0 4px 18px rgba(186, 134, 91, 0.16);
}

.pf-card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pf-card-icon img {
    max-width: 100%;
    max-height: 100%;
}

.pf-card-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--pf-text-main);
}

.pf-length-badge {
    display: inline-block;
    font-size: 15px;
    font-weight: 700;
    color: var(--pf-text-main);
    margin-bottom: 4px;
}

.pf-card-desc {
    font-size: 12px;
    color: var(--pf-text-muted);
    margin: 0 0 12px;
    line-height: 1.4;
}

.pf-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--pf-border-color);
}

.pf-price-badge {
    font-size: 12px;
    font-weight: 600;
    color: var(--pf-accent);
    background: var(--pf-accent-light);
    padding: 2px 8px;
    border-radius: 4px;
}

.pf-radio-mark {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    position: relative;
    transition: var(--pf-transition);
}

.pf-choice-card.pf-selected .pf-radio-mark {
    border-color: var(--pf-accent);
    background: var(--pf-accent);
}

.pf-choice-card.pf-selected .pf-radio-mark:after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
}

/* ==========================================================================
   4. STEP 2: FUR SELECTION & SQUARE CARDS & SUBTYPES
   ========================================================================== */
.pf-furs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
    width: 100%;
}

.pf-fur-card {
    background: var(--pf-bg-card);
    border: 2px solid var(--pf-border-color);
    border-radius: var(--pf-radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: var(--pf-transition);
    min-width: 0;
}

.pf-fur-card:hover {
    border-color: #d1b8a3;
    transform: translateY(-2px);
    box-shadow: var(--pf-shadow-hover);
}

.pf-fur-card.pf-selected {
    border-color: var(--pf-accent);
    box-shadow: 0 6px 20px rgba(186, 134, 91, 0.2);
}

/* Square Fur Images */
.pf-fur-img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    /* Pure square image */
    position: relative;
    overflow: hidden;
    background: #f0e9e1;
}

.pf-fur-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.pf-fur-card:hover .pf-fur-img-wrap img {
    transform: scale(1.05);
}

.pf-fur-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    transition: var(--pf-transition);
}

.pf-fur-card.pf-selected .pf-fur-check {
    background: var(--pf-accent);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.pf-fur-info {
    padding: 10px 12px;
    text-align: center;
}

.pf-fur-name {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 2px;
    color: var(--pf-text-main);
}

.pf-fur-price {
    font-size: 12px;
    color: var(--pf-accent);
    font-weight: 600;
}

/* Subtypes Slide-Down Panel */
.pf-subtypes-panel {
    background: #faf7f4;
    border: 1px solid var(--pf-accent-border);
    border-radius: var(--pf-radius-md);
    padding: 20px;
    margin-top: 10px;
    box-shadow: inset 0 2px 6px rgba(186, 134, 91, 0.04);
    animation: pfSlideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

@keyframes pfSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pf-subtypes-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.pf-subtypes-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    table-layout: auto;
}

.pf-subtypes-table th {
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--pf-text-muted);
    padding: 0 14px 4px;
    font-weight: 600;
}

.pf-subtype-row {
    background: #ffffff;
    border: 1px solid var(--pf-border-color);
    border-radius: var(--pf-radius-sm);
    transition: var(--pf-transition);
    cursor: pointer;
}

.pf-subtype-row td {
    padding: 12px 14px;
    vertical-align: middle;
}

.pf-subtype-row td:first-child {
    border-top-left-radius: var(--pf-radius-sm);
    border-bottom-left-radius: var(--pf-radius-sm);
}

.pf-subtype-row td:last-child {
    border-top-right-radius: var(--pf-radius-sm);
    border-bottom-right-radius: var(--pf-radius-sm);
}

.pf-subtype-row:hover {
    box-shadow: 0 4px 14px rgba(186, 134, 91, 0.12);
}

.pf-subtype-row.pf-selected {
    background: #fffcf8;
    box-shadow: 0 2px 10px rgba(186, 134, 91, 0.2);
    outline: 2px solid var(--pf-accent);
}

.pf-subtype-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--pf-text-main);
}

.pf-subtype-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--pf-accent);
    white-space: nowrap;
}

.pf-choose-subtype-btn {
    background: #ffffff;
    border: 1.5px solid var(--pf-accent);
    color: var(--pf-accent);
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--pf-transition);
    white-space: nowrap;
}

.pf-choose-subtype-btn:hover,
.pf-subtype-row.pf-selected .pf-choose-subtype-btn {
    background: var(--pf-accent);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(186, 134, 91, 0.35);
}

/* ==========================================================================
   5. STEP 3: APPLICATION FORM, TALL FIELDS & AGREEMENTS
   ========================================================================== */
.pf-order-summary-box {
    background: #faf7f4;
    border: 1px solid var(--pf-accent-border);
    border-radius: var(--pf-radius-md);
    padding: 18px 20px;
    margin-bottom: 24px;
}

.pf-summary-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--pf-accent-border);
    padding-bottom: 10px;
    margin-bottom: 12px;
}

.pf-summary-head h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--pf-text-main);
}

.pf-summary-total {
    font-size: 18px;
    font-weight: 800;
    color: var(--pf-accent);
}

.pf-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 18px;
    font-size: 13px;
}

.pf-sum-item {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.pf-sum-full {
    grid-column: span 2;
    padding-top: 6px;
    border-top: 1px dashed var(--pf-accent-border);
}

.pf-sum-k {
    color: var(--pf-text-muted);
}

.pf-sum-v {
    font-weight: 600;
    color: var(--pf-text-main);
}

.pf-highlight {
    color: var(--pf-accent) !important;
}

/* Taller Inputs & Form Grid */
.pf-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
    width: 100%;
}

.pf-col-span-2 {
    grid-column: span 2;
}

.pf-form-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.pf-form-group label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--pf-text-main);
}

.pf-req {
    color: #e53e3e;
    margin-left: 3px;
}

/* Taller, spacious input fields with comfortable left padding */
.pf-input {
    width: 100%;
    min-height: 52px;
    padding: 14px 22px;
    border: 1.5px solid var(--pf-border-color);
    border-radius: var(--pf-radius-sm);
    font-size: 15px;
    color: var(--pf-text-main);
    background: #ffffff;
    transition: var(--pf-transition);
    outline: none;
    font-family: inherit;
    line-height: normal;
    box-sizing: border-box;
    padding-left: 15px !important;
}

.pf-textarea {
    width: 100%;
    min-height: 120px;
    padding: 16px 22px;
    border: 1.5px solid var(--pf-border-color);
    border-radius: var(--pf-radius-sm);
    font-size: 15px;
    color: var(--pf-text-main);
    background: #ffffff;
    transition: var(--pf-transition);
    outline: none;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
}

.pf-input::placeholder,
.pf-textarea::placeholder {
    color: #a89c93;
    opacity: 1;
    font-size: 14px;
}

.pf-input:focus,
.pf-textarea:focus {
    border-color: var(--pf-border-focus);
    box-shadow: 0 0 0 3px rgba(186, 134, 91, 0.15);
}

.pf-input.pf-has-error,
.pf-textarea.pf-has-error {
    border-color: #e53e3e;
    background: #fff8f8;
}

.pf-field-error {
    font-size: 11px;
    color: #e53e3e;
    margin-top: 5px;
    display: none;
}

.pf-field-error.pf-visible {
    display: block;
}

/* Agreements Block (Constructor) */
.pf-agreements-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
    padding: 14px 18px;
    background: #faf7f4;
    border-radius: var(--pf-radius-sm);
    border: 1px solid var(--pf-accent-border);
}

.pf-agreement-row {
    display: flex;
    flex-direction: column;
}

.pf-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: var(--pf-text-muted);
    line-height: 1.4;
}

.pf-checkbox-label input {
    accent-color: var(--pf-accent);
    width: 18px;
    height: 18px;
    margin-top: 1px;
    flex-shrink: 0;
}

.pf-agreement-link {
    color: var(--pf-accent);
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.2s;
}

.pf-agreement-link:hover {
    color: var(--pf-accent-hover);
}

.pf-agreement-link-bare {
    color: var(--pf-text-main);
    font-weight: 600;
}

/* Action Buttons */
.pf-step-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--pf-border-color);
    gap: 14px;
    width: 100%;
}

.pf-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--pf-radius-md);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--pf-transition);
    border: none;
    text-decoration: none;
    white-space: nowrap;
}

.pf-btn-primary {
    background: var(--pf-accent);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(186, 134, 91, 0.35);
}

.pf-btn-primary:hover {
    background: var(--pf-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(186, 134, 91, 0.45);
}

.pf-btn-secondary {
    background: #f7f3ee;
    color: var(--pf-text-main);
    border: 1px solid var(--pf-border-color);
}

.pf-btn-secondary:hover {
    background: #ebe4dc;
}

.pf-btn-submit {
    background: linear-gradient(135deg, var(--pf-accent) 0%, #a66f44 100%);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(186, 134, 91, 0.4);
    padding: 15px 36px;
}

.pf-btn-submit:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.pf-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Spinners */
.pf-spinner,
.pf-btn-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: pfSpin 0.7s linear infinite;
    display: inline-block;
}

.pf-spinner {
    width: 32px;
    height: 32px;
    border-color: rgba(186, 134, 91, 0.2);
    border-top-color: var(--pf-accent);
}

@keyframes pfSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Form Alert */
.pf-form-alert {
    padding: 12px 16px;
    border-radius: var(--pf-radius-sm);
    font-size: 13px;
    margin-bottom: 16px;
    background: #fff5f5;
    border: 1px solid #feb2b2;
    color: #c53030;
}

/* Success Screen */
.pf-success-screen {
    text-align: center;
    padding: 30px 10px;
    animation: pfFadeIn 0.4s ease;
}

.pf-success-card {
    background: #faf7f4;
    border: 1px solid var(--pf-accent-border);
    border-radius: var(--pf-radius-lg);
    padding: 34px 26px;
    max-width: 500px;
    margin: 0 auto;
}

.pf-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--pf-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 4px 14px rgba(186, 134, 91, 0.25);
}

.pf-success-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--pf-text-main);
}

.pf-success-message {
    font-size: 14px;
    color: var(--pf-text-muted);
    line-height: 1.6;
    margin: 0 0 22px;
}

/* Zoom Modal */
.pf-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.pf-modal.pf-open {
    display: flex;
}

.pf-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(30, 20, 15, 0.75);
    backdrop-filter: blur(4px);
}

.pf-modal-content {
    position: relative;
    background: #ffffff;
    border-radius: var(--pf-radius-lg);
    padding: 16px;
    max-width: 650px;
    width: 100%;
    max-height: 90vh;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pf-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f3ece6;
    border: none;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--pf-transition);
}

.pf-modal-close:hover {
    background: var(--pf-accent);
    color: #fff;
}

.pf-modal-body img {
    max-height: 70vh;
    max-width: 100%;
    object-fit: contain;
    border-radius: var(--pf-radius-md);
}

.pf-modal-caption {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--pf-accent);
}

/* ==========================================================================
   6. RESPONSIVE ADAPTATIONS (NO HORIZONTAL SCROLL)
   ========================================================================== */
@media (max-width: 1024px) {
    .pf-layout {
        grid-template-columns: 300px minmax(0, 1fr);
        gap: 20px;
    }

    .pf-sketch-canvas {
        height: 380px;
    }

    .pf-cards-grid.pf-grid-3,
    .pf-cards-grid.pf-grid-collars,
    .pf-furs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 860px) {
    .pure-fur-wrapper {
        padding: 12px 10px 40px;
        overflow-x: hidden;
    }

    .pf-layout {
        grid-template-columns: 100%;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .pf-col-preview {
        height: auto;
        position: static !important;
        top: auto !important;
    }

    .admin-bar .pf-col-preview {
        top: auto !important;
    }

    .pf-preview-sticky {
        position: relative;
        top: 0;
        transform: none !important;
    }

    .pf-sketch-canvas {
        height: 340px;
    }

    .pf-steps-nav {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        padding: 6px;
        gap: 4px;
    }

    .pf-step-tab {
        padding: 8px 4px;
        gap: 6px;
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }

    .pf-step-num {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .pf-step-title {
        font-size: 12px;
    }

    .pf-step-sub,
    .pf-step-divider {
        display: none !important;
    }

    .pf-col-wizard {
        padding: 20px 16px;
    }

    .pf-cards-grid.pf-grid-4,
    .pf-cards-grid.pf-grid-3,
    .pf-cards-grid.pf-grid-collars,
    .pf-form-grid {
        grid-template-columns: 1fr;
    }

    .pf-furs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .pf-col-span-2 {
        grid-column: span 1;
    }

    .pf-summary-grid {
        grid-template-columns: 1fr;
    }

    .pf-sum-full {
        grid-column: span 1;
    }

    .pf-step-actions {
        flex-direction: column-reverse;
        gap: 10px;
    }

    .pf-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Fur Subtypes: Table columns stack into rows / cards on mobile */
@media (max-width: 680px) {
    .pf-subtypes-panel {
        padding: 16px 12px;
    }

    .pf-subtypes-table-wrap {
        overflow-x: visible;
    }

    .pf-subtypes-table {
        display: flex;
        flex-direction: column;
        gap: 10px;
        border-spacing: 0;
        width: 100%;
    }

    .pf-subtypes-table thead {
        display: none !important;
    }

    .pf-subtypes-table tbody {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .pf-subtype-row {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "title title"
            "price button";
        align-items: center;
        gap: 10px 12px;
        padding: 12px 14px;
        margin: 0;
        background: #ffffff;
        border: 1.5px solid var(--pf-border-color);
        border-radius: var(--pf-radius-md);
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
        width: 100%;
        box-sizing: border-box;
    }

    .pf-subtype-row.pf-selected {
        outline: none;
        border-color: var(--pf-accent);
        background: #fffcf8;
        box-shadow: 0 3px 12px rgba(186, 134, 91, 0.18);
    }

    .pf-subtype-row td {
        display: block !important;
        padding: 0 !important;
        border: none !important;
        border-radius: 0 !important;
    }

    .pf-subtype-row td:first-child {
        grid-area: title;
    }

    .pf-subtype-row td:nth-child(2) {
        grid-area: price;
    }

    .pf-subtype-row td:nth-child(3) {
        grid-area: button;
        text-align: right !important;
    }

    .pf-subtype-title {
        font-size: 14.5px;
        font-weight: 700;
        line-height: 1.35;
        color: var(--pf-text-main);
    }

    .pf-subtype-price {
        font-size: 13.5px;
        font-weight: 700;
        color: var(--pf-accent);
        white-space: nowrap;
    }

    .pf-choose-subtype-btn {
        padding: 7px 16px;
        font-size: 12px;
        font-weight: 700;
        white-space: nowrap;
        border-radius: 6px;
    }
}

@media (max-width: 480px) {
    .pf-sketch-canvas {
        height: 290px;
    }

    .pf-price-value {
        font-size: 20px;
    }

    .pf-subtypes-panel {
        padding: 14px 10px;
    }
}

@media (max-width: 400px) {
    .pf-subtype-row {
        grid-template-columns: 1fr;
        grid-template-areas:
            "title"
            "price"
            "button";
        gap: 8px;
    }

    .pf-subtype-row td:nth-child(3) {
        text-align: stretch !important;
    }

    .pf-choose-subtype-btn {
        width: 100%;
        padding: 9px 14px;
        text-align: center;
        justify-content: center;
        display: flex;
    }
}