/* ================================================
   THC Sticky ATC — v1.2.0
   ONLY adds the sticky bar at bottom.
   Zero changes to existing page layout.
   ================================================ */

:root { --thc-pink: #e2007a; }

/* Sticky bar — fixed at bottom, hidden by default */
#thc-satc-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999999;
    background: #fff;
    box-shadow: 0 -2px 16px rgba(0,0,0,0.12);
    transform: translateY(110%);
    transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    visibility: hidden;
    will-change: transform;
}

#thc-satc-bar.thc-show {
    transform: translateY(0);
    visibility: visible;
}

.thc-satc-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px 12px;
    max-width: 700px;
    margin: 0 auto;
}

.thc-satc-thumb {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    border: 1px solid #eee;
}

.thc-satc-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.thc-satc-name {
    font-size: 12px;
    font-weight: 600;
    color: #111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.thc-satc-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--thc-pink);
}

.thc-satc-price ins { text-decoration: none; }

#thc-satc-btn {
    flex-shrink: 0;
    background: var(--thc-pink) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 999px !important;
    padding: 12px 20px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer;
    min-height: 44px;
    white-space: nowrap;
    line-height: 1.4 !important;
    text-transform: none !important;
}

#thc-satc-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Hide on desktop */
@media (min-width: 1025px) {
    #thc-satc-bar { display: none !important; }
}

/* Push WhatsApp up when bar is visible */
@media (max-width: 1024px) {
    .single-product .xoo-wsc-basket {
        display: none !important;
    }
}
