/* GG Star shop overrides on top of the FreshCart theme */

:root {
    --bs-body-font-family: "Noto Sans Georgian", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6, .btn {
    font-family: var(--bs-body-font-family);
}

.nav-btn {
    font-size: 1rem;
}

.logo {
    height: 35px;
    width: auto;
}

/* Product cards: same-size covers without fixed pixel heights */
.cover {
    display: block;
    aspect-ratio: 2 / 3;
    margin-bottom: .75rem;
}

.cover-wide {
    aspect-ratio: 4 / 3;
}

.cover img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card-product .card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-product .card-actions {
    margin-top: auto;
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.min-w-0 {
    min-width: 0;
}

@media (max-width: 575.98px) {
    .card-product .card-body {
        padding: .75rem;
    }

    .card-product h2 {
        font-size: .875rem !important;
    }

    .card-product .btn-sm {
        padding: .375rem .5rem;
    }
}

/* Cart drawer */
.cart-thumb {
    width: 48px;
    height: 64px;
    object-fit: cover;
    flex-shrink: 0;
}

/* Desktop app download buttons in the footer */
.windows,
.mac {
    display: inline-block;
    background: black;
    border-radius: 6px;
    padding: 7px;
    color: white;
}

.windows {
    width: 122px;
}

.windows:hover {
    color: white;
}

.mac a {
    color: white;
    font-weight: bold;
}

.store-badge {
    width: 140px;
}

.app-icon {
    height: 27px;
}

/* App screenshot on the app page */
.app-hero {
    max-height: 600px;
    width: auto;
}

.card-badge {
    position: absolute;
    top: .5rem;
    left: .5rem;
    z-index: 2;
}

.lesson-video {
    width: 100%;
    max-height: 500px;
    background: #000;
}

/* Book cover zoom: same magnification for every cover, no tiling */
.zoom {
    background-repeat: no-repeat;
    background-size: 250%;
}

/* Touch screens have no hover: keep the cover visible instead of a stuck zoom */
@media (hover: none) {
    .zoom {
        cursor: default;
    }

    .zoom img:hover {
        opacity: 1;
    }
}
