.goya-tshirt-designer {
    margin: 0 0 24px;
    display: grid;
    grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
    gap: 18px 20px;
    align-items: start;
    padding: 18px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    background: #ffe680;
}

.goya-tshirt-designer__header {
    grid-column: 1 / -1;
}

.goya-tshirt-designer__header h3 {
    margin: 0 0 4px;
    font-size: 1.15rem;
}

.goya-tshirt-designer__header p {
    margin: 0;
    color: #5a5a5a;
    font-size: 0.9rem;
}

.goya-tshirt-designer__header-tools {
    display: grid;
    grid-template-columns: minmax(220px, 320px) max-content;
    gap: 12px;
    align-items: end;
    margin-top: 12px;
}

.goya-tshirt-designer__header-color-control .goya-tshirt-designer-page__variation-section {
    gap: 0;
}

.goya-tshirt-designer__header-color-control .goya-tshirt-designer-page__variation-panel {
    padding: 0;
    border: 0;
    background: transparent;
}

.goya-tshirt-designer__header-color-control .goya-tshirt-designer-page__attribute-grid {
    grid-template-columns: 1fr;
}

.goya-tshirt-designer__double-sided-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    background: #ffffff;
    font-weight: 600;
    color: #111111;
    cursor: default;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.goya-tshirt-designer__double-sided-toggle:hover {
    border-color: rgba(0, 0, 0, 0.16);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.goya-tshirt-designer__double-sided-toggle input[type="checkbox"] {
    accent-color: #111111;
}

.goya-tshirt-designer__double-sided-toggle input[type="checkbox"]:disabled {
    opacity: 1;
    cursor: default;
}

.goya-tshirt-designer__side-switcher {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.goya-tshirt-designer__side-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 14px 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    background: #43c9be;
    color: #111111;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.goya-tshirt-designer__side-button:hover,
.goya-tshirt-designer__side-button:focus-visible {
    border-color: rgba(0, 0, 0, 0.16);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
    outline: none;
}

.goya-tshirt-designer__side-button.is-active {
    border-color: #111111;
    background: #43c9be;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.goya-tshirt-designer-page {
    max-width: 1040px;
    margin: 32px auto;
    clear: both;
    position: relative;
    z-index: 1;
}

.goya-tshirt-designer-page__intro {
    margin-bottom: 20px;
}

.goya-tshirt-designer-page__intro h1 {
    margin-bottom: 6px;
}

.goya-tshirt-designer-page__intro p {
    max-width: 760px;
    color: #5a5a5a;
}

.goya-tshirt-designer-page__page-content {
    margin-bottom: 24px;
}

.goya-tshirt-designer-page__title-wrap {
    margin: 28px 0 16px;
}

.goya-tshirt-designer-page__title {
    margin: 0;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.05;
}

.goya-tshirt-designer-page__form {
    display: grid;
    gap: 18px;
}

.goya-tshirt-designer-page__techniques {
    max-width: 760px;
}

.goya-tshirt-designer-page__section-heading h2,
.goya-tshirt-designer-page__selected-product h2 {
    margin: 8px;
    font-size: 1.25rem;
}

.goya-tshirt-designer-page__technique-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.goya-tshirt-designer-page__technique-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.goya-tshirt-designer-page__technique-card-inner {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    background: #ffe680;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.goya-tshirt-designer-page__technique-card input:checked + .goya-tshirt-designer-page__technique-card-inner {
    border-color: #111111;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.goya-tshirt-designer-page__technique-card strong {
    font-size: 1rem;
}

.goya-tshirt-designer-page__technique-card small {
    color: #6b645a;
    font-size: 0.9rem;
}

.goya-tshirt-designer-page__selected-product {
    padding: 14px 16px;
    border-radius: 12px;
    background: #ffffff;
}

.goya-tshirt-designer-page__selected-label {
    margin: 0 0 8px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b645a;
}

.goya-tshirt-designer-page__selected-price {
    margin-top: 6px;
    font-size: 1rem;
}

.goya-tshirt-price-calculator {
    display: grid;
    gap: 14px;
    max-width: 760px;
    margin: 0 auto;
    padding: 18px;
    border-radius: 16px;
    background: #ffe680;
}

.goya-tshirt-price-calculator__header h2 {
    margin: 0;
    font-size: 1.25rem;
}

.goya-tshirt-price-calculator__filter {
    padding: 14px 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    background: #ffe680;
}

.goya-tshirt-price-calculator__selected {
    margin: -4px 0 0;
    color: #6b645a;
    font-size: 0.92rem;
    font-weight: 600;
}

.goya-tshirt-price-calculator__double-sided {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.goya-tshirt-price-calculator__card-price {
    margin-top: 6px;
    color: #111111;
    font-size: 0.95rem;
    font-weight: 700;
}

.goya-tshirt-designer-page__purchase {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}

.goya-tshirt-designer-page__quantity,
.goya-tshirt-designer-page__pricing-card {
    height: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    background: #ffe680;
}

.goya-tshirt-designer-page__quantity-field {
    display: grid;
    gap: 8px;
}

.goya-tshirt-designer-page__stepper {
    display: grid;
    grid-template-columns: 42px minmax(56px, 72px) 42px;
    align-items: stretch;
    gap: 0;
    width: fit-content;
    max-width: 160px;
    justify-self: start;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    background: #ffffff;
    box-sizing: border-box;
    overflow: hidden;
}

.goya-tshirt-designer-page__stepper-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 0;
    border-radius: 0;
    background: #fff7c9;
    color: #111111;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.2s ease;
}

.goya-tshirt-designer-page__stepper-button:hover,
.goya-tshirt-designer-page__stepper-button:focus-visible {
    background: #ffe680;
    outline: none;
}

.goya-tshirt-designer-page__stepper input {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 0;
    text-align: center;
    font-weight: 600;
    border: 0;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
    box-sizing: border-box;
    appearance: none;
}

.goya-tshirt-designer-page__quantity-field span {
    font-size: 0.95rem;
    font-weight: 600;
}

.goya-tshirt-designer-page__size-quantity-label {
    margin: 0 0 10px;
    font-size: 0.95rem;
    font-weight: 600;
}

.goya-tshirt-designer-page__size-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.goya-tshirt-designer-page__size-field {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.goya-tshirt-designer-page__size-field span {
    font-size: 0.9rem;
    font-weight: 600;
}

.goya-tshirt-designer-page__size-field > input {
    width: 100%;
    min-height: 40px;
    padding: 7px 10px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    background: #ffffff;
}

.goya-tshirt-designer-page__size-field .goya-tshirt-designer-page__stepper {
    width: fit-content;
    max-width: 160px;
}

.goya-tshirt-designer-page__quantity-field > input {
    width: 100%;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    background: #ffffff;
    font-size: 1rem;
}

.goya-tshirt-designer-page__quantity-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 0.98rem;
}

.goya-tshirt-designer-page__quantity-total strong {
    font-size: 1.05rem;
    text-align: right;
}

.goya-tshirt-designer-page__pricing-rows {
    display: grid;
    gap: 8px;
}

.goya-tshirt-designer-page__pricing-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.92rem;
}

.goya-tshirt-designer-page__pricing-row strong {
    text-align: right;
}

.goya-tshirt-designer-page__pricing-row--total {
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 1.05rem;
}

.goya-tshirt-designer-page__variation-section {
    display: grid;
    gap: 10px;
}

.goya-tshirt-designer-page__variation-panel {
    padding: 14px 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    background: #ffe680;
}

.goya-tshirt-designer-page__attribute-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.goya-tshirt-designer-page__attribute-field {
    display: grid;
    gap: 6px;
}

.goya-tshirt-designer-page__attribute-field span {
    font-size: 0.9rem;
    font-weight: 600;
}

.goya-tshirt-designer-page__attribute-field select {
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    background: #ffffff;
}

.goya-tshirt-designer-page__variation-status {
    margin: 0;
    color: #9d2f2f;
    font-size: 0.95rem;
}

.goya-tshirt-designer__preview {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 380px;
    margin-bottom: 0;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.goya-tshirt-designer__base {
    display: block;
    width: 100%;
    height: auto;
}

.goya-tshirt-designer__canvas {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.goya-tshirt-designer__side-indicator {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 230, 128, 0.92);
    font-size: 0.8rem;
    font-weight: 700;
}

.goya-tshirt-designer__safe-area {
    position: absolute;
    top: 20%;
    left: 50%;
    height: 40%;
    aspect-ratio: 210 / 297;
    transform: translateX(-50%);
    border: 1px dashed rgba(17, 17, 17, 0.22);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
    z-index: 1;
}

.goya-tshirt-designer__image,
.goya-tshirt-designer__text {
    position: absolute;
    top: 50%;
    left: 50%;
    cursor: grab;
    user-select: none;
    touch-action: none;
}

.goya-tshirt-designer__image {
    width: 32%;
    max-width: 180px;
    transform: translate(-50%, -50%) scale(1);
    transform-origin: center center;
}

.goya-tshirt-designer__text {
    padding: 4px 8px;
    color: #111111;
    font-weight: 700;
    font-size: 32px;
    line-height: 1.1;
    text-align: center;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.25);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    transform: translate(-50%, -50%);
}

.goya-tshirt-designer__image.is-dragging,
.goya-tshirt-designer__text.is-dragging {
    cursor: grabbing;
}

.goya-tshirt-designer__controls {
    display: grid;
    gap: 10px;
    align-content: start;
}

.goya-tshirt-designer__side-panel.is-active {
    display: grid;
    gap: 10px;
}

.goya-tshirt-designer__side-panel[hidden] {
    display: none;
}

.goya-tshirt-designer__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.goya-tshirt-designer__field {
    display: grid;
    gap: 6px;
}

.goya-tshirt-designer__field span {
    font-size: 0.9rem;
    font-weight: 600;
}

.goya-tshirt-designer__field-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
}

.goya-tshirt-designer__field-head strong {
    font-size: 0.82rem;
    font-weight: 700;
    color: #6b645a;
}

.goya-tshirt-designer__field input[type="text"],
.goya-tshirt-designer__field textarea,
.goya-tshirt-designer__field input[type="file"],
.goya-tshirt-designer__field input[type="range"],
.goya-tshirt-designer__field input[type="color"],
.goya-tshirt-designer__field select {
    width: 100%;
}

.goya-tshirt-designer__field input[type="text"],
.goya-tshirt-designer__field textarea,
.goya-tshirt-designer__field select {
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    background: #ffffff;
}

.goya-tshirt-designer__field textarea {
    resize: vertical;
    min-height: 88px;
    line-height: 1.35;
}

.goya-tshirt-designer__field input[type="color"] {
    -webkit-appearance: none;
    appearance: none;
    min-height: 42px;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    background: #ffffff;
    overflow: hidden;
    cursor: pointer;
}

.goya-tshirt-designer__field input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.goya-tshirt-designer__field input[type="color"]::-webkit-color-swatch {
    border: 0;
    border-radius: 8px;
}

.goya-tshirt-designer__field input[type="color"]::-moz-color-swatch {
    border: 0;
    border-radius: 8px;
}

.goya-tshirt-designer__field-help {
    display: block;
    margin-top: 2px;
    color: #6b645a;
    font-size: 0.78rem;
    line-height: 1.4;
}

.goya-tshirt-designer__hint {
    margin: 0;
    color: #6b645a;
    font-size: 0.85rem;
}

.goya-tshirt-designer__order-preview-wrap {
    margin-top: 8px;
}

.goya-tshirt-designer__order-preview {
    display: inline-block;
    max-width: 140px;
}

.goya-tshirt-designer__order-preview img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
}

.goya-tshirt-designer__order-preview--checkout {
    max-width: 120px;
    margin-top: 10px;
}

.goya-tshirt-designer__order-preview--email {
    max-width: 180px;
}

.is-hidden {
    display: none;
}

@media (max-width: 767px) {
    .goya-tshirt-designer-page {
        margin: 28px auto;
    }

    .goya-tshirt-designer-page__technique-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .goya-tshirt-designer-page__purchase {
        grid-template-columns: 1fr;
    }

    .goya-tshirt-designer-page__attribute-grid {
        grid-template-columns: 1fr;
    }

    .goya-tshirt-designer-page__size-grid {
        grid-template-columns: 1fr 1fr;
    }

    .goya-tshirt-designer {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 16px;
    }

    .goya-tshirt-designer__header-tools {
        grid-template-columns: 1fr;
    }

    .goya-tshirt-designer__grid {
        grid-template-columns: 1fr;
    }
}
