/* -- PT68 Variation Attributes - FanMerch theme adaptive -- */

.pt68-variation-attributes {
    margin-bottom: 24px;
}

.pt68-variation-attributes h4,
.pt68-custom-options .form-control label h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-family: 'Barlow Condensed', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #1F2937;
}

.pt68-custom-options {
    width: 100%;
}

.pt68-custom-options .form-control {
    margin-bottom: 16px;
}

.pt68-custom-options .form-control .form-input {
    box-sizing: border-box;
    width: 100%;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 12px 16px;
    font-family: 'Barlow', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1rem;
    background: #fff;
    transition: border-color 150ms ease;
}

.pt68-custom-options .form-control .form-input:focus {
    border-color: #DC2626;
    outline: none;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.15);
}

.pt68-custom-options .form-control select.form-input {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

.pt68-custom-options .form-control p.helper-block {
    margin: 0;
    font-size: 0.85em;
    color: #6B7280;
    margin-top: 6px;
}

/* -- Variant option list -- */

.pt68-variation-attributes ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pt68-variation-attributes li {
    display: inline-block;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.pt68-variation-attributes li label {
    display: block;
    cursor: pointer;
}

.pt68-variation-attributes li input[type="radio"] {
    display: none;
}

/* -- Shared variant pill styles -- */

.pt68-variation-attributes li.text-attribute label,
.pt68-variation-attributes li.image-attribute label,
.pt68-variation-attributes li.color-attribute label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 6px 12px;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    font-family: 'Barlow', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: #1F2937;
    background: #fff;
    transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
    cursor: pointer;
}

/* -- Image variant -- */

.pt68-variation-attributes li.image-attribute label {
    padding: 5px 10px;
    gap: 6px;
}

.pt68-variation-attributes li.image-attribute label img {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
}

.pt68-variation-attributes li img.variable-item-image {
    width: 36px;
    height: 36px;
    margin-bottom: 0;
    border-radius: 5px;
    object-fit: cover;
}

/* -- Color swatch -- */

.color-swatch {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

/* -- Label text -- */

.attr-label-text {
    font-size: 0.85rem;
    line-height: 1.3;
    font-weight: 500;
}

/* -- Selected state -- */

.pt68-variation-attributes li.text-attribute input:checked + label,
.pt68-variation-attributes li.image-attribute input:checked + label,
.pt68-variation-attributes li.color-attribute input:checked + label {
    border-color: #DC2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
    background: #FEF2F2;
}

/* -- Hover state -- */

.pt68-variation-attributes li.text-attribute label:hover,
.pt68-variation-attributes li.image-attribute label:hover,
.pt68-variation-attributes li.color-attribute label:hover {
    border-color: #9CA3AF;
}

.pt68-variation-attributes li.text-attribute input:checked + label:hover,
.pt68-variation-attributes li.image-attribute input:checked + label:hover,
.pt68-variation-attributes li.color-attribute input:checked + label:hover {
    border-color: #B91C1C !important;
}

/* -- Mobile variant scaling -- */

@media (max-width: 768px) {
    .pt68-variation-attributes ul {
        gap: 6px;
    }

    .pt68-variation-attributes li.text-attribute label,
    .pt68-variation-attributes li.image-attribute label,
    .pt68-variation-attributes li.color-attribute label {
        min-height: 32px;
        padding: 5px 10px;
        font-size: 0.78rem;
        gap: 6px;
        border-radius: 8px;
    }

    .pt68-variation-attributes li.image-attribute label {
        padding: 4px 8px;
    }

    .pt68-variation-attributes li.image-attribute label img,
    .pt68-variation-attributes li img.variable-item-image {
        width: 30px;
        height: 30px;
    }

    .color-swatch {
        width: 18px;
        height: 18px;
    }

    .attr-label-text {
        font-size: 0.78rem;
    }

    .pt68-variation-attributes h4,
    .pt68-custom-options .form-control label h4 {
        font-size: 0.82rem;
        margin-bottom: 6px;
    }
}

/* Desktop: variant list slightly bigger spacing */
@media (min-width: 1024px) {
    .pt68-variation-attributes ul {
        gap: 10px;
    }

    .pt68-variation-attributes li.text-attribute label,
    .pt68-variation-attributes li.image-attribute label,
    .pt68-variation-attributes li.color-attribute label {
        min-height: 40px;
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .pt68-variation-attributes li.image-attribute label img,
    .pt68-variation-attributes li img.variable-item-image {
        width: 44px;
        height: 44px;
    }

    .color-swatch {
        width: 24px;
        height: 24px;
    }
}

/* -- Sticky add-to-cart bar -- */

.pt68-sticky-bar * {
    margin-bottom: 0;
}

.pt68-sticky-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-top: 1px solid #E5E7EB;
    box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.08);
    padding: 10px 16px;
    box-sizing: border-box;
}

.pt68-sticky-bar.visible {
    display: block;
}

.pt68-sticky-bar-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.pt68-sticky-bar-inner::-webkit-scrollbar {
    display: none;
}

/* Product info */
.pt68-sticky-product {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.pt68-sticky-thumb {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.pt68-sticky-info {
    min-width: 80px;
    max-width: 120px;
}

.pt68-sticky-name {
    font-size: 11px;
    font-weight: 600;
    font-family: 'Barlow', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.3;
    color: #1F2937;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.pt68-sticky-price {
    font-size: 12px;
    font-weight: 600;
    color: #DC2626;
    margin-top: 2px;
}

/* Controls (selects + inputs) */
.pt68-sticky-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.pt68-sticky-control {
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.pt68-sticky-select {
    height: 36px;
    padding: 0 24px 0 8px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-family: 'Barlow', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 12px;
    background: #fff;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236B7280'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 7px center;
    max-width: 110px;
    cursor: pointer;
    transition: border-color 150ms ease;
}

.pt68-sticky-select:focus {
    border-color: #DC2626;
    outline: none;
}

.pt68-sticky-input-wrap {
    position: relative;
}

.pt68-sticky-label {
    font-family: 'Barlow', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #1F2937;
    margin-bottom: 4px;
}

.pt68-sticky-input {
    height: 36px;
    padding: 0 32px 0 8px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-family: 'Barlow', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 12px;
    width: 120px;
    box-sizing: border-box;
    transition: border-color 150ms ease;
}

.pt68-sticky-input:focus {
    border-color: #DC2626;
    outline: none;
}

.pt68-sticky-counter {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: #9CA3AF;
    pointer-events: none;
}

/* Qty stepper */
.pt68-sticky-qty {
    display: flex;
    align-items: center;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    height: 40px;
    width: auto;
    background: #fff;
}

.pt68-sticky-qty-btn {
    width: 38px;
    min-width: 38px;
    height: 40px;
    background: #fff;
    border: none;
    font-size: 20px;
    font-weight: 300;
    color: #1F2937 !important;
    cursor: pointer;
    line-height: 40px;
    padding: 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
    transition: background 150ms ease;
}

.pt68-sticky-qty-btn:hover {
    background: #F3F4F6;
}

.pt68-sticky-qty-input {
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 40px;
    border: none;
    border-left: 1px solid #E5E7EB;
    border-right: 1px solid #E5E7EB;
    text-align: center;
    font-family: 'Barlow', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px !important;
    font-weight: 500;
    color: #1F2937 !important;
    -moz-appearance: textfield;
    padding: 0;
    box-sizing: border-box;
    background: #fff !important;
    flex-shrink: 0;
}

.pt68-sticky-qty-input::-webkit-outer-spin-button,
.pt68-sticky-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

/* Qty + button wrapper */
.pt68-sticky-bottom {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Add to cart button */
.pt68-sticky-bar-btn {
    flex-shrink: 0;
    height: 40px;
    padding: 0 24px !important;
    font-family: 'Barlow Condensed', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 50px !important;
    background: #FBBF24 !important;
    color: #7C2D12 !important;
    border: none !important;
    transition: background 150ms ease, transform 100ms ease;
    cursor: pointer;
}

.pt68-sticky-bar-btn:hover {
    background: #F59E0B !important;
    transform: translateY(-1px);
}

.pt68-sticky-bar-btn:active {
    transform: scale(0.98);
}

/* -- Mobile -- */

@media (max-width: 768px) {
    .pt68-sticky-bar-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        overflow-x: visible;
    }

    .pt68-sticky-product {
        display: none;
    }

    .pt68-sticky-controls {
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
    }

    .pt68-sticky-control.pt68-sticky-input-wrap {
        flex-basis: 100%;
        width: 100%;
    }

    .pt68-sticky-input {
        width: 100%;
        height: 44px;
        font-size: 14px;
        border-radius: 10px;
        box-sizing: border-box;
    }

    .pt68-sticky-control:not(.pt68-sticky-input-wrap) {
        flex: 1;
        min-width: 0;
    }

    .pt68-sticky-select {
        width: 100%;
        height: 44px;
        font-size: 13px;
        border-radius: 10px;
        max-width: none;
        padding: 0 28px 0 10px;
    }

    .pt68-sticky-bottom {
        width: 100%;
        gap: 10px;
    }

    .pt68-sticky-qty {
        flex-shrink: 0;
        height: 48px;
        width: auto;
    }

    .pt68-sticky-qty-btn {
        width: 44px;
        min-width: 44px;
        height: 48px;
        font-size: 22px;
        line-height: 48px;
    }

    .pt68-sticky-qty-input {
        width: 50px !important;
        min-width: 50px !important;
        max-width: 50px !important;
        height: 48px;
        font-size: 16px !important;
    }

    .pt68-sticky-bar-btn {
        flex: 1;
        height: 48px !important;
        font-size: 15px !important;
        border-radius: 10px;
        letter-spacing: 1px;
    }
}

/* Desktop: push controls right */
@media (min-width: 769px) {
    .pt68-sticky-controls {
        margin-left: auto;
    }
}

/* -- Trust badge -- */

.pt68-trust-badge {
    display: block;
    margin-bottom: 12px;
}

.pt68-badge-image {
    max-width: 100%;
    height: auto;
    display: block;
}

/* -- Toast notification -- */

.pt68-toast {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(16px);
    background: rgba(220, 38, 38, 0.95);
    color: #fff;
    padding: 12px 24px;
    border-radius: 12px;
    font-family: 'Barlow', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 500;
    z-index: 100000;
    opacity: 0;
    transition: opacity 300ms ease, transform 300ms ease;
    pointer-events: none;
    max-width: 90vw;
    text-align: center;
    white-space: normal;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.pt68-toast.pt68-toast-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* -- Required field error -- */

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

.pt68-field-error {
    border-color: #DC2626 !important;
    animation: pt68-shake 0.4s ease;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2) !important;
}

/* -- Archive/category page color swatches -- */

.pt68-archive-colors {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 6px 0 4px;
}

.pt68-archive-swatch {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    display: inline-block;
    flex-shrink: 0;
}

/* -- Radio options styling -- */

.pt68-custom-options .radio-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pt68-custom-options .radio-option {
    display: flex;
    align-items: center;
}

.pt68-custom-options .radio-option input[type="radio"] {
    display: none;
}

.pt68-custom-options .radio-option label {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 5px 14px;
    border: 1px solid #E5E7EB;
    border-radius: 50px;
    font-family: 'Barlow', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    color: #6B7280;
    cursor: pointer;
    transition: all 150ms ease;
}

.pt68-custom-options .radio-option label:hover {
    border-color: #9CA3AF;
    color: #1F2937;
}

.pt68-custom-options .radio-option input:checked + label {
    background: #DC2626;
    border-color: #DC2626;
    color: #fff;
}
