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

/* Shop Archive Styles */
.shop-archive {
    background-color: #fff;
    color: #32160f;
    font-family: shippori-mincho, serif;
    font-size: 16px;
    line-height: 1.6;
}

.shop-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 2em 20px;
}

/* Hero */
.shop-hero {
    position: relative;
    width: 100%;
}

.shop-hero__image {
    height: 400px;
    background-size: cover;
    background-position: center;
}

@media (max-width: 767px) {
    .shop-hero__image {
        height: 250px;
    }
}

.shop-hero__bar {
    background-color: #32160f;
    /* padding: 15px 0; */
    text-align: center;
}

.shop-hero__title {
    color: #fff;
    font-size: 2.4rem;
    margin: 0;
    letter-spacing: 0.1em;
    font-weight: bold;
}

/* Intro */
.shop-intro {
    padding: 60px 0 20px;
    text-align: center;
}

.shop-intro__text {
    font-size: 1.6rem;
    margin-bottom: 30px;
    color: #32160f;
}

/* Sections */
.shop-section {
    padding: 80px 0;
}

@media (max-width: 767px) {
    .shop-section {
        padding: 40px 0;
    }
    .shop-intro {
        padding: 20px 0;
        margin-bottom: 0%;
    }
}

.shop-section__header {
    text-align: center;
    margin-bottom: 50px;
}

.shop-section__title {
    font-size: 3.2rem;
    margin-bottom: 20px;
    font-weight: bold;
    color: #32160f;
}

.shop-section__lead {
    font-size: 1.4rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    line-height: 1.8;
}

/* Grid */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

@media (max-width: 991px) {
    .shop-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 20px;
    }
}

@media (max-width: 599px) {
    .shop-grid {
        grid-template-columns: 1fr;
        gap: 1vw;
    }
}

/* Card */
.shop-card {
    border: 1px solid #b3a078;
    padding: 4px;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.shop-card h3:after {
    content: '';
    position: relative;
    display: none;
}

.shop-card__link, .shop-card__inner {
    display: flex;
    border: 1px solid #b3a078;
    flex-direction: column;
    height: 100%;
    text-decoration: none !important;
    color: inherit;
}

.shop-card__body {
    padding: 20px 15px 10px;
    text-align: center;
}

.shop-card__title {
    font-size: 1.6rem;
    margin: 0 0 5px;
    font-weight: bold;
    line-height: 1.4;
}

.shop-card__en {
    font-size: 1.2rem;
    color: #888;
    margin-bottom: 10px;
}

.shop-card__meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
    color: #32160f;
}

.shop-card__qty {
    font-size: 1.6rem;
    margin: 0;
}

.shop-card__price {
    font-size: 1.8rem;
    font-weight: normal;
    color: #32160f;
    margin: 0;
}

.shop-card__separator {
    width: 100%;
    height: 1px;
    background-color: #b3a078;
    margin: 15px 0 20px;
}

.shop-card__beans {
    font-size: 1.4rem;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.shop-card__bean-item {
    font-weight: bold;
    color: #32160f;
}

.shop-card__media {
    padding: 0 20px;
    margin-bottom: 20px;
    min-height: 300px;
}

.shop-card__media img {
    width: 100%;
    height: auto;
    object-fit: contain;
    min-height: 300px;
}

.shop-card__img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.shop-card__desc {
    padding: 0 20px 20px;
    font-size: 1.3rem;
    line-height: 1.6;
    color: #555;
    flex-grow: 1;
}

.shop-card__gift-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.shop-card__gift-list li {
    margin-bottom: 5px;
    font-size: 1.5rem;
    color: #32160f;
}

.shop-card__footer {
    padding: 0 20px 20px;
    text-align: center;
}

.shop-card__more {
    display: none; 
}

/* Drip Cafe: Hide footer button */
#cat-drip .shop-card__footer {
    display: none;
}

/* Web Shop Buttons */
.shop-section__footer {
    text-align: center;
    margin-top: 40px;
}

.shop-section__notes {
    margin-bottom: 20px;
    font-size: 1.4rem;
    line-height: 1.8;
    color: #32160f;
    text-align: left;
    display: inline-block;
    max-width: 800px;
    width: 100%;
}

@media (max-width: 767px) {
    .shop-section__notes {
        text-align: center;
    }
}

.shop-btn-web {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    padding: 10px 20px;
    border: 1px solid #aa9163;
    color: #aa9163;
    text-decoration: none !important;
    font-size: 1.4rem;
    transition: all 0.3s;
    background-image: url('../img/common/icon-cart.png'); /* Mocking icon if exists */
    background-repeat: no-repeat;
    background-position: 15px center;
    background-size: 18px;
    padding-left: 45px;
}

.shop-btn-web:hover {
    background-color: #aa9163;
    color: #fff;
}

.shop-btn-web::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23aa9163'%3E%3Cpath d='M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.08-.14.12-.31.12-.48 0-.55-.45-1-1-1H5.21l-.94-2H1zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    margin-right: 10px;
    transition: filter 0.3s;
}

.shop-btn-web:hover::before {
    filter: brightness(0) invert(1);
}

/* Shop Bottom Section (Gallery + Info) */
.shop-bottom {
    padding: 0;
    background-color: #fbfaf5; /* Slightly off-white */
}

.shop-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 30px 20px;
    margin-bottom: 80px;
}

.shop-gallery__item {
    flex: 1 1 calc(50% - 10px);
    margin: 0;
}

@media (max-width: 767px) {
    .shop-gallery__item {
        flex: 1 1 100%;
    }
}

.shop-gallery__item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.shop-gallery__caption {
    font-size: 1.2rem;
    margin-top: 10px;
    color: #32160f;
    text-align: left;
    font-weight: bold;
}

/* Beans List */
.shop-beans {
    margin-bottom: 60px;
    padding: 30px;
    background-color: #fff;
    border: 1px solid #e5e5e5;
}

.shop-beans__content {
    font-size: 1.4rem;
    line-height: 2;
    color: #32160f;
}

.shop-beans__content p {
    margin: 0;
}

.shop-beans__content b, 
.shop-beans__content strong {
    font-size: 1.6rem;
    display: block;
    margin-top: 15px;
}

.shop-beans__content b:first-child, 
.shop-beans__content strong:first-child {
    margin-top: 0;
}

/* Shop Information Header */
.shop-info__header {
    text-align: center;
    margin-bottom: 40px;
}

.shop-info__title {
    font-size: 2.8rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.shop-info__en {
    font-size: 1.6rem;
    color: #aa9163;
    letter-spacing: 0.1em;
}

.shop-info {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

@media (max-width: 767px) {
    .shop-info {
        flex-direction: column;
    }
}

.shop-info__left {
    flex: 1;
}

.shop-info__tel {
    font-size: 2.4rem;
    font-weight: bold;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.shop-info__tel::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2332160f'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    margin-right: 10px;
}

.shop-info__tel a {
    color: inherit;
    text-decoration: none;
}

.shop-info__details {
    margin-top: 30px;
}

.shop-info__row {
    margin-bottom: 25px;
}

.shop-info__label {
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 10px;
    border-bottom: 1px solid #aa9163;
    display: inline-block;
}

.shop-info__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.5rem;
}

.shop-info__table th {
    text-align: left;
    width: 80px;
    padding: 5px 0;
    font-weight: normal;
}

.shop-info__table td {
    padding: 5px 0;
}

.shop-info__map-link {
    display: inline-block;
    margin-top: 10px;
    color: #aa9163;
    text-decoration: underline;
    font-size: 1.4rem;
}

.shop-info__sns {
    display: flex;
    gap: 15px;
}

.shop-info__sns-link {
    color: #aa9163;
    text-decoration: none;
    font-size: 1.4rem;
    border: 1px solid #aa9163;
    padding: 5px 15px;
    transition: all 0.3s;
}

.shop-info__sns-link:hover {
    background-color: #aa9163;
    color: #fff;
}

.shop-info__right {
    flex: 1;
}

.shop-info__map-img {
    width: 100%;
    height: auto;
    border: 1px solid #ddd;
}

/* Empty state */
.shop-empty {
    text-align: center;
    padding: 40px;
    color: #999;
}
@media (max-width: 599px) {
    .shop-container{
        padding: 1em 3vw;
    }

    .shop-card {
        padding: 1px;
    }

    .shop-card__desc {
        padding: 0 1em 1em;
        font-size: 1.5rem;
    }

    .shop-card__body {
        padding: 1.5vw;
    }

    .shop-card__media,
    .shop-card__media img {
        min-height: 120px;
        max-height: 170px;
    }

    .shop-card__title{
        font-size: 2.1rem;
        margin: 1em 0 0;
        font-weight: bold;
        line-height: 1.4;
    }
}