/* Hide quantity selector only within the add to cart block */
.p-to-cart-block .quantity {
    display: none !important;
}

/* Alternative more specific targeting if needed */
.p-to-cart-block .add-to-cart .quantity {
    display: none !important;
}

/* Product name styling */
.product-name-clean {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4em;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-name-clean:hover {
    color: #007bff;
}

/* Reduce vertical spacing more aggressively */
.p-in {
    padding: 6px 15px 4px !important;
}

.p-in-in {
    margin-bottom: 4px !important;
}

.name {
    margin-bottom: 3px !important;
}

.spec-bubbles {
    margin-top: 2px !important;
    margin-bottom: 4px !important;
}

.ratings-wrapper {
    margin-top: 3px !important;
    margin-bottom: 3px !important;
}

.p-bottom {
    padding-top: 4px !important;
}

.prices {
    margin-bottom: 4px !important;
    padding: 4px 0 !important;
}

.p-tools {
    margin-top: 3px !important;
}

.availability {
    margin-top: 2px !important;
    margin-bottom: 2px !important;
}

/* Simple availability styling */
.availability span {
    font-size: 0.9em;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* In stock - green */
.availability span[style*="color:#008000"],
.availability span[style*="color:green"] {
    color: #28a745 !important;
}

/* Out of stock - red */
.availability span[style*="color:#d00000"],
.availability span[style*="color:red"] {
    color: #dc3545 !important;
}

/* Add to cart button redesign */
.btn-cart {
    background: linear-gradient(135deg, #19998C, #16A085) !important;
    color: white !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 8px 16px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 4px rgba(25, 153, 140, 0.3) !important;
    width: 100% !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    font-size: 0.85em !important;
}

.btn-cart:hover {
    background: linear-gradient(135deg, #16A085, #138D75) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(25, 153, 140, 0.4) !important;
    color: white !important;
}

.btn-cart:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 4px rgba(25, 153, 140, 0.3) !important;
}

/* Force button text to be visible with aggressive overrides */
.btn-cart {
    font-size: 14px !important;
    color: white !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.btn-cart * {
    color: white !important;
    font-size: inherit !important;
    visibility: visible !important;
    opacity: 1 !important;
    display: inline !important;
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    text-indent: 0 !important;
    font-family: inherit !important;
}

/* Price styling */
.price-final {
    text-align: center !important;
    margin: 12px 0 !important;
}

.price-final strong {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 1.8em !important;
    font-weight: 700 !important;
    color: #2c3e50 !important;
    letter-spacing: -0.5px !important;
    text-shadow: none !important;
}

/* Add subtle styling around price */
.prices {
    position: relative !important;
    padding: 8px 0 !important;
}

.prices::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 20% !important;
    right: 20% !important;
    height: 1px !important;
    background: linear-gradient(90deg, transparent, #e0e0e0, transparent) !important;
}

/* Simple teal border hover effect */
.products-block > div {
    border: 1px solid transparent !important;
    border-radius: 8px !important;
    transition: border-color 0.3s ease !important;
}

.products-block > div:hover {
    border-color: #19998C !important;
}

/* Product flags custom design - truly universal with scalable backgrounds */
.flags {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    max-width: calc(100% - 24px) !important;
    z-index: 10 !important;
}

.flag {
    padding: 4px 8px !important;
    border-radius: 12px !important;
    font-size: 0.7em !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    box-shadow: 
        inset 0 1px 2px rgba(255, 255, 255, 0.3),
        0 2px 6px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    transition: all 0.2s ease !important;
    backdrop-filter: blur(10px) !important;
    white-space: nowrap !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
    /* Key changes for scalability */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: auto !important;
    max-width: none !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    text-align: center !important;
    line-height: 1.2 !important;
}

/* Specific flag overrides (optional) */
.flag-action {
    background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
    color: white !important;
}

.flag-new {
    background: linear-gradient(135deg, #27ae60, #229954) !important;
    color: white !important;
}

.flag-sale {
    background: linear-gradient(135deg, #f39c12, #e67e22) !important;
    color: white !important;
}

/* Price discount flag - special styling */
.flag-discount {
    background: transparent !important;
    color: #19998C !important;
    border: 1px solid #19998C !important;
    backdrop-filter: none !important;
    text-shadow: none !important;
    /* Ensure it scales properly too */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
}

.flag-discount .price-standard,
.flag-discount .price-save {
    color: #19998C !important;
    white-space: nowrap !important;
}

.flag-discount:hover {
    background: rgba(25, 153, 140, 0.1) !important;
    color: #19998C !important;
}

/* Hover effect for all flags */
.flag:hover {
    transform: scale(1.05) !important;
    box-shadow: 
        inset 0 1px 2px rgba(255, 255, 255, 0.4),
        0 3px 8px rgba(0, 0, 0, 0.2) !important;
}

/* Top products section overrides */
.products-top .p {
    border: 1px solid #e8e8e8 !important;
    border-radius: 8px !important;
    background: #fafafa !important;
    transition: all 0.3s ease !important;
}

.products-top .p:hover {
    border-color: #19998C !important;
    background: #ffffff !important;
    box-shadow: 0 4px 12px rgba(25, 153, 140, 0.1) !important;
}

.products-top .p-in {
    padding: 8px 12px !important;
    width: auto !important;
    min-width: 200px !important;
    text-align: left !important;
}

.products-top .p-in-in {
    text-align: left !important;
    margin-bottom: 6px !important;
}

.products-top .name {
    text-align: left !important;
}

.products-top .spec-bubbles {
    text-align: left !important;
    justify-content: flex-start !important;
}

.products-top .ratings-wrapper {
    text-align: left !important;
}

.products-top .availability {
    text-align: left !important;
}

.products-top .p-code {
    text-align: left !important;
}

.products-top .prices {
    text-align: left !important;
}

.products-top .price-final {
    text-align: left !important;
    margin: 8px 0 !important;
}