/* ==========================================================================
   Personalizador de Porta-Alianças - Estilos
   ========================================================================== */

.pz-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
    font-family: var(--font-secondary, 'Lato', sans-serif);
    color: var(--theme-foreground, #3d3632);
}

/* Header */
.pz-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.pz-title {
    font-family: var(--font-primary, 'Cormorant Garamond', serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--theme-foreground, #3d3632);
    margin: 0 0 0.5rem;
}

.pz-subtitle {
    color: var(--theme-muted, #7a6f68);
    font-size: 1rem;
    margin: 0;
}

/* Step Indicator */
.pz-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.pz-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    position: relative;
}

.pz-step__circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    background: var(--theme-secondary, #f5eee6);
    color: var(--theme-muted, #7a6f68);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.pz-step--active .pz-step__circle {
    background: var(--theme-primary, #ff6961);
    color: #fff;
    border-color: var(--theme-primary, #ff6961);
    box-shadow: 0 0 0 4px rgba(255, 105, 97, 0.15);
}

.pz-step--done .pz-step__circle {
    background: var(--theme-accent, #b8d4c8);
    color: #fff;
    border-color: var(--theme-accent, #b8d4c8);
}

.pz-step__label {
    font-size: 0.75rem;
    color: var(--theme-muted, #7a6f68);
    font-weight: 500;
}

.pz-step--active .pz-step__label {
    color: var(--theme-primary, #ff6961);
    font-weight: 600;
}

.pz-step--done .pz-step__label {
    color: var(--theme-accent-dark, #8fb5a3);
}

.pz-step__line {
    width: 40px;
    height: 2px;
    background: var(--theme-border, #e8e0d8);
    margin: 0 0.5rem;
    align-self: flex-start;
    margin-top: 20px;
}

/* Content Card */
.pz-content {
    background: #fff;
    border: 1px solid var(--theme-border, #e8e0d8);
    border-radius: var(--theme-radius-xl, 16px);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

/* Step Header */
.pz-step-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.pz-step-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 105, 97, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.pz-step-title {
    font-family: var(--font-primary, 'Cormorant Garamond', serif);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
    color: var(--theme-foreground, #3d3632);
}

.pz-step-desc {
    font-size: 0.9rem;
    color: var(--theme-muted, #7a6f68);
    margin: 0;
}

/* Grids */
.pz-grid {
    display: grid;
    gap: 1rem;
}

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

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

/* Cards */
.pz-card {
    border: 2px solid var(--theme-border, #e8e0d8);
    border-radius: var(--theme-radius-md, 12px);
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    background: #fff;
}

.pz-card:hover {
    box-shadow: var(--theme-shadow-md, 0 8px 24px rgba(61, 54, 50, 0.1));
    transform: translateY(-2px);
}

.pz-card--selected {
    border-color: var(--theme-primary, #ff6961);
    box-shadow: 0 0 0 3px rgba(255, 105, 97, 0.15);
}

.pz-card__image {
    aspect-ratio: 1;
    overflow: hidden;
}

.pz-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.pz-card:hover .pz-card__image img {
    transform: scale(1.05);
}

.pz-card__body {
    padding: 1rem;
}

.pz-card__info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.pz-card__title {
    font-family: var(--font-primary, 'Cormorant Garamond', serif);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: var(--theme-foreground, #3d3632);
}

.pz-card__desc {
    font-size: 0.85rem;
    color: var(--theme-muted, #7a6f68);
    margin: 0;
}

.pz-card__price {
    font-size: 0.85rem;
    color: var(--theme-primary, #ff6961);
    font-weight: 600;
}

.pz-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--theme-primary, #ff6961);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 0.5rem;
}

.pz-style-card .pz-card__body {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.pz-palette-card .pz-card__body .pz-card__info {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

/* Swatches */
.pz-swatches {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.pz-swatch {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    border: 1px solid var(--theme-border, #e8e0d8);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

/* Option card (material/size) */
.pz-option-card .pz-card__body {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pz-section-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--theme-foreground, #3d3632);
    margin-bottom: 0.75rem;
}

/* Form Fields */
.pz-form-fields {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.pz-field label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    color: var(--theme-foreground, #3d3632);
}

.pz-field input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--theme-border, #e8e0d8);
    border-radius: var(--theme-radius-md, 8px);
    font-size: 1rem;
    font-family: inherit;
    color: var(--theme-foreground, #3d3632);
    background: #fff;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.pz-field input:focus {
    outline: none;
    border-color: var(--theme-primary, #ff6961);
    box-shadow: 0 0 0 3px rgba(255, 105, 97, 0.1);
}

.pz-field input::placeholder {
    color: var(--theme-muted, #7a6f68);
    opacity: 0.6;
}

/* Summary */
.pz-summary {
    background: var(--theme-secondary, #f5eee6);
    border-radius: var(--theme-radius-xl, 16px);
    padding: 1.5rem;
}

.pz-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--theme-border, #e8e0d8);
}

.pz-summary__row span {
    color: var(--theme-muted, #7a6f68);
    font-size: 0.9rem;
}

.pz-summary__row strong {
    color: var(--theme-foreground, #3d3632);
    font-size: 0.95rem;
}

.pz-summary__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 2px solid rgba(255, 105, 97, 0.2);
}

.pz-summary__total span {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--theme-foreground, #3d3632);
}

.pz-summary__total strong {
    font-size: 1.5rem;
    color: var(--theme-primary, #ff6961);
}

.pz-production-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--theme-muted, #7a6f68);
    margin: 1rem 0;
}

/* WhatsApp Button */
.pz-whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem 2rem;
    background: #25D366;
    color: #fff;
    border: none;
    border-radius: var(--theme-radius-md, 8px);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    font-family: inherit;
    margin-top: 0.5rem;
}

.pz-whatsapp-btn:hover {
    background: #20BD5A;
}

.pz-whatsapp-btn svg {
    flex-shrink: 0;
}

/* Navigation */
.pz-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.pz-nav .btn {
    min-width: 140px;
}

.pz-nav .btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .pz-title {
        font-size: 1.5rem;
    }

    .pz-grid--3 {
        grid-template-columns: 1fr;
    }

    .pz-grid--2 {
        grid-template-columns: 1fr;
    }

    .pz-content {
        padding: 1.25rem;
    }

    .pz-steps {
        gap: 0;
    }

    .pz-step__line {
        width: 20px;
    }

    .pz-step__circle {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .pz-step__label {
        font-size: 0.65rem;
    }

    .pz-swatch {
        width: 40px;
        height: 40px;
    }

    .pz-nav .btn {
        min-width: auto;
        flex: 1;
    }

    .pz-summary__total strong {
        font-size: 1.25rem;
    }
}

@media (min-width: 769px) and (max-width: 991px) {
    .pz-grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }
}
