/* ============================================================
   TaLe Coffee Products Widget — tcp-style.css
   ============================================================ */

/* ---------- WIDGET WRAP ---------- */
.tcp-widget-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #f5f3ef;
    padding: 40px 24px;
    border-radius: 16px;
}

/* ---------- SECTION HEADER ---------- */
.tcp-section-header {
    text-align: center;
    margin-bottom: 36px;
}

.tcp-main-heading {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px;
    letter-spacing: -0.3px;
}

.tcp-sub-heading {
    font-size: 14px;
    color: #666;
    margin: 0 0 16px;
}

.tcp-heading-divider {
    display: inline-block;
    width: 32px;
    height: 2px;
    background: #1e3a2f;
    border-radius: 2px;
}

/* ---------- NO PRODUCTS ---------- */
.tcp-no-products {
    text-align: center;
    color: #888;
    padding: 40px;
}

/* ============================================================
   LIST LAYOUT
   ============================================================ */
.tcp-list-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tcp-list-layout .tcp-product-card {
    display: flex;
    flex-direction: row;
    gap: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
}

.tcp-list-layout .tcp-product-image-wrap {
    width: 280px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.tcp-list-layout .tcp-product-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.tcp-list-layout .tcp-product-card:hover .tcp-product-image-wrap img {
    transform: scale(1.03);
}

.tcp-list-layout .tcp-product-details {
    flex: 1;
    padding: 28px 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ============================================================
   GRID LAYOUT
   ============================================================ */
.tcp-grid-layout {
    display: grid;
    gap: 20px;
}

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

.tcp-grid-layout .tcp-product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
}

.tcp-grid-layout .tcp-product-image-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.tcp-grid-layout .tcp-product-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.tcp-grid-layout .tcp-product-card:hover .tcp-product-image-wrap img {
    transform: scale(1.04);
}

.tcp-grid-layout .tcp-product-details {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

/* ============================================================
   CARD SHADOW
   ============================================================ */
.tcp-card-shadow {
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* ============================================================
   BADGES
   ============================================================ */
.tcp-badge {
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 3px 8px;
    border-radius: 4px;
    line-height: 1.4;
}

.tcp-badge-bestseller {
    background-color: #d4edda;
    color: #1a6a36;
    border: 1px solid #a8d5b5;
}

.tcp-badge-sale {
    background-color: #e74c3c;
    color: #fff;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.tcp-badge-featured {
    background-color: #f39c12;
    color: #fff;
}

/* ============================================================
   TITLE ROW
   ============================================================ */
.tcp-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tcp-product-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
}

.tcp-product-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.tcp-product-title a:hover {
    color: #1e3a2f;
}

.tcp-grid-layout .tcp-product-title {
    font-size: 16px;
}

/* ============================================================
   ATTRIBUTES ROW
   ============================================================ */
.tcp-attr-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tcp-attr-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #555;
    background: #f5f3ef;
    border-radius: 30px;
    padding: 4px 10px;
}

.tcp-attr-chip svg {
    width: 13px;
    height: 13px;
    stroke: #888;
    flex-shrink: 0;
}

/* ============================================================
   CATEGORY ROW
   ============================================================ */
.tcp-category-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #888;
    margin-bottom: -4px;
}

.tcp-category-row svg {
    width: 13px;
    height: 13px;
    stroke: #aaa;
    flex-shrink: 0;
}

.tcp-cat-link {
    color: #5a8a6a;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.tcp-cat-link:hover {
    color: #1e3a2f;
    text-decoration: underline;
}

/* ============================================================
   SHORT DESCRIPTION
   ============================================================ */
.tcp-short-desc {
    font-size: 13.5px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.tcp-short-desc p { margin: 0; }

/* ============================================================
   TASTING NOTES
   ============================================================ */
.tcp-tasting-notes {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tcp-tasting-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
}

.tcp-tasting-values {
    font-size: 13px;
    color: #444;
    font-weight: 500;
}

/* ============================================================
   PRICE + CART ROW
   ============================================================ */
.tcp-price-cart-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 4px;
    flex-wrap: wrap;
    gap: 12px;
}

.tcp-price-weight-wrap {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

.tcp-weight-label {
    font-size: 13px;
    color: #888;
    font-weight: 400;
}

.tcp-price {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

.tcp-price .woocommerce-Price-amount {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

.tcp-price ins {
    text-decoration: none;
}

.tcp-price del {
    opacity: 0.5;
    margin-right: 6px;
    font-size: 14px;
}

/* ============================================================
   ADD TO CART BUTTON
   ============================================================ */
.tcp-add-to-cart {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #1e3a2f;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.15s;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.tcp-add-to-cart svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    flex-shrink: 0;
}

.tcp-add-to-cart:hover {
    background-color: #15291f;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.tcp-add-to-cart:active {
    transform: translateY(0);
}

.tcp-add-to-cart.loading {
    opacity: 0.7;
    pointer-events: none;
}

.tcp-add-to-cart.added {
    background-color: #27ae60;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.tcp-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 36px;
    flex-wrap: wrap;
}

.tcp-page-btn {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #333;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tcp-page-btn:hover {
    border-color: #1e3a2f;
    color: #1e3a2f;
    background: #f0f5f2;
}

.tcp-page-btn.tcp-page-active {
    background: #1e3a2f;
    border-color: #1e3a2f;
    color: #fff;
    cursor: default;
}

.tcp-prev-btn,
.tcp-next-btn {
    font-size: 15px;
    font-weight: 700;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .tcp-grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
    .tcp-grid-cols-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .tcp-list-layout .tcp-product-card {
        flex-direction: column;
    }
    .tcp-list-layout .tcp-product-image-wrap {
        width: 100%;
        height: 220px;
    }
    .tcp-grid-cols-2,
    .tcp-grid-cols-3,
    .tcp-grid-cols-4 {
        grid-template-columns: 1fr;
    }
    .tcp-price-cart-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .tcp-add-to-cart {
        width: 100%;
        justify-content: center;
    }
}
