/* Agro Custom Statuses & Request Orders - Frontend CSS */

/* --- Single Product Status Box --- */
.agro-product-status-box {
    margin: 16px 0;
    padding: 16px 20px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.agro-product-status-box:hover {
    box-shadow: 0 8px 30px -4px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.agro-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    line-height: 1.3;
    letter-spacing: 0.01em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s ease;
}

/* Single Product Badges */
.agro-badge-instock {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.agro-badge-inquire {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.agro-badge-on-order {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.agro-badge-outofstock {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
}

.agro-status-subtitle {
    margin-top: 8px;
    font-size: 14px;
    color: #475569;
    font-weight: 500;
}

.agro-status-delivery-note {
    margin-top: 6px;
    font-size: 13px;
    color: #0284c7;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}


/* --- Catalog Dot Status Indicators (As shown in screenshot) --- */
.agro-catalog-status {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 6px 0 10px 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}

.agro-catalog-dot {
    font-size: 18px;
    line-height: 1;
    display: inline-block;
}

/* 1. Dot «В наявності» */
.agro-dot-instock, 
.agro-dot-instock .agro-catalog-dot {
    color: #489B53 !important;
}

/* 2. Dot «Уточнюйте» */
.agro-dot-inquire, 
.agro-dot-inquire .agro-catalog-dot {
    color: #C0B152 !important;
}

/* 3. Dot «Під замовлення» */
.agro-dot-on-order, 
.agro-dot-on-order .agro-catalog-dot {
    color: #5C6BC0 !important;
}

/* 4. Dot «Немає в наявності» */
.agro-dot-outofstock, 
.agro-dot-outofstock .agro-catalog-dot {
    color: #E53935 !important;
}


/* --- Catalog View Button (Колір #044F3B, Круглі кути «ПЕРЕГЛЯНУТИ») --- */
.agro-loop-btn-wrapper {
    margin-top: 10px;
}

.wd-add-btn a.button.agro-btn-view,
.wd-add-btn .agro-btn-view,
.woocommerce ul.products li.product a.button.agro-btn-view,
.woocommerce a.button.agro-btn-view,
a.agro-btn-view {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #044F3B !important;
    color: #FFFFFF !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    padding: 10px 22px !important;
    border-radius: 30px !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(4, 79, 59, 0.25) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none !important;
    cursor: pointer !important;
    margin: 4px 0 !important;
    width: auto !important;
}

.wd-add-btn a.button.agro-btn-view:hover,
.wd-add-btn .agro-btn-view:hover,
.woocommerce ul.products li.product a.button.agro-btn-view:hover,
.woocommerce a.button.agro-btn-view:hover,
a.agro-btn-view:hover {
    background-color: #033B2C !important;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(4, 79, 59, 0.4) !important;
    transform: translateY(-2px) !important;
}


/* --- Thank You Page Banner --- */
.agro-thankyou-banner {
    margin: 24px 0 32px 0;
    padding: 28px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.3);
    position: relative;
    overflow: hidden;
}

.agro-thankyou-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, rgba(255,255,255,0) 70%);
    pointer-events: none;
}

.agro-thankyou-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.agro-thankyou-icon {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.agro-thankyou-title {
    margin: 0 0 6px 0 !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    line-height: 1.3 !important;
}

.agro-thankyou-subtitle {
    margin: 0;
    font-size: 15px;
    color: #94a3b8;
    line-height: 1.5;
}

.agro-thankyou-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.agro-thankyou-detail-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.agro-thankyou-detail-item .detail-label {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.agro-thankyou-detail-item .detail-value {
    font-size: 15px;
    font-weight: 600;
    color: #38bdf8;
}
