/* HOME GRID*/

.home-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 19px;
    margin-top: 40px;
}

.grid-title {
    margin: 9px 0 5px;
    font-size: 17px;
    text-align: left;
}

.grid-item {
    border: 2px solid black;
    border-radius: 14px;
    background: lightgray;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.grid-divider {
    border-top: 1px solid #635d5d;
    margin: 0 14px;
}

.grid-thumb img {
    display: block;
    width: 99%;
    height: auto;
}

.grid-content {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex-grow: 0;
}

.grid-meta {
    font-size: 13px;
    color: #554;
    margin-bottom: auto;
}

.grid-price {
    margin-top: 14px;
    padding: 4px 10px;
    background: #110;
    color: #fff;
    font-weight: bold;
    display: inline-block;
    align-self: flex-start;
}


.home-grid.more-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(249px, 1fr));
    gap: 19px;
    margin-top: 29px;
}
.home-grid.more-items .grid-item {
    border: 0px solid #ddd;
    padding: 14px;
    background: #fafafa;
    text-align: center;
}
.swiper-button-prev::after,
.swiper-button-next::after {
    display: none;
}
.swiper-button-prev,
.swiper-button-next {
    background: none;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    box-shadow: none;
    opacity: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.swiper-button-prev svg,
.swiper-button-next svg {
    display: block;
}
.swiper-button-prev:hover svg circle,
.swiper-button-next:hover svg circle {
    fill: #888;
    stroke: #888;
}
.swiper-pagination-bullet {
    background: #fff !important;
    border: 1px solid #111 !important;
    transition: background 0.2s, border 0.2s !important;
}

.swiper-pagination-bullet-active {
    background: gray !important;
    border: 2px solid #111 !important;
}

/* Dark theme styles */
body.dark-theme .home-grid .grid-item {
    background: #222;
    border-color: #444;
}
body.dark-theme .grid-title {
    color: #eee;
}
body.dark-theme .grid-divider {
    border-top: 1px solid #444;
}
body.dark-theme .grid-meta {
    color: #bbb;
}
body.dark-theme .grid-price {
    background: #333;
    color: #c6c4c4;
}
body.dark-theme .home-grid.more-items .grid-item {
    background: #181818;
    color: #eee;
}
body.dark-theme .swiper-pagination-bullet {
    background: #222 !important;
    border: 1px solid #eee !important;
}
body.dark-theme .swiper-pagination-bullet-active {
    background: #c6c4c4 !important;
    border: 2px solid #eee !important;
}
body.dark-theme .swiper-button-prev:hover svg circle,
body.dark-theme .swiper-button-next:hover svg circle {
    fill: #c6c4c4;
    stroke: #c6c4c4;
}

/* Tip link at top of front page - dark colors for light theme */
.frontpage-tip-link {
    display: inline-block;
    font-weight: bold;
    font-size: 1.15em;
    color: #222;
    text-align: center;
}
.frontpage-tip-link:hover {
    color: #444;
    text-decoration: none;
}

/* Light colors for dark theme */
body.dark-theme .frontpage-tip-link {
    color: #e6e6e6;
}
body.dark-theme .frontpage-tip-link:hover {
    color: #cdcdcd;
}