/**
 * Product Enhancer Styles
 */

/* Hide PrestaShop's default stock warnings and availability messages */
.product-availability,
.product-availability .product-last-items,
.product-availability .product-available,
.product-availability .product-unavailable,
.product-availability .product-last-quantity,
.product-availability span[data-stock],
.product-availability span[data-allow-oosp] {
    display: none !important;
}

/* Trust Badges Styling - High specificity to override theme */
.product-actions .product-trust-badges,
.product-trust-badges {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin: 20px 0 !important;
}

.product-actions .trust-badge,
.product-trust-badges .trust-badge {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 14px !important;
    background: #ffffff !important;
    border: 2px solid #7cbc42 !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08) !important;
    transition: all 0.3s ease !important;
}

.product-actions .trust-badge:hover,
.product-trust-badges .trust-badge:hover {
    background: #f0f8e8 !important;
    box-shadow: 0 4px 10px rgba(124,188,66,0.2) !important;
    transform: translateY(-2px) !important;
    border-color: #6ba835 !important;
}

.product-actions .trust-badge .badge-icon,
.product-trust-badges .trust-badge .badge-icon {
    font-size: 1.3rem !important;
    flex-shrink: 0 !important;
}

.product-actions .trust-badge .badge-text,
.product-trust-badges .trust-badge .badge-text {
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: #2c2c2c !important;
    line-height: 1.2 !important;
    opacity: 1 !important;
}

/* Urgency Messages Styling */
.urgency-message {
    background: linear-gradient(135deg, #fff9f0 0%, #ffffff 100%);
    border-left: 4px solid #ff6b35;
    padding: 12px 16px;
    margin: 20px 0;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.urgency-message p {
    margin: 5px 0;
    color: #333333 !important;
    font-size: 0.95rem;
}

.urgency-message .stock-message {
    font-weight: 600;
    color: #d9534f !important;
}

.urgency-message .popular-message {
    color: #555555 !important;
    font-style: italic;
}

/* Product Specifications Box */
.product-specs-box {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #7cbc42;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(124,188,66,0.15);
}

/* Specs in sidebar - fills the white space on the right */
.product-specs-box.specs-sidebar {
    position: sticky;
    top: 100px;
    margin-top: 0;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.specs-header h3 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.specs-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.specs-list li {
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
    color: #555;
}

.specs-list li:last-child {
    border-bottom: none;
}

.specs-list strong {
    color: #333;
    margin-right: 5px;
}

.specs-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #e0e0e0;
}

.stock-info {
    color: #28a745;
    font-weight: 600;
    margin-bottom: 8px;
}

.next-delivery {
    color: #007bff;
}

/* Bulk Order Notice */
.bulk-order-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    text-align: center;
}

.bulk-order-notice p {
    margin: 5px 0;
}

.bulk-order-notice a {
    color: #d4a574;
    font-weight: bold;
    text-decoration: none;
}

.bulk-order-notice a:hover {
    text-decoration: underline;
}

/* Delivery Information Section */
.delivery-info-section {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
}

.delivery-title {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 600;
    border-bottom: 2px solid #d4a574;
    padding-bottom: 10px;
}

.delivery-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px;
    background: #f0f8ff;
    border-radius: 8px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.highlight-icon {
    color: #28a745;
    font-size: 1.2rem;
    font-weight: bold;
}

.highlight-text {
    color: #333;
}

.delivery-details h4 {
    color: #333;
    font-size: 1.2rem;
    margin: 20px 0 10px;
    font-weight: 600;
}

.delivery-details ul {
    list-style: none;
    padding-left: 20px;
}

.delivery-details li {
    position: relative;
    padding: 5px 0;
    color: #555;
}

.delivery-details li:before {
    content: "•";
    position: absolute;
    left: -15px;
    color: #d4a574;
    font-weight: bold;
}

.delivery-options {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

.delivery-options p {
    margin: 8px 0;
    color: #333;
}

.delivery-restrictions {
    background: #fff5f5;
    border: 1px solid #ffcccc;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
}

.restriction-title {
    color: #d9534f;
    font-weight: 600;
    margin-bottom: 10px;
}

.delivery-restrictions ul {
    margin: 0;
}

.check-postcode {
    color: #007bff;
    text-decoration: underline;
    cursor: pointer;
}

.delivery-contact {
    background: #f0f8ff;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
}

.delivery-contact p {
    margin: 5px 0;
}

.delivery-contact a {
    color: #d4a574;
    font-weight: bold;
    text-decoration: none;
}

.delivery-contact a:hover {
    text-decoration: underline;
}

/* Trust Badges */
.product-trust-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.trust-badge:hover {
    background: #fff;
    border-color: #d4a574;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.badge-icon {
    font-size: 1.3rem;
}

.badge-text {
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
}

/* Urgency Messages */
.urgency-message {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

.stock-message {
    color: #856404;
    margin: 5px 0;
    font-size: 1rem;
}

.popular-message {
    color: #856404;
    margin: 5px 0;
    font-size: 0.95rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .delivery-highlights {
        grid-template-columns: 1fr;
    }

    .product-trust-badges {
        grid-template-columns: 1fr 1fr;
    }

    .product-specs-box {
        padding: 15px;
    }

    .delivery-info-section {
        padding: 15px;
    }
}