.bookstore-hero {
    width: 100%;
    height: 100vh;
    min-height: 600px;
    position: relative;
    background-image: url('../image/book-store.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.1);
}

.store-badge {
    background-color: var(--maroon);
    padding: 40px 100px;
    border-radius: 100px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    z-index: 2;
    height: 145px;
}

.store-badge h1 {
    color: var(--custom-yellow);
    font-size: 78px;
    letter-spacing: 6px;
    margin: 0;
    font-weight: 400;
    text-transform: uppercase;
    text-align: center;
}

.scroll-shop-btn {
    position: absolute;
    bottom: 50px;
    background-color: var(--maroon);
    color: var(--custom-yellow);
    text-decoration: none;
    padding: 18px 20px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.scroll-shop-btn:hover {
    transform: translateY(-5px);
    background-color: var(--maroon);
    color: var(--custom-yellow);
}

.floating-button {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 1200;
    display: block;
    width: 94px;
    height: 94px;
    transition: transform 0.3s ease;
}

.floating-button:hover {
    transform: translateY(-5px);
}

.floating-button img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.book-listing {
    background-color: var(--secondary-bg);
    padding: 80px 5% 120px 5%;
}

.listing-container {
    max-width: 1400px;
    margin: 0 auto;
}

.listing-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    gap: 20px;
}

.category-pills {
    display: flex;
    gap: 12px;
}

.pill {
    background: transparent;
    border: 1px solid var(--maroon);
    padding: 8px 15px;
    border-radius: 50px;
    color: var(--maroon);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.pill.active {
    background-color: var(--custom-yellow);
    border-color: var(--custom-yellow);
    color: var(--maroon);
    font-weight: 500;
}

.search-filter-group {
    display: flex;
    gap: 15px;
    flex: 1;
    max-width: 600px;
}

.search-input-wrap {
    position: relative;
    flex: 1;
}

.search-input-wrap input {
    width: 100%;
    background: transparent;
    border: 1px solid var(--maroon);
    padding: 10px 15px 10px 40px;
    border-radius: 50px;
    outline: none;
    font-size: 14px;
    color: var(--maroon);
}

.search-input-wrap input::placeholder {
    color: var(--maroon);
    opacity: 1;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: var(--maroon);
}

.btn-filter {
    background: transparent;
    border: 1px solid var(--maroon);
    padding: 8px 25px;
    border-radius: 50px;
    color: var(--maroon);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.book-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.book-card {
    background-color: var(--nav-bg);
    padding: 30px;
    border-radius: 40px;
    text-align: left;
    display: flex;
    cursor: pointer;
    flex-direction: column;
}

.book-image {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    aspect-ratio: 1 / 1.1;
    margin-bottom: 25px;
}

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

.book-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.book-title a {
    color: inherit;
    text-decoration: none;
}

.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--custom-yellow);
    color: var(--maroon);
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    z-index: 2;
}

.book-title {
    font-size: 16px;
    color: var(--maroon);
    letter-spacing: 1px;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-family: 'Lora', serif;
}

.book-author {
    font-size: 14px;
    color: var(--maroon);
    margin-bottom: 30px;
    flex-grow: 1;
}

.btn-add-cart {
    width: 100%;
    background: transparent;
    border: 1px solid var(--maroon);
    color: var(--maroon);
    padding: 12px 0;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-add-cart:hover {
    background-color: var(--maroon);
    color: var(--custom-yellow);
}

.product-detail {
    background-color: var(--color-bg);
    color: var(--custom-yellow);
    padding: 100px 5% 180px;
    display: flex;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-detail::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 106px;
    background-image: url("../image/book_store_inner_pattern_img.png");
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: cover;
    pointer-events: none;
}

.product-container {
    max-width: 1500px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 60px;
}

.product-visual {
    flex: 0 1 700px;
    max-width: 700px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.image-frame {
    position: relative;
    width: 100%;
    border-radius: 40px;
    overflow: hidden;
}

.image-frame img {
    width: 100%;
    display: block;
}

.status-badge {
    position: absolute;
    top: 23px;
    left: 23px;
    background-color: var(--custom-yellow);
    color: var(--maroon);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.nav-arrow {
    background-color: var(--custom-bg);
    border: none;
    color: var(--custom-yellow);
    padding: 1px 14px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-info {
    flex: 1.1;
}

.label {
    font-size: 16px;
    display: block;
    margin-bottom: 20px;
}

.product-title {
    font-size: 42px;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-weight: 400;
    text-transform: uppercase;
}

.author-label {
    font-size: 16px;
    margin-bottom: 30px;
}

.specs {
    font-size: 16px;
    font-weight: 300;
    margin-bottom: 25px;
}

.description {
    font-size: 16px;
    line-height: 35px;
    margin-bottom: 40px;
    max-width: 425px;
}

.price {
    font-size: 24px;
    margin-bottom: 40px;
}

.actions {
    display: flex;
    align-items: center;
    gap: 60px;
}

.btn-cart {
    background-color: var(--custom-dark);
    color: var(--custom-yellow);
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s;
}

.share-link {
    color: var(--custom-yellow);
    text-decoration: none;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.share-link:hover {
    color: var(--custom-yellow);
}

.share-icon {
    width: 25px;
    height: 25px;
    object-fit: contain;
}

.scroll-prompt {
    font-size: 16px;
}

.product-additional-info {
    background-color: var(--secondary-bg);
    padding: 100px 10% 150px 10%;
    color: var(--maroon);
}

.content-container {
    max-width: 730px;
    margin: 0 auto;
}

.info-title {
    font-size: 24px;
    letter-spacing: 4px;
    margin-bottom: 30px;
    font-weight: 400;
    text-transform: uppercase;
}

.book-specs {
    font-size: 16px;
    margin-bottom: 35px;
    font-weight: 400;
}

.text-body p {
    font-size: 16px;
    line-height: 30px;
    margin-bottom: 25px;
    color: var(--maroon);
}

.meta-labels {
    font-size: 16px;
    margin-top: 40px;
    line-height: 12px;
}

.ornament-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 80px 0;
    gap: 0;
}

.sep-line {
    width: 100%;
    height: 1px;
    background-color: var(--maroon);
}

.author-profile {
    display: grid;
    grid-template-columns: 172px 1fr;
    align-items: flex-start;
    column-gap: 40px;
}

.author-header {
    display: contents;
}

.author-profile>.author-bio {
    grid-column: 2;
    grid-row: 2;
}

.author-profile .author-avatar {
    grid-row: 1 / span 2;
}

.author-avatar {
    width: 172px;
    height: 216px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

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

.author-details {
    margin-top: 15px;
}

.author-name {
    font-size: 16px;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    font-family: 'Lora', serif;
}

.author-designation {
    font-size: 16px;
    margin-bottom: 25px;
}

.author-bio {
    font-size: 16px;
    line-height: 32px;
}

@media screen and (max-width: 1200px) {
    .product-container {
        flex-direction: column;
        gap: 0px;
    }
}

@media screen and (max-width: 768px) {
    .floating-button {
        width: 65px;
    }

    .listing-controls {
        width: 100%;
        margin-bottom: 45px;
    }

    .category-pills .pill:not(.active) {
        display: none;
    }

    .category-pills .pill.active {
        width: 140px;
        height: 62px;
        padding: 0 28px;
        border: 0;
        background-color: #f5c89e;
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 18px;
        font-weight: 400;
    }

    .category-pills .pill.active::after {
        content: "";
        width: 12px;
        height: 12px;
        border-right: 2px solid var(--maroon);
        border-bottom: 2px solid var(--maroon);
        transform: rotate(45deg) translateY(-3px);
    }

    .search-filter-group {
        flex: 0 0 auto;
    }

    .search-input-wrap {
        display: none;
    }

    .btn-filter {
        width: 66px;
        height: 66px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
    }

    .btn-filter .filter-label {
        display: none;
    }

    .btn-filter .filter-icon {
        width: 25px;
        height: 25px;
    }

    .store-badge h1 {
        font-size: 50px;
        letter-spacing: 2px;
    }

    .store-badge {
        padding: 40px 60px;
        height: 120px;
    }

    .product-title {
        font-size: 30px;
    }

    .product-detail .label,
    .product-detail .author-label,
    .product-detail .specs,
    .product-detail .description,
    .product-detail .btn-cart,
    .product-detail .share-link,
    .product-detail .scroll-prompt,
    .product-additional-info .book-specs,
    .product-additional-info .text-body p,
    .product-additional-info .meta-labels,
    .product-additional-info .author-name,
    .product-additional-info .author-designation,
    .product-additional-info .author-bio {
        font-size: 14px;
    }

    .author-block .info-title {
        display: none;
    }

    .author-profile {
        display: block;
    }

    .author-header {
        display: flex;
        align-items: center;
        gap: 18px;
        margin-bottom: 24px;
    }

    .author-avatar {
        width: 131px;
        height: 163px;
    }

    .author-details {
        margin: 0;
    }

    .author-name {
        margin: 0 0 8px;
    }

    .author-designation {
        margin: 0;
    }

    .author-bio {
        margin: 0;
        line-height: 22px;
    }

    .product-visual {
        flex: 0 0 375px;
        max-width: 475px;
    }

    .product-info {
        margin-top: 20px;
    }

    .book-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .btn-add-cart {
        font-size: 14px;
    }
}

@media screen and (max-width: 500px) {
    .store-badge h1 {
        font-size: 40px;
    }

    .store-badge {
        padding: 34px 37px;
        height: 100px;
    }
}
