@import url("https://fonts.googleapis.com/css2?family=Geist:wght@100..900&family=Source+Serif+4:ital,opsz,wght@0,8..60,200..900;1,8..60,200..900&family=Literata:ital,opsz,wght@0,7..72,200..900;1,7..72,200..900&display=swap");

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}
body {
    font-family: Literata, serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: #fff;
    min-height: 100vh;
    background-attachment: fixed;
}

header {
    background: white;
    padding: 10px;
    display: flex;
    width: 100%;
}

nav {
    align-content: center;
    margin: auto;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    font-family: "Geist", sans-serif;
}

@media screen and (max-width: 500px) {
    nav ul {
        display: block;
        width: 100%;
    }
    nav li a {
        display: block;
        padding: 0;
        width: 100%;
    }
}

nav li {
    margin: auto;
    padding: 10px;
    text-align: center;
}

nav li a {
    color: #273939;
    border-bottom: 2px solid #273939;
    padding: 10px 30px;
    font-weight: 400;
    text-decoration: none;
    letter-spacing: 1px;
}

nav li a:hover {
    color: #000;
    transition: all 0.5s ease;
}

#logo {
    display: inline-block;
    width: 300px;
    margin-top: 20px;
}

#logo a:hover {
    padding: 0;
    background-color: transparent;
}
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
    min-height: 100%;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    background-color: #fff;
    padding: 10px;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.post-preview {
    padding-bottom: 20px;
    margin-bottom: 20px;
    background: white;
    padding: 20px;
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
    border-bottom: 2px solid #273939;
}

.post-preview h3 a,
.blog-post h2 a {
    color: #333;
    text-decoration: none;
    font-family: Geist, sans-serif;
}

.post-preview h3 a:hover,
.blog-post h2 a:hover {
    color: #273939;
    border-bottom: 2px solid #273939;
}

.post-meta {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.post-meta span {
    flex: 1;
    padding: 4px 8px;
    font-size: 14px;
    font-weight: 400;
    align-content: center;
}

.category::before {
    content: " Category: ";
    font-weight: 600;
}

.read-more {
    color: #273939;
    text-decoration: none;
    font-weight: bold;
    background-color: white;
    padding: 8px 16px;
    border: 2px solid #273939;
    display: inline-block;
}

.read-more:hover {
    background-color: #273939;
    color: white;
    transition: all 0.5s ease;
}

.btn {
    display: inline-block;
    padding: 10px 30px;
    border-radius: 10px;
    background: #f5e4f6;
    color: #273939;
    text-decoration: none;
    margin: 5px;
    transition: background 0.3s ease;
    font-family: Geist, sans-serif;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    background: #273939;
    color: #f5e4f6;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: 1s all;
}

.btn.active {
    background: #273939;
}

.pagination {
    text-align: center;
    margin: 30px 0;
}

.single-post {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
}

.post-header {
    display: block;
    text-align: center;
    margin-bottom: 30px;
}

.post-header h1 {
    font-family: "Source Serif 4", serif;
    margin-bottom: 15px;
    color: #273939;
    border-bottom: 2px solid #273939;
}

.post-image {
    margin: 30px 0;
    text-align: center;
}

.post-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.image-caption {
    font-style: italic;
    color: #666;
    margin-top: 10px;
}

.post-content {
    line-height: 1.8;
    color: #444;
}

.post-navigation {
    margin-top: 40px;
    text-align: center;
}

.product-post .price {
    background: #273939;
    color: white;
    padding: 5px 10px;
    font-weight: 500;
}

.product-actions {
    text-align: center;
}

.buy-button {
    display: inline-block;
    background: #273939;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: background 0.3s;
    text-align: center;
    margin: auto;
    font-family: Geist, sans-serif;
}

.buy-button:hover {
    background: #000;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.product-card {
    background: white;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.product-card.index img {
    height: 400px;
}

.products-grid.index {
    flex-flow: nowrap;
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s;
}

.product-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}


.product-info h3 {
    margin-top: 0;
    font-family: Geist, sans-serif;
}

.product-info h3 a {
    color: #273939;
    text-decoration: none;
}

.product-info h3 a:hover {
    border-bottom: 2px solid #273939;
}

.product-description {
    color: #273939;
    margin: 10px 0;
    flex-grow: 1;
}


.product-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.price {
    font-size: 18px;
    font-weight: 500;
    color: #28a745;
    font-family: "Geist", sans-serif;
}

.buy-button-small {
    background: #273939;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 3px;
    font-size: 14px;
    transition: background 0.3s;
    font-family: Geist, sans-serif;
    font-weight: 700;
}
.view-all {
    text-align: right;
}
.buy-button-small:hover {
    background: #000;
}

.blog-post {
    background: white;
    padding: 20px;
    margin-bottom: 30px;
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
}

.blog-post h2 {
    margin-top: 0;
}

.post-excerpt {
    color: #666;
    margin: 15px 0;
    line-height: 1.6;
}

.recent-posts h2,
main h1 {
    font-family: Geist, sans-serif;
    font-weight: 900;
    font-size: 220%;
    margin: 0 10px 0 0;
    color: #273939;
    width: 100%;
    border-bottom: 2px solid #273939;
}

main h1 {
    text-align: center;
    margin-bottom: 30px;
}

main p a:active,
main p a,
main p a:visited {
    color: #273939;
    text-decoration: none;
    border-bottom: 2px solid #273939;
    font-weight: 500;
}

main p a:hover {
    text-decoration: none;
    border: 0;
}

footer {
    background-color: white;
    text-align: center;
    font-size: x-small;
    margin-top: auto;
    font-weight: 300;
}

footer a,
footer a:visited,
footer a:active {
    color: #000;
}

footer a:hover {
    color: #273939;
    text-decoration: none;
}
/* Product Carousel Styles */
.products-carousel {
    margin: 40px 0;
}

.carousel-container {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 20px 0;
    margin: 20px 0;
    cursor: grab;
    /* Hide scrollbars completely */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.carousel-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.carousel-container:active {
    cursor: grabbing;
}

.carousel-track {
    display: flex;
    gap: 20px;
    padding: 0 10px;
    /* Smooth scrolling */
    scroll-behavior: smooth;
}

.product-card.carousel {
    flex: 0 0 280px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    user-select: none;
    display: flex;
    flex-direction: column;
    height: inherit;
}

.product-card.carousel:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.product-card.carousel .product-image {
    height: 400px;
    overflow: hidden;
}

.product-card.carousel .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    pointer-events: none;
}

.product-card.carousel .product-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-card.carousel .product-info h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #273939;
    font-family: Geist, sans-serif;
}

.product-card.carousel .product-description {
    flex-grow: 1;
    margin-bottom: 15px;
}

.product-card.carousel .price {
    display: block;
    font-size: 18px;
    font-weight: 500;
    color: #28a745;
    font-family: Geist, sans-serif;
    margin-bottom: 10px;
}

.product-card.carousel .buy-button-small {
    display: block;
    text-align: center;
    width: 100%;
    padding: 8px 12px;
    background: #273939;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s ease;
    pointer-events: auto;
}

.product-card.carousel .buy-button-small:hover {
    background: #000;
}

#about-pic {
    width: 30%;
    border-radius: 8px;
    float: left;
    margin-right: 20px;
    margin-bottom: 20px;
}

#socials {
    display: flex;
    list-style-type: none;
    margin-left: -30px;
    text-align: center;
}

#socials li {
    flex: 1;
    margin: 10px;
}

#socials li img {
    display: inline-block;
    height: 100px;
    width: 100px;
    vertical-align: middle;
    margin: 0 auto;
}

/* Mobile responsiveness */
@media screen and (max-width: 768px) {
    .product-card.carousel {
        flex: 0 0 250px;
    }

    .carousel-container {
        margin: 10px -20px; /* Extend to screen edges on mobile */
        padding: 20px 20px;
    }
}

@media screen and (max-width: 480px) {
    .product-card.carousel {
        flex: 0 0 220px;
    }

    .carousel-track {
        gap: 15px;
    }
    #socials {
        display: block;
        width: 100%;
    }
    #about-pic {
        display: block;
        width: 100%;
    }
}

/* Responsive improvements */
@media screen and (max-width: 768px) {
    main {
        margin: 10px;
        padding: 15px;
    }

    .post-meta {
        flex-direction: column;
        gap: 10px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Carousel Wrapper with Arrows */
.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
}

.carousel-arrow {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border: 2px solid #273939;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: #273939;
}

.carousel-arrow:hover {
    background: #273939;
    color: white;
    transform: scale(1.1);
}

.carousel-arrow:active {
    transform: scale(0.95);
}

.carousel-arrow svg {
    width: 20px;
    height: 20px;
}

/* Update carousel container to work with wrapper */
.carousel-wrapper .carousel-container {
    flex: 1;
    margin: 0;
}

/* Hide arrows on mobile */
@media screen and (max-width: 768px) {
    .carousel-arrow {
        display: none;
    }

    .carousel-wrapper {
        gap: 0;
    }

    .carousel-wrapper .carousel-container {
        margin: 10px -20px;
        padding: 20px 20px;
    }
}
