* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fafafa;
}

.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.cart-icon {
    position: relative;
    font-size: 14px;
    padding: 8px 16px;
    background: #f4f4f4;
    border-radius: 20px;
}

.cart-count {
    display: inline-block;
    background: #e67e22;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    border-radius: 50%;
    margin-left: 6px;
}

main {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 20px;
}

main h1 {
    font-size: 24px;
    margin-bottom: 32px;
}

.product-list {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: flex-start;
}

.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    flex: 0 1 calc(25% - 18px);
    min-width: 220px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.product-card h3 {
    font-size: 15px;
    padding: 16px 16px 4px;
}

.product-price {
    padding: 0 16px;
    font-weight: bold;
    color: #e67e22;
    margin-bottom: 12px;
}

.btn-add {
    width: 100%;
    padding: 12px;
    background: #2c3e50;
    color: #fff;
    border: none;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-add:hover {
    background: #1a252f;
}

.btn-add.added {
    background: #27ae60;
}

/*
footer {
    text-align: center;
    padding: 20px;
    color: #888;
    font-size: 13px;
}
*/

.shop-header {
    position: relative;
}

.nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.nav-links a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.2s;
}

.nav-links a:hover {
    opacity: 0.7;
}

.shop-contact {
    max-width: 600px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
}

.shop-contact h2 {
    font-size: 22px;
    margin-bottom: 16px;
}

.shop-contact p {
    color: #666;
    margin-bottom: 8px;
}

.shop-contact-email {
    font-weight: bold;
    color: #2c3e50;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 200;
    position: relative;
}

.menu-toggle:focus {
    outline: none;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: #2c3e50;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.category-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 24px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 20px;
    font-size: 14px;
    font-family: inherit;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn:hover {
    border-color: #2c3e50;
    color: #2c3e50;
}

.tab-btn.active {
    background: #2c3e50;
    border-color: #2c3e50;
    color: #fff;
}

.product-card.hidden {
    display: none;
}

@media (max-width: 600px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        inset: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 36px;
        background: rgba(255, 255, 255, 0.98);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.35s ease;
        z-index: 150;
    }

    .nav-links.open {
        opacity: 1;
        visibility: visible;
    }

    .nav-links li {
        list-style: none;
    }

    .nav-links a {
        font-size: 22px;
        font-weight: 500;
        color: #2c3e50;
        text-decoration: none;
        position: relative;
        padding-bottom: 6px;
    }

    .nav-links a::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: 0;
        width: 0;
        height: 1px;
        background: #e67e22;
        transition: width 0.3s ease, left 0.3s ease;
    }

    .nav-links a:active::after {
        width: 100%;
        left: 0;
    }
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 300;
    padding: 20px;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: #fff;
    border-radius: 8px;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.open .modal-box {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #333;
    cursor: pointer;
    z-index: 1;
}

.modal-box img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.modal-info {
    padding: 24px;
}

.modal-info h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.modal-info p {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
}

.modal-price {
    font-size: 20px;
    font-weight: bold;
    color: #e67e22 !important;
}

.modal-info .btn-add-modal {
    width: 100%;
    padding: 12px;
    background: #2c3e50;
    color: #fff;
    border: none;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.modal-info .btn-add-modal:hover {
    background: #1a252f;
}

.modal-info .btn-add-modal.added {
    background: #27ae60;
}

.cart-icon {
    cursor: pointer;
}

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 400;
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.cart-panel {
    position: fixed;
    top: 0;
    right: -360px;
    width: 340px;
    max-width: 90vw;
    height: 100%;
    background: #fff;
    z-index: 401;
    display: flex;
    flex-direction: column;
    transition: right 0.35s ease;
    box-shadow: -2px 0 12px rgba(0,0,0,0.1);
}

.cart-panel.open {
    right: 0;
}

.cart-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.cart-panel-header h3 {
    font-size: 16px;
}

.cart-close {
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: #333;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
}

.cart-empty {
    color: #999;
    font-size: 14px;
    text-align: center;
    margin-top: 40px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.cart-item-name {
    flex: 1;
}

.cart-item-qty {
    color: #999;
    margin: 0 12px;
}

.cart-item-price {
    font-weight: bold;
    color: #2c3e50;
}

.cart-panel-footer {
    padding: 20px;
    border-top: 1px solid #eee;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: bold;
}

footer {
    background: #fafafa;
    color: #888;
}

@media (max-width: 600px) {
    header {
        padding: 24px 16px;
    }

    main {
        padding: 24px 16px;
    }

    header h1 {
        font-size: 20px;
    }

    .product-list {
        justify-content: center;
    }
}