/* Code Corner Store Engine Frontend Styles */

/* 1. Mobile 1-Click Sticky Bottom Buy Bar */
.cc-sticky-buy-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9995;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.1);
    padding: 10px 16px;
    transform: translateY(150%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cc-sticky-buy-bar.is-visible {
    transform: translateY(0);
}

/* Position directly ABOVE the theme's 64px mobile bottom app bar */
@media (max-width: 768px) {
    body.single-product {
        padding-bottom: 125px !important;
    }
    .cc-sticky-buy-bar {
        bottom: calc(64px + env(safe-area-inset-bottom, 0px));
        transform: translateY(calc(100% + 90px));
    }
    .cc-sticky-buy-bar.is-visible {
        transform: translateY(0);
    }
}

@media (min-width: 769px) {
    .cc-sticky-buy-bar {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
        opacity: 0 !important;
    }
}

.cc-sticky-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.cc-sticky-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.cc-sticky-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.cc-sticky-meta {
    min-width: 0;
}

.cc-sticky-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.cc-sticky-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 3px;
}

.cc-sticky-price {
    font-size: 15px;
    font-weight: 800;
    color: #0284c7;
}

.cc-sticky-price ins {
    text-decoration: none;
    color: #0284c7;
}

.cc-sticky-price del {
    font-size: 12px;
    color: #94a3b8;
    margin-right: 4px;
}

.cc-sticky-rating {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
}

.cc-sticky-action {
    flex-shrink: 0;
}

.cc-sticky-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--cc-accent, #0284c7);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cc-sticky-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.45);
}


