/**
 * Copper Master Storefront - Single Product Page (PDP) Styles
 */

/* Contextual Trust Badges Row */
.cm-pdp-trust-row {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    align-items: center !important;
    background: #FAF7F2 !important;
    border: 1px solid #EBE4DC !important;
    border-radius: 10px !important;
    padding: 10px 4px !important;
    margin: 16px 0 !important;
    gap: 0 !important;
    box-sizing: border-box !important;
}

.cm-pdp-badge-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 5px !important;
    padding: 0 4px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    color: var(--cm-deep-brown, #4A2717) !important;
}

.cm-pdp-badge-item:not(:last-child) {
    border-right: 1px solid #E5DCD1 !important;
}

.cm-pdp-badge-icon {
    width: 22px !important;
    height: 22px !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
}

/* Single Product Buy Box Polish */
.single-product .summary .price {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: var(--cm-copper-dark) !important;
    margin-bottom: 16px !important;
}

.single-product .summary .price del {
    font-size: 16px !important;
    color: var(--cm-gray-500) !important;
    font-weight: 400 !important;
}

.single-product .summary .price ins {
    text-decoration: none;
    color: var(--cm-copper-dark);
}

/* Swatches styling */
.variations .value .wpc-variations,
.variations .value .wd-swatches-product {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Mobile Sticky ATC Bar */
.cm-pdp-sticky-bar {
    display: none;
    position: fixed;
    bottom: 60px; /* Above the 60px mobile dock */
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.1);
    padding: 10px 16px;
    z-index: 9998;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .cm-pdp-sticky-bar.visible {
        display: flex;
    }
}

.cm-sticky-info {
    display: flex;
    flex-direction: column;
    max-width: 55%;
}

.cm-sticky-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--cm-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cm-sticky-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--cm-copper-dark);
}

.cm-sticky-btn {
    background: var(--cm-copper-gradient);
    color: #ffffff;
    border: none;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(184, 115, 51, 0.3);
}
