/**
 * Tiger Product Grid (Pro) — frontend styles.
 *
 * All rules are scoped under .tg-pg-wrapper so they cannot leak into the
 * surrounding theme. Per-instance overrides come from Elementor's
 * selector-driven style controls; the rules here are the defaults.
 */

/* ----------------------------------------------------------
 * Base layout
 * ---------------------------------------------------------- */
.tg-pg-wrapper .tg-pg-grid { display: grid; box-sizing: border-box; }
.tg-pg-wrapper .tg-pg-grid * { box-sizing: border-box; }

.tg-pg-wrapper .tg-pg-card {
    position: relative;
    background: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.3s ease;
}
.tg-pg-wrapper .tg-pg-card a {
    text-decoration: none !important;
    box-shadow: none !important;
    color: inherit;
    display: block;
}

/* ----------------------------------------------------------
 * Image container — height comes from img_height control.
 * ---------------------------------------------------------- */
.tg-pg-wrapper .tg-pg-img-wrap {
    position: relative !important;
    width: 100%;
    height: 300px;
    background: transparent;
    overflow: hidden;
}
.tg-pg-wrapper .tg-pg-img-wrap > a > img,
.tg-pg-wrapper .tg-pg-img-wrap > img {
    position: absolute !important;
    top: 0; left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.tg-pg-wrapper .tg-pg-card:hover .tg-pg-img-wrap > a > img { transform: scale(1.05); }

/* ----------------------------------------------------------
 * Badge
 * ---------------------------------------------------------- */
.tg-pg-wrapper .tg-pg-badge {
    position: absolute !important;
    top: 15px; left: 15px;
    background: #d77b34;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 10;
}

/* ----------------------------------------------------------
 * Content typography
 * ---------------------------------------------------------- */
.tg-pg-wrapper .tg-pg-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.tg-pg-wrapper .tg-pg-title {
    margin: 0 0 8px;
    line-height: 1.3;
}
.tg-pg-wrapper .tg-pg-meta,
.tg-pg-wrapper .tg-pg-tag {
    display: flex !important;
    margin-bottom: 8px;
    text-transform: uppercase;
    gap: 4px;
}
.tg-pg-wrapper .tg-pg-desc {
    margin-bottom: 15px;
    line-height: 1.5;
}

/* ----------------------------------------------------------
 * Price + button
 * ---------------------------------------------------------- */
.tg-pg-wrapper .tg-pg-price {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: inherit;
    margin-bottom: 12px;
}
.tg-pg-wrapper .tg-pg-price del {
    text-decoration: line-through;
}
.tg-pg-wrapper .tg-pg-price ins { text-decoration: none; color: inherit; }

.tg-pg-wrapper .tg-pg-btn-wrap { width: 100%; display: flex; }
.tg-pg-wrapper .tg-pg-btn {
    background: #d77b34;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    text-align: center;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.tg-pg-wrapper .tg-pg-btn:hover { filter: brightness(1.1); }
.tg-pg-wrapper .tg-pg-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.tg-pg-wrapper .tg-pg-btn-icon svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

/* ----------------------------------------------------------
 * Star rating
 * ---------------------------------------------------------- */
.tg-pg-wrapper .tg-pg-stars-container {
    position: relative;
    display: inline-block;
    font-size: 14px;
    color: #e0e0e0;
    letter-spacing: 2px;
    margin-bottom: 10px;
}
.tg-pg-wrapper .tg-pg-stars-container::before { content: '★★★★★'; }
.tg-pg-wrapper .tg-pg-stars-filled {
    position: absolute;
    top: 0; left: 0;
    color: #ffb800;
    overflow: hidden;
    white-space: nowrap;
}
.tg-pg-wrapper .tg-pg-stars-filled::before { content: '★★★★★'; }
.tg-pg-wrapper .tg-pg-rating-single {
    color: #ffb800;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 0;
}

/* ----------------------------------------------------------
 * Pagination
 * ---------------------------------------------------------- */
.tg-pg-wrapper .tg-pg-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    justify-content: center;
    margin: 25px 0 0 0;
}
.tg-pg-wrapper .tg-pg-pagination .page-numbers {
    display: inline-block;
    min-width: 32px;
    min-height: 32px;
    line-height: 32px;
    text-align: center;
    padding: 0 10px;
    background: #f6f6f6;
    color: #111;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.2s;
    font-size: 16px;
    text-decoration: none;
    border: 1px solid #e0e0e0;
}
.tg-pg-wrapper .tg-pg-pagination .page-numbers.current {
    background: #d77b34;
    color: #fff !important;
    border-color: #d77b34;
}
.tg-pg-wrapper .tg-pg-pagination a.page-numbers:hover {
    background: #e0e0e0;
    color: #d77b34;
}

/* ==========================================================
 * Preset: CLASSIC — refined editorial card with soft lift
 * ========================================================== */
.tg-pg-wrapper .tg-pg-preset-classic .tg-pg-card {
    text-align: center;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(20, 20, 30, 0.03);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.tg-pg-wrapper .tg-pg-preset-classic .tg-pg-card:hover {
    transform: translateY(-4px);
    border-color: #e2e2e2;
    box-shadow: 0 18px 36px -18px rgba(20, 20, 30, 0.18);
}
.tg-pg-wrapper .tg-pg-preset-classic .tg-pg-content {
    align-items: center;
    padding: 22px 22px 24px;
    gap: 4px;
}
.tg-pg-wrapper .tg-pg-preset-classic .tg-pg-title {
    font-weight: 600;
    letter-spacing: 0.2px;
}
.tg-pg-wrapper .tg-pg-preset-classic .tg-pg-meta,
.tg-pg-wrapper .tg-pg-preset-classic .tg-pg-tag {
    font-size: 11px;
    letter-spacing: 1.4px;
    color: #9a9a9a;
}
.tg-pg-wrapper .tg-pg-preset-classic .tg-pg-btn-wrap {
    margin-top: auto;
    justify-content: center;
}
.tg-pg-wrapper .tg-pg-preset-classic .tg-pg-btn {
    border-radius: 999px;
    padding: 12px 28px;
    width: auto;
    letter-spacing: 0.3px;
    box-shadow: 0 6px 16px -8px rgba(215, 123, 52, 0.55);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}
.tg-pg-wrapper .tg-pg-preset-classic .tg-pg-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px -10px rgba(215, 123, 52, 0.65);
}
.tg-pg-wrapper .tg-pg-preset-classic .tg-pg-badge {
    background: #111;
    color: #fff;
    border-radius: 999px;
    padding: 5px 12px;
    letter-spacing: 0.6px;
}

/* ==========================================================
 * Preset: MINIMAL — airy, cute, with sliding cart on hover
 * ========================================================== */
.tg-pg-wrapper .tg-pg-preset-minimal .tg-pg-card {
    background: #fff;
    border: 1px solid #f3f3f3;
    border-radius: 18px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.tg-pg-wrapper .tg-pg-preset-minimal .tg-pg-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 38px -22px rgba(229, 109, 117, 0.35);
}
.tg-pg-wrapper .tg-pg-preset-minimal .tg-pg-content {
    align-items: center;
    padding: 20px 22px 24px;
    gap: 2px;
}
.tg-pg-wrapper .tg-pg-preset-minimal .tg-pg-title {
    font-weight: 600;
    color: #2a2a2a;
}
.tg-pg-wrapper .tg-pg-preset-minimal .tg-pg-meta,
.tg-pg-wrapper .tg-pg-preset-minimal .tg-pg-tag {
    font-size: 11px;
    letter-spacing: 1.5px;
    color: #b9b9b9;
}
.tg-pg-wrapper .tg-pg-preset-minimal .tg-pg-price {
    color: #e56d75;
}
.tg-pg-wrapper .tg-pg-preset-minimal .tg-pg-btn {
    background: #e56d75;
    border-radius: 0;
    padding: 14px 20px;
    letter-spacing: 0.4px;
    transition: background 0.3s ease, transform 0.3s ease;
}
.tg-pg-wrapper .tg-pg-preset-minimal .tg-pg-btn:hover { background: #d85963; }
.tg-pg-wrapper .tg-pg-preset-minimal .tg-pg-minimal-bottom-cart {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 20;
}
.tg-pg-wrapper .tg-pg-preset-minimal .tg-pg-card:hover .tg-pg-minimal-bottom-cart {
    transform: translateY(0);
}
.tg-pg-wrapper .tg-pg-preset-minimal .tg-pg-badge {
    background: #fff;
    color: #e56d75;
    border: 1px solid #ffd9dd;
    border-radius: 999px;
    padding: 4px 12px;
    box-shadow: 0 4px 10px rgba(229, 109, 117, 0.18);
}

/* ==========================================================
 * Preset: LUXE — dark editorial card with gold accents
 * ========================================================== */
.tg-pg-wrapper .tg-pg-preset-luxe .tg-pg-card {
    background: linear-gradient(180deg, #1b1b22 0%, #14141a 100%);
    color: #f3ecdc;
    border: 1px solid #2a2a33;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 18px 40px -28px rgba(0, 0, 0, 0.6);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.tg-pg-wrapper .tg-pg-preset-luxe .tg-pg-card:hover {
    transform: translateY(-5px);
    border-color: #c9a35b;
    box-shadow: 0 28px 60px -28px rgba(201, 163, 91, 0.35);
}
.tg-pg-wrapper .tg-pg-preset-luxe .tg-pg-img-wrap { background: #0f0f14; }
.tg-pg-wrapper .tg-pg-preset-luxe .tg-pg-content {
    padding: 22px 22px 24px;
    align-items: flex-start;
    gap: 4px;
}
.tg-pg-wrapper .tg-pg-preset-luxe .tg-pg-title,
.tg-pg-wrapper .tg-pg-preset-luxe .tg-pg-title a {
    color: #f3ecdc;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.tg-pg-wrapper .tg-pg-preset-luxe .tg-pg-meta,
.tg-pg-wrapper .tg-pg-preset-luxe .tg-pg-tag,
.tg-pg-wrapper .tg-pg-preset-luxe .tg-pg-meta a,
.tg-pg-wrapper .tg-pg-preset-luxe .tg-pg-tag a {
    color: #c9a35b;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.tg-pg-wrapper .tg-pg-preset-luxe .tg-pg-desc { color: #b5b1a3; }
.tg-pg-wrapper .tg-pg-preset-luxe .tg-pg-price {
    color: #d9b673;
    font-weight: 600;
}
.tg-pg-wrapper .tg-pg-preset-luxe .tg-pg-price del { color: #6e6a5d; }
.tg-pg-wrapper .tg-pg-preset-luxe .tg-pg-btn-wrap { margin-top: auto; }
.tg-pg-wrapper .tg-pg-preset-luxe .tg-pg-btn {
    background: transparent;
    color: #d9b673;
    border: 1px solid #c9a35b;
    border-radius: 999px;
    padding: 12px 22px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 12px;
    transition: background 0.3s ease, color 0.3s ease;
}
.tg-pg-wrapper .tg-pg-preset-luxe .tg-pg-btn:hover {
    background: #c9a35b;
    color: #14141a;
    filter: none;
}
.tg-pg-wrapper .tg-pg-preset-luxe .tg-pg-badge {
    background: #c9a35b;
    color: #14141a;
    border-radius: 0;
    padding: 5px 12px;
    letter-spacing: 1.5px;
    font-size: 10px;
}
.tg-pg-wrapper .tg-pg-preset-luxe .tg-pg-stars-filled,
.tg-pg-wrapper .tg-pg-preset-luxe .tg-pg-rating-single { color: #d9b673; }
.tg-pg-wrapper .tg-pg-preset-luxe .tg-pg-stars-container { color: #3a3a44; }

/* ==========================================================
 * Preset: SOFT — pastel rounded card with playful tilt on hover
 * ========================================================== */
.tg-pg-wrapper .tg-pg-preset-soft .tg-pg-card {
    background: #fff7f3;
    border: 1px solid #ffe7df;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 14px 30px -22px rgba(255, 140, 120, 0.4);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}
.tg-pg-wrapper .tg-pg-preset-soft .tg-pg-card:hover {
    transform: translateY(-6px) rotate(-0.4deg);
    box-shadow: 0 24px 44px -22px rgba(255, 140, 120, 0.5);
}
.tg-pg-wrapper .tg-pg-preset-soft .tg-pg-img-wrap {
    margin: 14px 14px 0;
    width: calc(100% - 28px);
    border-radius: 20px;
    background: #fff;
}
.tg-pg-wrapper .tg-pg-preset-soft .tg-pg-content {
    text-align: center;
    align-items: center;
    padding: 18px 22px 22px;
    gap: 4px;
}
.tg-pg-wrapper .tg-pg-preset-soft .tg-pg-title {
    font-weight: 700;
    color: #5b3a32;
}
.tg-pg-wrapper .tg-pg-preset-soft .tg-pg-meta,
.tg-pg-wrapper .tg-pg-preset-soft .tg-pg-tag {
    font-size: 11px;
    letter-spacing: 1.2px;
    color: #c98577;
    text-transform: uppercase;
}
.tg-pg-wrapper .tg-pg-preset-soft .tg-pg-price {
    color: #ff7a6b;
    font-weight: 700;
}
.tg-pg-wrapper .tg-pg-preset-soft .tg-pg-price del { color: #d8b3aa; }
.tg-pg-wrapper .tg-pg-preset-soft .tg-pg-btn-wrap {
    margin-top: auto;
    justify-content: center;
}
.tg-pg-wrapper .tg-pg-preset-soft .tg-pg-btn {
    background: #ff7a6b;
    color: #fff;
    border-radius: 999px;
    padding: 12px 26px;
    width: auto;
    box-shadow: 0 10px 22px -10px rgba(255, 122, 107, 0.7);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.tg-pg-wrapper .tg-pg-preset-soft .tg-pg-btn:hover {
    transform: translateY(-2px);
    background: #ff6a59;
    box-shadow: 0 14px 26px -10px rgba(255, 122, 107, 0.8);
    filter: none;
}
.tg-pg-wrapper .tg-pg-preset-soft .tg-pg-badge {
    top: 22px; left: 22px;
    background: #ff7a6b;
    color: #fff;
    border-radius: 999px;
    padding: 5px 12px;
    box-shadow: 0 6px 14px -4px rgba(255, 122, 107, 0.55);
}
.tg-pg-wrapper .tg-pg-preset-soft .tg-pg-stars-filled,
.tg-pg-wrapper .tg-pg-preset-soft .tg-pg-rating-single { color: #ff9a3c; }

/* ==========================================================
 * Preset: BEAUTY
 * ========================================================== */
.tg-pg-wrapper .tg-pg-preset-beauty .tg-pg-card {
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}
.tg-pg-wrapper .tg-pg-preset-beauty .tg-pg-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 10px;
    margin-bottom: 5px;
}
.tg-pg-wrapper .tg-pg-preset-beauty .tg-pg-title {
    margin: 0;
    font-size: 16px;
    text-align: left;
}
.tg-pg-wrapper .tg-pg-preset-beauty .tg-pg-price {
    color: #8fd0db;
    font-size: 18px;
    margin: 0;
}
.tg-pg-wrapper .tg-pg-preset-beauty .tg-pg-price ins { color: #8fd0db; }
.tg-pg-wrapper .tg-pg-preset-beauty .tg-pg-beauty-footer {
    margin-top: auto;
    position: relative;
    height: 48px;
    overflow: hidden;
    padding-top: 10px;
    width: 100%;
}
.tg-pg-wrapper .tg-pg-preset-beauty .tg-pg-price-wrap {
    position: absolute;
    top: 10px; left: 0;
    width: 100%;
    opacity: 1;
    visibility: visible;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s linear 0.3s;
}
.tg-pg-wrapper .tg-pg-preset-beauty .tg-pg-btn-wrap {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    transform: translateY(110%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s linear 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}
.tg-pg-wrapper .tg-pg-preset-beauty .tg-pg-btn {
    background: #d3e7eb;
    color: #fff;
    border-radius: 20px;
    padding: 8px 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
}
.tg-pg-wrapper .tg-pg-preset-beauty .tg-pg-btn-icon { display: inline-flex; align-items: center; }
.tg-pg-wrapper .tg-pg-preset-beauty .tg-pg-card:hover .tg-pg-price-wrap {
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s;
}
.tg-pg-wrapper .tg-pg-preset-beauty .tg-pg-card:hover .tg-pg-btn-wrap {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s;
}
