/* Desktop Sticky Block */
.sticky-addtocart-block {
    width: 100%;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Mobile Sticky Block */
.sticky-addtocart-mobile {
    width: 100%;
    background-color: #ffffff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

/* Product name with blur fade effect for mobile */
.sticky-product-name-mobile {
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    max-width: 80%;
}

.sticky-product-name-mobile::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
    pointer-events: none;
}

/* Responsive behavior */
@media (min-width: 1024px) {
    .sticky-addtocart-mobile {
        display: none !important;
    }
}

@media (max-width: 1023px) {
    .sticky-addtocart-block {
        display: none !important;
    }
}

/* Button states */
.sticky-addtocart-block button:disabled,
.sticky-addtocart-mobile button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Utility classes for compatibility */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.flex-1 {
    flex: 1;
}

.min-w-0 {
    min-width: 0;
}

.bg-white {
    background-color: #ffffff;
}

.border-b {
    border-bottom-width: 1px;
}

.border-t {
    border-top-width: 1px;
}

.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.w-10 {
    width: 2.5rem;
}

.h-10 {
    height: 2.5rem;
}

.w-12 {
    width: 3rem;
}

.h-12 {
    height: 3rem;
}

.w-4 {
    width: 1rem;
}

.h-4 {
    height: 1rem;
}

.object-cover {
    object-fit: cover;
}

.rounded {
    border-radius: 0.25rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
}

.font-medium {
    font-weight: 500;
}

.font-bold {
    font-weight: 700;
}

.text-gray-900 {
    color: #111827;
}

.text-gray-600 {
    color: #4b5563;
}

.text-white {
    color: #ffffff;
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bg-primary {
    background-color: var(--color-primary, #dc2626);
}

.hover\:bg-primary-dark:hover {
    background-color: var(--color-primary-dark, #b91c1c);
}

/* Custom Sticky Add to Cart Button Styles */
.sticky-addtocart-btn {
    background-color: #006caf;
    color: #ffffff;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    padding: 0.5rem 1.5rem;
}

.sticky-addtocart-btn:hover {
    background-color: #005a94;
}

.sticky-addtocart-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Custom Sticky Add to Cart Button Mobile (Icon Only) */
.sticky-addtocart-btn-mobile {
    background-color: #006caf;
    color: #ffffff;
    border-radius: 50%;
    font-weight: 500;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
}

.sticky-addtocart-btn-mobile:hover {
    background-color: #005a94;
}

.sticky-addtocart-btn-mobile:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.text-primary {
    color: var(--color-primary, #dc2626);
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
}

.duration-200 {
    transition-duration: 200ms;
}

.whitespace-nowrap {
    white-space: nowrap;
}

/* Additional mobile utilities */
.rounded-full {
    border-radius: 50%;
}

.p-3 {
    padding: 0.75rem;
}

.w-5 {
    width: 1.25rem;
}

.h-5 {
    height: 1.25rem;
}

.justify-center {
    justify-content: center;
}
