/* GniYes Plugin Kit — shared widget styles. */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200;400;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* ── Grid layout ── */
.gniyes-product-grid {
    display: grid;
    gap: 2rem;
}

/* ── Glass card base ── */
.gniyes-glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(195, 197, 215, 0.15);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.gniyes-glass-card:hover {
    box-shadow: 0 32px 64px rgba(25, 28, 30, 0.1);
}

/* ── Standard card ── */
.gniyes-gc-standard .gniyes-gc-image-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    background: transparent;
    line-height: 0; /* removes inline-element gap below img */
}

/* Image shape variants */
.gniyes-gc-shape-landscape {
    aspect-ratio: 16 / 9;
}
.gniyes-gc-shape-square {
    aspect-ratio: 1 / 1;
}
.gniyes-gc-shape-circle {
    aspect-ratio: 1 / 1;
    border-radius: 50% !important;
    width: 70%;
    margin-left: auto;
    margin-right: auto;
}

.gniyes-gc-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;       /* default — overridden by Elementor selector when Image Fit control is used */
    object-position: center center;
    display: block;
}
/* Contain needs a background so the empty space isn't transparent on glass cards */
.gniyes-gc-image-wrap img[style*="contain"] {
    background: #f7f9fb;
}
.gniyes-gc-shape-circle img {
    border-radius: 50%;
}

.gniyes-gc-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #0040ae;
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: 'Inter', sans-serif;
}

.gniyes-gc-content {
    flex-grow: 1;
}

/* ── Typography ── */
.gniyes-pg-title {
    margin: 0 0 0.5rem;
    line-height: 1.2;
}

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

.gniyes-pg-title a:hover {
    color: #0040ae;
}

.gniyes-pg-desc {
    margin: 0 0 1rem;
    line-height: 1.6;
}

.gniyes-pg-price {
    margin-bottom: 2rem;
}

.gniyes-pg-price .woocommerce-Price-amount {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
}

/* ── Buttons ── */
.gniyes-pg-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    text-align: center;
    font-weight: 700;
    font-family: 'Manrope', sans-serif;
    letter-spacing: -0.01em;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    box-sizing: border-box;
    font-size: 0.9375rem;
}

.gniyes-pg-btn--filled {
    box-shadow: 0 4px 12px rgba(0, 64, 174, 0.2);
}

.gniyes-pg-btn--filled:hover {
    box-shadow: 0 8px 20px rgba(0, 64, 174, 0.3);
    transform: scale(1.01);
}

.gniyes-pg-btn--outlined {
    background: transparent !important;
    border: 1px solid currentColor;
}

.gniyes-pg-btn--outlined:hover {
    background: rgba(0, 64, 174, 0.05) !important;
}

.gniyes-pg-btn--icon-only {
    width: 3rem;
    height: 3rem;
    border-radius: 50% !important;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gniyes-pg-btn--icon-only:hover {
    transform: scale(1.1);
}

/* ── Portrait card ── */
.gniyes-gc-portrait .gniyes-gc-portrait-img {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    aspect-ratio: 4 / 5;
    margin-bottom: 1.5rem;
}

.gniyes-gc-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(45, 49, 51, 0.8), transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
}

.gniyes-gc-overlay .gniyes-pg-title {
    color: #fff;
    margin: 0;
}

.gniyes-gc-cat {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #dbe1ff;
    margin-bottom: 0.25rem;
    font-family: 'Inter', sans-serif;
    display: block;
}

.gniyes-gc-grayscale img {
    filter: grayscale(1);
    transition: filter 0.7s ease;
}

.gniyes-gc-grayscale:hover img {
    filter: grayscale(0);
}

.gniyes-gc-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gniyes-gc-footer .gniyes-pg-price {
    margin: 0;
}

.gniyes-gc-footer .gniyes-pg-btn {
    width: auto;
}

/* ── Horizontal card ── */
.gniyes-gc-horizontal {
    flex-direction: row;
    gap: 2rem;
    align-items: flex-start;
}

.gniyes-gc-icon-wrap {
    width: 4rem;
    height: 4rem;
    background: #e0e3e5;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gniyes-gc-icon-wrap .material-symbols-outlined {
    font-size: 1.875rem;
    color: #0040ae;
}

.gniyes-gc-horizontal .gniyes-pg-btn {
    display: inline-block;
    width: auto;
    padding: 0.75rem 2rem;
}

.gniyes-gc-horizontal .gniyes-pg-price {
    margin-bottom: 1.5rem;
}

/* ── Section background ── */
.gniyes-pg-bg {
    position: relative;
    overflow: hidden;
}

/* ── Responsive ── */
@media (max-width: 767px) {
    .gniyes-product-grid {
        grid-template-columns: 1fr !important;
    }
    .gniyes-gc-horizontal {
        flex-direction: column;
    }
    .gniyes-gc-horizontal .gniyes-gc-icon-wrap {
        width: 3rem;
        height: 3rem;
    }
}
