/* ==========================================================================
   AG Associates - Unified Product Card Design System
   Matches Home Page (.ag-product-card) Aesthetics Across Entire Site
   ========================================================================== */

/* Product Card Base */
.ag-product-card {
    background: #ffffff;
    border: 1.5px solid #edf0f5;
    border-radius: 16px;
    padding: 24px 18px 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: center;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    box-sizing: border-box;
}

.ag-product-card:hover {
    transform: translateY(-8px);
    border-color: #f37021;
    box-shadow: 0 16px 36px rgba(243, 112, 33, 0.14), 0 4px 12px rgba(0, 0, 0, 0.04);
}

/* Discount Badge */
.ag-prod-discount-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #16a34a;
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.4px;
    line-height: 1.2;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.28);
    pointer-events: none;
    text-transform: uppercase;
    transition: transform 0.25s ease;
}

.ag-product-card:hover .ag-prod-discount-tag {
    transform: scale(1.06);
}

/* Image Container */
.ag-prod-img-wrap {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    outline: none;
    margin-bottom: 16px;
}

.ag-prod-img-wrap img {
    max-height: 185px;
    max-width: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.ag-product-card:hover .ag-prod-img-wrap img {
    transform: scale(1.06);
}

/* Product Info */
.ag-prod-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    align-items: center;
    width: 100%;
}

.ag-prod-title-link {
    text-decoration: none !important;
    outline: none;
    display: block;
    margin-bottom: 10px;
    width: 100%;
}

.ag-prod-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #111111;
    line-height: 1.4;
    text-align: center;
    margin: 0;
    min-height: 42px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.25s ease;
}

.ag-product-card:hover .ag-prod-title {
    color: #f37021;
}

/* Pricing */
.ag-prod-price-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 3px;
    width: 100%;
}

.ag-prod-old-price {
    font-size: 14.5px;
    font-weight: 500;
    color: #94a3b8;
    text-decoration: line-through;
}

.ag-prod-new-price {
    font-size: 17.5px;
    font-weight: 800;
    color: #111111;
    letter-spacing: -0.2px;
}

/* Tax Note */
.ag-prod-tax-note {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 4px;
}

/* CTA Button */
.ag-prod-btn-wrap {
    margin-top: auto;
    width: 100%;
}

.ag-prod-view-btn {
    display: inline-block !important;
    padding: 9px 30px !important;
    border: 1.8px solid #f37021 !important;
    background: transparent !important;
    color: #f37021 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    text-align: center !important;
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
    outline: none !important;
    line-height: 1.2 !important;
}

.ag-prod-view-btn:hover {
    background: #f37021 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(243, 112, 33, 0.35) !important;
    transform: translateY(-2px);
}

/* Grid item wrapper for Bootstrap columns */
.ag-shop-grid-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}

.ag-shop-grid-item .ag-product-card {
    width: 100%;
    height: 100%;
}

/* Slick Carousel Slide Integration */
.slick_slider .slick-track {
    display: flex !important;
}

.slick_slider .slick-slide {
    height: inherit !important;
    display: flex !important;
    flex-direction: column;
}

.ag-related-slider-item {
    padding: 10px 10px 18px;
    height: 100%;
    outline: none;
    box-sizing: border-box;
    display: flex !important;
    flex-direction: column;
}

.ag-related-slider-item .ag-product-card {
    margin: 0;
    width: 100%;
    height: 100%;
    flex-grow: 1;
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .ag-product-card {
        padding: 18px 14px 20px;
        border-radius: 12px;
    }

    .ag-prod-img-wrap {
        height: 170px;
        margin-bottom: 12px;
    }

    .ag-prod-img-wrap img {
        max-height: 150px;
    }

    .ag-prod-title {
        font-size: 12.5px;
        min-height: 36px;
    }

    .ag-prod-new-price {
        font-size: 15.5px;
    }

    .ag-prod-view-btn {
        padding: 8px 20px !important;
        font-size: 13px !important;
    }
}

@media (max-width: 576px) {
    .ag-prod-img-wrap {
        height: 155px;
    }

    .ag-prod-img-wrap img {
        max-height: 140px;
    }

    .ag-prod-new-price {
        font-size: 15px;
    }

    .ag-prod-discount-tag {
        font-size: 10.5px;
        padding: 3px 8px;
        top: 10px;
        left: 10px;
    }
}

/* ── Heading Divider (matches home page) ── */
.ag-section-main-heading {
    font-size: 28px;
    font-weight: 500;
    color: #111111;
    margin: 0 0 6px 0;
    letter-spacing: -0.3px;
    line-height: 1.3;
    text-align: center;
}

.ag-heading-divider {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 6px auto 0;
}

.ag-heading-divider .divider-line {
    width: 60px;
    height: 2px;
    background: #f37021;
    display: inline-block;
}

.ag-heading-divider .divider-knot {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.ag-heading-divider .divider-knot span {
    display: inline-block;
    background: #f37021;
    border-radius: 50%;
}

.ag-heading-divider .divider-knot .knot-center {
    width: 7px;
    height: 7px;
}

.ag-heading-divider .divider-knot .knot-side {
    width: 4px;
    height: 4px;
}
