/* =========================================================
   AI Workflow Templates – Beautiful Frontend Styles
   Works perfectly with Free Elementor + Hello Elementor / Astra Free
   ========================================================= */

:root {
    --awt-primary: #6366f1;          /* Indigo */
    --awt-primary-dark: #4f46e5;
    --awt-primary-light: #e0e7ff;
    --awt-success: #10b981;
    --awt-warning: #f59e0b;
    --awt-danger: #ef4444;
    --awt-text: #1e293b;
    --awt-text-muted: #64748b;
    --awt-border: #e2e8f0;
    --awt-bg: #ffffff;
    --awt-bg-soft: #f8fafc;
    --awt-radius: 12px;
    --awt-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --awt-shadow-hover: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* ========== PRODUCT GRID ========== */
.awt-products-grid {
    display: grid;
    gap: 28px;
    margin: 30px 0;
}

.awt-grid-cols-1 { grid-template-columns: 1fr; }
.awt-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.awt-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.awt-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
    .awt-grid-cols-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .awt-grid-cols-3,
    .awt-grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .awt-grid-cols-2,
    .awt-grid-cols-3,
    .awt-grid-cols-4 { grid-template-columns: 1fr; }
}

/* ========== PRODUCT CARD ========== */
.awt-product-card {
    background: var(--awt-bg);
    border: 1px solid var(--awt-border);
    border-radius: var(--awt-radius);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--awt-shadow);
}

.awt-product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--awt-shadow-hover);
    border-color: #c7d2fe;
}

.awt-card-image-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--awt-bg-soft);
}

.awt-card-image-wrap img,
.awt-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.awt-product-card:hover .awt-card-image {
    transform: scale(1.05);
}

/* Badges on image */
.awt-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    color: #fff;
    z-index: 2;
    letter-spacing: 0.3px;
}

.awt-badge-sale {
    background: var(--awt-danger);
    left: auto;
    right: 12px;
}

.awt-badge-instant {
    background: var(--awt-success);
}

/* Card body */
.awt-card-body {
    padding: 18px 20px 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.awt-card-badges {
    margin-bottom: 8px;
}

.awt-mini-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    background: #ecfdf5;
    color: #059669;
}

.awt-card-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 6px;
    line-height: 1.35;
    color: var(--awt-text);
}

.awt-card-title a {
    color: inherit;
    text-decoration: none;
}

.awt-card-title a:hover {
    color: var(--awt-primary);
}

.awt-card-tagline {
    font-size: 13px;
    color: var(--awt-text-muted);
    margin: 0 0 12px;
    line-height: 1.4;
}

.awt-card-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--awt-text);
    margin-bottom: 16px;
}

.awt-card-price del {
    font-size: 14px;
    color: var(--awt-text-muted);
    margin-right: 6px;
}

.awt-card-price ins {
    text-decoration: none;
    color: var(--awt-primary);
}

/* Buttons */
.awt-card-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.awt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    flex: 1;
    text-align: center;
}

.awt-btn-primary {
    background: var(--awt-primary);
    color: #fff !important;
}

.awt-btn-primary:hover {
    background: var(--awt-primary-dark);
    color: #fff !important;
}

.awt-btn-outline {
    background: transparent;
    color: var(--awt-text) !important;
    border: 1px solid var(--awt-border);
}

.awt-btn-outline:hover {
    border-color: var(--awt-primary);
    color: var(--awt-primary) !important;
    background: var(--awt-primary-light);
}

/* ========== TRUST BADGES ========== */
.awt-trust-badges {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin: 30px 0;
    padding: 24px;
    background: var(--awt-bg-soft);
    border-radius: var(--awt-radius);
    border: 1px solid var(--awt-border);
}

.awt-trust-horizontal {
    justify-content: space-between;
}

.awt-trust-vertical {
    flex-direction: column;
}

.awt-trust-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    flex: 1;
    min-width: 200px;
}

.awt-trust-icon {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
}

.awt-trust-text strong {
    display: block;
    font-size: 15px;
    color: var(--awt-text);
    margin-bottom: 2px;
}

.awt-trust-text span {
    font-size: 13px;
    color: var(--awt-text-muted);
}

/* Single product trust pills */
.awt-single-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 20px;
}

.awt-trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    background: #f1f5f9;
    border-radius: 999px;
    color: var(--awt-text);
}

.awt-trust-pill .icon {
    font-size: 14px;
}

/* ========== SEARCH FORM ========== */
.awt-search-form {
    display: flex;
    max-width: 480px;
    margin: 0 auto 30px;
    border: 1px solid var(--awt-border);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--awt-shadow);
}

.awt-search-input {
    flex: 1;
    border: none;
    padding: 14px 18px;
    font-size: 15px;
    outline: none;
    background: transparent;
}

.awt-search-btn {
    background: var(--awt-primary);
    color: #fff;
    border: none;
    padding: 0 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.2s;
}

.awt-search-btn:hover {
    background: var(--awt-primary-dark);
}

/* ========== CATEGORY FILTERS ========== */
.awt-category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0 30px;
    justify-content: center;
}

.awt-filter-btn {
    display: inline-block;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 999px;
    background: #fff;
    color: var(--awt-text);
    border: 1px solid var(--awt-border);
    text-decoration: none;
    transition: all 0.2s;
}

.awt-filter-btn:hover,
.awt-filter-btn.active {
    background: var(--awt-primary);
    color: #fff !important;
    border-color: var(--awt-primary);
}

/* ========== SINGLE PRODUCT ENHANCEMENTS ========== */
.awt-product-tagline {
    font-size: 16px;
    color: var(--awt-text-muted);
    margin: 4px 0 10px !important;
    font-weight: 500;
}

.awt-product-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--awt-text-muted);
}

.awt-meta-item strong {
    color: var(--awt-text);
}

/* Tabs content */
.awt-tab-content {
    padding: 10px 0;
}

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

.awt-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 15px;
}

.awt-checklist li:last-child {
    border-bottom: none;
}

.awt-check {
    color: var(--awt-success);
    font-weight: 700;
    flex-shrink: 0;
}

/* ========== CART & CHECKOUT polish (works with free Elementor) ========== */
.woocommerce-cart .cart-collaterals,
.woocommerce-checkout .woocommerce {
    max-width: 100%;
}

/* Make sure Elementor pages look clean */
.elementor-widget-shortcode .awt-products-grid,
.elementor-widget-html .awt-products-grid {
    margin-top: 0;
}

/* No products message */
.awt-no-products {
    text-align: center;
    padding: 40px;
    color: var(--awt-text-muted);
    font-size: 16px;
}
