/* ================================================
   STICKY FOOTER (ALL SCREENS)
   ================================================ */

.pg-product-sticky-footer {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: var(--pg-white) !important;
    border-top: 1px solid var(--pg-border) !important;
    padding: 14px 20px !important;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15) !important;
    z-index: 9999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.pg-sticky-footer-inner {
    width: 100%;
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
}

/* Desktop: align with right product info column */
@media (min-width: 1024px) {
    .pg-product-sticky-footer {
        padding: 18px 24px !important;
    }

    .pg-sticky-footer-inner {
        max-width: 1320px;
        gap: 24px;
        justify-content: flex-start;
        padding-left: calc(520px + 80px);
    }
}

@media (min-width: 1400px) {
    .pg-sticky-footer-inner {
        padding-left: calc(600px + 80px);
    }
}

/* Price in sticky footer */
.pg-sticky-price {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 100px;
    padding-right: 12px;
}

.pg-sticky-price-label {
    font-size: 11px;
    color: var(--pg-grey);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.pg-sticky-price-line {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    white-space: nowrap;
}

.pg-sticky-price-amount {
    font-size: 20px;
    font-weight: 800;
    color: var(--pg-dark);
    line-height: 1;
    white-space: nowrap;
}

.pg-sticky-price-suffix {
    font-size: 11px;
    font-weight: 600;
    color: var(--pg-grey);
    line-height: 1;
}

/* Show price on all screens now */
@media (min-width: 1024px) {
    .pg-sticky-price {
        min-width: 130px;
        padding-right: 20px;
    }

    .pg-sticky-price-amount {
        font-size: 26px;
    }

    .pg-sticky-price-suffix {
        font-size: 12px;
    }
}

/* Selection summary in sticky footer */
.pg-sticky-selection {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 0 16px;
    border-left: 1px solid var(--pg-border);
    min-width: 180px;
}

.pg-sticky-selection.has-selection {
    display: flex;
}

.pg-sticky-selection-item {
    font-size: 12px;
    line-height: 1.3;
    color: var(--pg-grey);
}

.pg-sticky-selection-item strong {
    color: var(--pg-dark);
    font-weight: 600;
}

@media (min-width: 1024px) {
    .pg-sticky-selection {
        padding: 0 24px;
        min-width: 220px;
    }

    .pg-sticky-selection-item {
        font-size: 13px;
    }
}

/* Hide selection summary on very small screens */
@media (max-width: 640px) {
    .pg-sticky-selection {
        display: none !important;
    }
}

/* Action buttons in sticky footer */
.pg-sticky-actions {
    display: flex;
    gap: 10px;
}

@media (min-width: 1024px) {
    .pg-sticky-actions {
        gap: 12px;
    }
}

.pg-btn-add-cart {
    height: 45px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0 16px;
    border-radius: 2px;
    border: 1px solid var(--pg-galaxy);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.25s ease;
    gap: 6px;
    text-decoration: none;
    background: var(--pg-galaxy);
    color: var(--pg-white);
}

.pg-btn-add-cart:hover {
    background: var(--pg-galaxy-hover);
    border-color: var(--pg-galaxy-hover);
}

.pg-btn-add-cart:active {
    background: var(--pg-galaxy-hover);
}

/* Waiting state — options not yet selected */
.pg-btn-add-cart.is-waiting {
    background: var(--pg-border-light);
    border-color: var(--pg-border-light);
    color: var(--pg-grey);
    cursor: default;
}

.pg-btn-add-cart.is-waiting .pg-btn-cart-icon {
    display: none;
}

/* Disabled buttons (out of stock variation) */
.pg-btn-add-cart.is-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* Button text - always show full text */
.pg-btn-text-short {
    display: none;
}

.pg-btn-text-full {
    display: inline;
}

/* Desktop: larger buttons */
@media (min-width: 1024px) {
    .pg-btn-add-cart {
        height: 50px;
        padding: 0 32px;
        font-size: 15px;
        font-weight: 600;
    }

    .pg-btn-add-cart svg {
        display: block !important;
    }
}
